/* SeggWat Demo Pages - Shared Styles */

/* ============================================
   GLASSMORPHISM DESIGN SYSTEM
   ============================================ */

/* Glass morphism cards */
.glass-card {
    background: rgba(30, 35, 50, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

/* Light mode glass card */
[data-theme="nord"] .glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

/* Gradient text for brand emphasis */
.text-gradient-brand {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Light mode gradient - more vibrant */
[data-theme="nord"] .text-gradient-brand {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Background grid pattern */
.hero-grid-pattern {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* Light mode grid pattern */
[data-theme="nord"] .hero-grid-pattern {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
}

/* Fade-up animation */
@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fade-up 0.6s ease-out forwards;
    opacity: 0;
}

/* Stagger delays for animations */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }
.delay-600 { animation-delay: 600ms; }

/* Hover glow effect for cards */
.hover-glow {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-glow:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
}

/* Section badge/pill styling */
.section-badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 9999px;
}

/* Light mode badge - more visible */
[data-theme="nord"] .section-badge {
    color: #4f46e5;
    background: rgba(79, 70, 229, 0.12);
}

/* ============================================
   THEME CUSTOMIZATION
   ============================================ */

/* Nord theme (light mode) - ensure proper light backgrounds */
[data-theme="nord"] {
    --b1: 236 239 244; /* eceff4 - Nord snow storm */
    --b2: 229 233 240; /* e5e9f0 */
    --b3: 216 222 233; /* d8dee9 */
    --bc: 46 52 64; /* 2e3440 - dark text */
}

/* Navbar theme adaptation */
/* Light mode (Nord theme) - make navbar bright with dark text */
[data-theme="nord"] .navbar {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e5e7eb;
}

[data-theme="nord"] .navbar * {
    color: #111827 !important;
}

[data-theme="nord"] .navbar .btn-ghost:hover {
    background-color: #f3f4f6 !important;
}

[data-theme="nord"] .navbar svg {
    fill: #111827 !important;
}

/* Dark mode (Sunset theme) - keep dark navbar with light text */
[data-theme="sunset"] .navbar {
    background-color: #1f2937 !important;
}

[data-theme="sunset"] .navbar .btn-ghost:hover {
    background-color: #374151 !important;
}

/* Status indicator animation (for feedback and helpful demos) */
.status-indicator {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Color swatch styles (for feedback demo) */
.color-swatch {
    transition: all 0.2s ease;
}

.color-swatch:hover {
    transform: scale(1.1);
}

.color-swatch.active {
    ring: 2px;
    ring-color: currentColor;
}

/* Mobile responsive fixes */
@media (max-width: 768px) {
    /* Ensure description text wraps and doesn't overflow */
    .label-text-alt {
        white-space: normal !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        display: block;
    }

    /* Prevent customization panel from causing horizontal scroll */
    .card-body {
        overflow-x: hidden;
    }

    /* Ensure form controls don't overflow */
    .form-control {
        max-width: 100%;
        overflow: hidden;
    }

    /* Ensure color swatches wrap properly */
    .flex.gap-2.flex-wrap {
        flex-wrap: wrap !important;
    }

    /* Ensure select dropdowns fit mobile screens */
    .select {
        max-width: 100%;
    }
}
