/* ========================================
   THEME.CSS - Premium Royale Design System
   Style: Luxury, Soft UI, Modern, Glassmorphism
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
    /* Brand Colors - Deep & Trustworthy */
    --color-primary: #4f46e5;
    --color-primary-rgb: 79, 70, 229;
    --color-primary-hover: #4338ca;

    --color-secondary: #0f172a;
    --color-accent: #8b5cf6;

    /* Semantic Colors */
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    --color-info: #3b82f6;

    /* Neutral Scale - Cool Tones */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --gradient-subtle: linear-gradient(135deg, #e0e7ff 0%, #f3e8ff 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);

    /* Shadows (Soft & Diffused) */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-primary: 0 10px 15px -3px rgba(79, 70, 229, 0.4);

    /* Typography */
    --font-base: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Plus Jakarta Sans', system-ui, sans-serif;

    /* Constants */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    --transition-fast: 0.15s ease;
    --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 1. RESET & BASE */
body {
    font-family: var(--font-base);
    color: var(--gray-700);
    background-color: #f8fafc;
    /* Very light slate bg */
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--gray-900);
    letter-spacing: -0.025em;
    font-weight: 700;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-hover);
}

/* 2. GLASS HEADER */
.glass-header {
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.75rem 0;
    transition: all var(--transition-base);
    z-index: 1030;
}

.glass-header.stuck {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
}

.nav-link-premium {
    color: var(--gray-600);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    font-size: 0.95rem;
}

.nav-link-premium:hover,
.nav-link-premium.active {
    color: var(--color-primary);
    background: var(--gray-50);
}

/* 3. HERO SECTION With Mesh Gradient */
.hero-wrapper {
    position: relative;
    padding-top: 8rem;
    /* Space for fixed header */
    padding-bottom: 5rem;
    background: #ffffff;
    overflow: hidden;
}

.hero-mesh {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    opacity: 0.6;
    background:
        radial-gradient(at 0% 0%, rgba(79, 70, 229, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(139, 92, 246, 0.15) 0px, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #1e293b 20%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-500);
    margin-bottom: 3rem;
    font-weight: 400;
}

/* 4. KEY COMPONENTS */

/* Premium Inputs */
.form-control-premium {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    transition: all var(--transition-fast);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.form-control-premium:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    outline: none;
}

/* Premium Buttons */
.btn-premium {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-bounce);
    border: none;
}

.btn-primary-gradient {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-primary);
}

.btn-primary-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 20px -5px rgba(79, 70, 229, 0.4);
    color: white;
}

.btn-secondary-brand {
    background: white;
    color: var(--gray-800);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.btn-secondary-brand:hover {
    border-color: var(--gray-300);
    background: var(--gray-50);
    transform: translateY(-1px);
}

/* Cards (Metronic Flush Style) */
.card-flush {
    background: #ffffff;
    border: none;
    box-shadow: var(--shadow-md);
    /* Slightly more shadow than 'none' for better depth */
    border-radius: var(--radius-xl);
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.card-flush:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

/* 5. SEARCH BAR PULSING */
@keyframes pulse-soft {
    0% {
        box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(79, 70, 229, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(79, 70, 229, 0);
    }
}

.search-pulse:focus-within {
    animation: pulse-soft 2s infinite;
}

/* 6. UTILITIES */
.text-justify-inter {
    text-align: justify;
}

.min-h-screen {
    min-height: 100vh;
}

.rounded-xl {
    border-radius: var(--radius-xl) !important;
}

.shadow-hover {
    transition: box-shadow 0.3s;
}

.shadow-hover:hover {
    box-shadow: var(--shadow-lg) !important;
}

/* Filter Badge */
.badge-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.badge-light-primary {
    color: var(--color-primary);
    background-color: #e0e7ff;
}

/* Navbar Logo */
.brand-logo-container {
    padding: 6px;
    background: linear-gradient(135deg, #fff 0%, #f3f4f6 100%);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}