/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Variables - Cyber Kingdom Theme */
:root {
    --background: #0a0f1f;
    --foreground: #ffffff;
    --card: rgba(30, 30, 47, 0.9);
    --card-foreground: #ffffff;
    --popover: rgba(30, 30, 47, 0.95);
    --popover-foreground: #ffffff;
    --primary: #00ffd1;
    --primary-foreground: #0a0f1f;
    --secondary: #7c3aed;
    --secondary-foreground: #ffffff;
    --muted: #f1f5f9;
    --muted-foreground: #b0b8c5;
    --accent: #00ffd1;
    --accent-foreground: #0a0f1f;
    --destructive: #ff4d4d;
    --destructive-foreground: #ffffff;
    --border: rgba(107, 114, 128, 0.4);
    --input: rgba(30, 30, 47, 0.8);
    --ring: rgba(0, 255, 209, 0.5);
    --radius: 0.5rem;
}

@import url('https://fonts.cdnfonts.com/css/pricedown');

/* Typography - Pricedown Theme */
body {
    font-family: 'Pricedown', 'Orbitron', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: transparent;
    color: var(--foreground);
    line-height: 1.4;
    font-size: 16px;
    letter-spacing: 0.5px;
}

.font-heading {
    font-family: 'Pricedown', 'Orbitron', 'Space Grotesk', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.font-sans {
    font-family: 'Pricedown', 'Roboto', 'Inter', sans-serif;
    letter-spacing: 0.3px;
}

.font-mono {
    font-family: 'Pricedown', 'Roboto Mono', monospace;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Pricedown', 'Orbitron', sans-serif;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Pricedown headings styling moved to Typography section above */

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.min-h-screen {
    min-height: 100vh;
}

/* Grid System */
.grid {
    display: grid;
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.gap-16 { gap: 4rem; }

/* Responsive Grid */
@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Flexbox */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-x-6 > * + * { margin-left: 1.5rem; }
.space-x-8 > * + * { margin-left: 2rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

/* Spacing */
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-12 { padding: 3rem; }
.p-20 { padding: 5rem; }

.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }

.m-4 { margin: 1rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-8 { margin-top: 2rem; }

/* Colors */
.bg-background { background-color: var(--background); }
.bg-card { background-color: var(--card); }
.bg-primary { background-color: var(--primary); }
.bg-secondary { background-color: var(--secondary); }
.text-foreground { color: var(--foreground); }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-muted-foreground { color: var(--muted-foreground); }
.text-primary-foreground { color: var(--primary-foreground); }
.text-secondary-foreground { color: var(--secondary-foreground); }

/* Borders */
.border { border: 1px solid var(--border); }
.border-t { border-top: 1px solid var(--border); }
.border-b { border-bottom: 1px solid var(--border); }
.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }

/* Positioning */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.top-0 { top: 0; }
.top-4 { top: 1rem; }
.right-4 { right: 1rem; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

/* Sizing */
.w-2 { width: 0.5rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-12 { width: 3rem; }
.w-full { width: 100%; }
.h-2 { height: 0.5rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-12 { height: 3rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-md { max-width: 28rem; }

/* Text */
.text-center { text-align: center; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-6xl { font-size: 3.75rem; }
.text-7xl { font-size: 4.5rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

/* Responsive Text */
@media (min-width: 768px) {
    .md\:text-xl { font-size: 1.25rem; }
    .md\:text-2xl { font-size: 1.5rem; }
    .md\:text-4xl { font-size: 2.25rem; }
    .md\:text-6xl { font-size: 3.75rem; }
}

@media (min-width: 1024px) {
    .lg\:text-7xl { font-size: 4.5rem; }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.btn-primary:hover {
    background-color: rgba(0, 255, 209, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 255, 209, 0.3);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--secondary-foreground);
}

.btn-secondary:hover {
    background-color: rgba(124, 58, 237, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--foreground);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background-color: var(--card);
    border-color: var(--primary);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--foreground);
    font-weight: 600;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--foreground);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--ring);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Cards */
.card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: rgba(0, 255, 209, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 255, 209, 0.1);
}

/* Hide/Show */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }

/* Responsive Display */
@media (min-width: 768px) {
    .md\:hidden { display: none; }
    .md\:block { display: block; }
    .md\:flex { display: flex; }
}

/* Overflow */
.overflow-hidden { overflow: hidden; }

/* Transitions */
.transition-all { transition: all 0.3s ease; }
.transition-colors { transition: color 0.3s ease, background-color 0.3s ease; }

/* Hover Effects */
.hover\:text-primary:hover { color: var(--primary); }
.hover\:bg-primary:hover { background-color: var(--primary); }
.hover\:border-primary\/50:hover { border-color: rgba(0, 255, 209, 0.5); }

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes glow {
    0%, 100% { 
        filter: drop-shadow(0 0 5px rgba(0, 255, 209, 0.5));
    }
    50% { 
        filter: drop-shadow(0 0 20px rgba(0, 255, 209, 0.8)) drop-shadow(0 0 30px rgba(0, 255, 209, 0.6));
    }
}

@keyframes pulse-glow {
    0%, 100% { 
        filter: drop-shadow(0 0 5px rgba(124, 58, 237, 0.5));
    }
    50% { 
        filter: drop-shadow(0 0 20px rgba(124, 58, 237, 0.8)) drop-shadow(0 0 30px rgba(124, 58, 237, 0.6));
    }
}

@keyframes text-glow {
    0%, 100% { 
        text-shadow: 0 0 5px rgba(0, 255, 209, 0.5);
    }
    50% { 
        text-shadow: 0 0 20px rgba(0, 255, 209, 0.8), 0 0 30px rgba(0, 255, 209, 0.6);
    }
}

@keyframes text-glow-secondary {
    0%, 100% { 
        text-shadow: 0 0 5px rgba(124, 58, 237, 0.5);
    }
    50% { 
        text-shadow: 0 0 20px rgba(124, 58, 237, 0.8), 0 0 30px rgba(124, 58, 237, 0.6);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

.animate-text-glow {
    animation: text-glow 2s ease-in-out infinite;
}

.animate-text-glow-secondary {
    animation: text-glow-secondary 2s ease-in-out infinite;
}

.delay-500 { animation-delay: 0.5s; }
.delay-1000 { animation-delay: 1s; }
.delay-1500 { animation-delay: 1.5s; }

/* UX Enhancements for Pricedown */
.card {
    background: rgba(30, 30, 47, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 209, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 209, 0.1), transparent);
    transition: left 0.8s ease;
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    border-color: rgba(0, 255, 209, 0.4);
    box-shadow: 0 8px 32px rgba(0, 255, 209, 0.1);
    transform: translateY(-4px);
}

/* Cyberpunk Glitch Effect for Headers */
.font-heading {
    position: relative;
}

.font-heading::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 2px;
    color: #ff00ff;
    opacity: 0;
    animation: glitch1 0.3s ease-in-out infinite alternate;
}

.font-heading::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: -2px;
    color: #00ffff;
    opacity: 0;
    animation: glitch2 0.3s ease-in-out infinite alternate;
}

@keyframes glitch1 {
    0% { clip-path: inset(20% 0 30% 0); }
    20% { clip-path: inset(60% 0 10% 0); }
    40% { clip-path: inset(10% 0 70% 0); }
    60% { clip-path: inset(40% 0 40% 0); }
    80% { clip-path: inset(80% 0 5% 0); }
    100% { clip-path: inset(50% 0 30% 0); }
}

@keyframes glitch2 {
    0% { clip-path: inset(40% 0 30% 0); }
    20% { clip-path: inset(20% 0 50% 0); }
    40% { clip-path: inset(70% 0 10% 0); }
    60% { clip-path: inset(30% 0 40% 0); }
    80% { clip-path: inset(5% 0 80% 0); }
    100% { clip-path: inset(60% 0 20% 0); }
}

/* Enhanced readability for Pricedown */
p, .text-muted-foreground {
    font-family: 'Inter', 'Roboto', sans-serif;
    line-height: 1.6;
    letter-spacing: normal;
}

.btn {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: normal;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 209, 0.3);
}

/* Flash Messages */
.flash-message {
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
    font-family: 'Inter', sans-serif;
    letter-spacing: normal;
}

.flash-success {
    background-color: #10b981;
    color: white;
}

.flash-error {
    background-color: var(--destructive);
    color: var(--destructive-foreground);
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Backdrop Effects */
.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

/* Header UX Enhancement */
#header {
    background: rgba(10, 15, 31, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 255, 209, 0.1);
}

/* Navigation hover effects */
.nav-link:hover {
    color: var(--primary) !important;
    text-shadow: 0 0 8px rgba(0, 255, 209, 0.5);
    transition: all 0.3s ease;
}

/* Form inputs enhancement */
.form-input {
    background: rgba(30, 30, 47, 0.8);
    border: 1px solid rgba(107, 114, 128, 0.3);
    backdrop-filter: blur(5px);
    font-family: 'Inter', sans-serif;
    letter-spacing: normal;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 255, 209, 0.2);
}

/* Label improvements */
.form-label {
    font-family: 'Pricedown', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    font-size: 14px;
}

/* Additional animations for better compatibility */
@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-slide-up {
    animation: slideUp 0.6s ease-out;
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

/* Scroll behavior */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

/* Additional utilities */
.flex-shrink-0 { flex-shrink: 0; }
.inline-flex { display: inline-flex; }
.tracking-wider { letter-spacing: 0.05em; }
.uppercase { text-transform: uppercase; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-12 { margin-top: 3rem; }
.ml-2 { margin-left: 0.5rem; }
.mr-2 { margin-right: 0.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-10 { margin-bottom: 2.5rem; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.font-medium { font-weight: 500; }
.w-48 { width: 12rem; }
.h-48 { height: 12rem; }
.border-primary { border-color: var(--primary); }
.border-border { border-color: var(--border); }
.hover\:underline:hover { text-decoration: underline; }
.hover\:bg-primary:hover { background-color: var(--primary); }
.hover\:text-primary-foreground:hover { color: var(--primary-foreground); }
.whitespace-nowrap { white-space: nowrap; }

/* Responsive flex */
@media (min-width: 768px) {
    .md\:flex-row { flex-direction: row; }
}

/* Btn outline with border colors */
.btn-outline.border-primary {
    border-color: var(--primary);
}
.btn-outline.border-primary:hover {
    background-color: var(--primary);
    color: var(--primary-foreground);
    box-shadow: 0 4px 20px rgba(0, 255, 209, 0.3);
}

/* Group hover transform */
.group:hover .group-hover\:translate-x-1 {
    transform: translateX(0.25rem);
}
.transition-transform {
    transition: transform 0.3s ease;
}

/* Matrix Background Styles */
.matrix-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    opacity: 0.4;
    pointer-events: none;
}

/* Cyberpunk Enhancement - Transparent to show Matrix */
.bg-background {
    background: transparent;
    position: relative;
}

/* Pricedown Font Adjustments */
.btn {
    font-family: 'Pricedown', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: normal;
}

.nav-link {
    font-family: 'Pricedown', sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Enhanced responsive utilities */
@media (max-width: 768px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    body {
        font-size: 14px;
    }
}

/* Custom Background Patterns */
.bg-gradient-cyber {
    background: transparent;
}

.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, rgba(10, 15, 31, 0.2), rgba(30, 30, 47, 0.3));
}

/* Logo Styles with Glowing Effects */
.logo-container {
    position: relative;
    transition: all 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.05);
}

.logo-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary), var(--secondary), var(--primary));
    border-radius: 1rem;
    z-index: -1;
    opacity: 0.7;
    filter: blur(8px);
    animation: glow-rotate 2s linear infinite;
}

/* Disable rotating glow for specific logo instances (use .no-rotate) */
.logo-container.no-rotate::before {
    display: none;
}

@keyframes glow-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}