/**
 * TiruPati Enterprises - Master Luxury Design System
 * 
 * Strict Brand Preservation: Lime (#d3df37) + Deep Luxury Dark Palette
 * Standardized Tokens, Spacing, Typography, Forms, Buttons, and Layout Utilities
 */

:root {
    /* -------------------------------------------------------------------------
       1. BRAND COLOR TOKENS (Strictly Preserved)
       ------------------------------------------------------------------------- */
    --brand-lime: #d3df37;
    --brand-lime-light: #e0ec5a;
    --brand-lime-dark: #c0cc28;
    --brand-lime-darker: #9da01f;
    
    --brand-black: #000000;
    --brand-dark-base: #0a0a0a;
    --brand-surface: #141414;
    --brand-surface-card: #1a1a1a;
    --brand-surface-elevated: #242424;
    --brand-surface-border: #333333;
    
    --brand-border-hairline: rgba(255, 255, 255, 0.08);
    --brand-border-subtle: rgba(255, 255, 255, 0.15);
    --brand-border-accent: rgba(211, 223, 55, 0.3);
    
    --brand-text-bright: #ffffff;
    --brand-text-main: #e8e8e8;
    --brand-text-muted: #a0a0a0;
    --brand-text-dim: #707070;
    --brand-text-inverted: #000000; /* Strictly enforced on lime backgrounds */
    
    /* Gradients */
    --brand-gradient-lime: linear-gradient(135deg, #d3df37 0%, #c0cc28 100%);
    --brand-gradient-dark: linear-gradient(180deg, #141414 0%, #0a0a0a 100%);
    --brand-gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);

    /* -------------------------------------------------------------------------
       2. TYPOGRAPHIC HIERARCHY & FLUID CLAMP TOKENS
       ------------------------------------------------------------------------- */
    --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    --text-hero: clamp(2.5rem, 5vw, 4.25rem);
    --text-h1: clamp(2rem, 3.5vw, 3.25rem);
    --text-h2: clamp(1.6rem, 2.5vw, 2.25rem);
    --text-h3: clamp(1.25rem, 1.8vw, 1.65rem);
    --text-h4: clamp(1.1rem, 1.4vw, 1.35rem);
    --text-body-lg: 1.15rem;
    --text-body: 1rem;
    --text-body-sm: 0.875rem;
    --text-caption: 0.75rem;

    --leading-tight: 1.15;
    --leading-snug: 1.3;
    --leading-normal: 1.6;
    --leading-relaxed: 1.75;

    --tracking-tighter: -0.03em;
    --tracking-tight: -0.015em;
    --tracking-normal: 0;
    --tracking-wide: 0.05em;
    --tracking-wider: 0.08em;

    /* -------------------------------------------------------------------------
       3. SPACING & LAYOUT TOKENS
       ------------------------------------------------------------------------- */
    --space-3xs: 0.25rem;   /* 4px */
    --space-2xs: 0.5rem;    /* 8px */
    --space-xs:  0.75rem;   /* 12px */
    --space-sm:  1rem;      /* 16px */
    --space-md:  1.5rem;    /* 24px */
    --space-lg:  2rem;      /* 32px */
    --space-xl:  3rem;      /* 48px */
    --space-2xl: 4.5rem;    /* 72px */
    --space-3xl: 6rem;      /* 96px */

    --container-max: 1380px;
    --container-narrow: 960px;
    --container-reading: 68ch;

    /* -------------------------------------------------------------------------
       4. BORDER RADII & SHADOW TOKENS
       ------------------------------------------------------------------------- */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --shadow-subtle: 0 4px 15px rgba(0, 0, 0, 0.25);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-elevated: 0 20px 45px rgba(0, 0, 0, 0.5);
    --shadow-lime-soft: 0 8px 25px rgba(211, 223, 55, 0.2);

    /* -------------------------------------------------------------------------
       5. MOTION & EASING TOKENS
       ------------------------------------------------------------------------- */
    --ease-luxury: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
    --dur-instant: 150ms;
    --dur-smooth: 350ms;
    --dur-deliberate: 600ms;

    /* -------------------------------------------------------------------------
       6. Z-INDEX LAYERING
       ------------------------------------------------------------------------- */
    --z-below: -1;
    --z-base: 1;
    --z-elevated: 10;
    --z-sticky: 1020;
    --z-drawer: 1040;
    --z-modal: 1050;
    --z-toast: 1100;
}

/* =============================================================================
   STANDARDIZED BASE RESETS & FOUNDATION
   ============================================================================= */
body {
    background-color: var(--brand-black) !important;
    color: var(--brand-text-main) !important;
    font-family: var(--font-family-base) !important;
    line-height: var(--leading-normal);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Headings */
h1, .h1-luxury {
    font-size: var(--text-h1);
    font-weight: 700;
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tighter);
    color: var(--brand-text-bright);
}

h2, .h2-luxury {
    font-size: var(--text-h2);
    font-weight: 700;
    line-height: var(--leading-snug);
    letter-spacing: var(--tracking-tight);
    color: var(--brand-text-bright);
}

h3, .h3-luxury {
    font-size: var(--text-h3);
    font-weight: 600;
    line-height: var(--leading-snug);
    color: var(--brand-text-bright);
}

h4, .h4-luxury {
    font-size: var(--text-h4);
    font-weight: 600;
    color: var(--brand-text-bright);
}

.text-reading-width {
    max-width: var(--container-reading);
}

/* =============================================================================
   STANDARDIZED BUTTON COMPONENTS
   ============================================================================= */
.btn-luxury-primary,
.btn-luxury {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--brand-lime) !important;
    color: var(--brand-text-inverted) !important;
    font-weight: 700 !important;
    font-size: 0.95rem;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--brand-lime);
    box-shadow: var(--shadow-subtle);
    transition: transform var(--dur-instant) var(--ease-standard),
                background-color var(--dur-instant) var(--ease-standard),
                box-shadow var(--dur-instant) var(--ease-standard);
    text-decoration: none;
    cursor: pointer;
}

.btn-luxury-primary:hover,
.btn-luxury-primary:focus-visible,
.btn-luxury:hover,
.btn-luxury:focus-visible {
    background: var(--brand-lime-light) !important;
    color: var(--brand-text-inverted) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lime-soft);
    border-color: var(--brand-lime-light);
}

.btn-luxury-primary:active,
.btn-luxury:active {
    transform: translateY(0);
}

.btn-luxury-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: transparent !important;
    color: var(--brand-lime) !important;
    font-weight: 600 !important;
    font-size: 0.95rem;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--brand-lime);
    transition: all var(--dur-instant) var(--ease-standard);
    text-decoration: none;
    cursor: pointer;
}

.btn-luxury-outline:hover,
.btn-luxury-outline:focus-visible {
    background: var(--brand-lime) !important;
    color: var(--brand-text-inverted) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lime-soft);
}

.btn-luxury-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--brand-text-main) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--brand-border-hairline);
    transition: all var(--dur-instant) var(--ease-standard);
    text-decoration: none;
    cursor: pointer;
}

.btn-luxury-ghost:hover,
.btn-luxury-ghost:focus-visible {
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--brand-text-bright) !important;
    border-color: var(--brand-border-subtle);
    transform: translateY(-2px);
}

/* =============================================================================
   STANDARDIZED CARD & CONTAINER SURFACES
   ============================================================================= */
.card-luxury {
    background: var(--brand-surface-card);
    border: 1px solid var(--brand-border-hairline);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.card-luxury-interactive {
    background: var(--brand-surface-card);
    border: 1px solid var(--brand-border-hairline);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-card);
    transition: transform var(--dur-smooth) var(--ease-luxury),
                border-color var(--dur-smooth) var(--ease-luxury),
                box-shadow var(--dur-smooth) var(--ease-luxury);
}

.card-luxury-interactive:hover {
    transform: translateY(-6px);
    border-color: var(--brand-border-accent);
    box-shadow: var(--shadow-elevated), 0 0 25px rgba(211, 223, 55, 0.12);
}

/* Glassmorphism Surface */
.glass-luxury {
    background: rgba(20, 20, 20, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--brand-border-hairline);
    border-radius: var(--radius-lg);
}

/* =============================================================================
   STANDARDIZED BADGES & TAGS
   ============================================================================= */
.badge-luxury-lime {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--brand-lime) !important;
    color: #000000 !important;
    font-size: var(--text-caption);
    font-weight: 700;
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
}

.badge-luxury-lime,
.badge-luxury-lime *,
.badge-luxury-lime i,
.badge-luxury-lime span {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
}

.badge-luxury-dark {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--brand-surface-elevated);
    color: var(--brand-lime);
    border: 1px solid var(--brand-border-accent);
    font-size: var(--text-caption);
    font-weight: 600;
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
}

/* =============================================================================
   STANDARDIZED FORM CONTROLS & INPUTS
   ============================================================================= */
.form-luxury-group {
    margin-bottom: var(--space-md);
}

.form-luxury-label {
    display: block;
    font-size: var(--text-body-sm);
    font-weight: 600;
    color: var(--brand-text-main);
    margin-bottom: 0.45rem;
}

.form-control-luxury,
.form-select-luxury {
    width: 100%;
    background-color: var(--brand-surface-card) !important;
    border: 1px solid var(--brand-border-subtle) !important;
    border-radius: var(--radius-md) !important;
    color: var(--brand-text-bright) !important;
    padding: 0.85rem 1.15rem !important;
    font-size: var(--text-body) !important;
    line-height: 1.5;
    transition: border-color var(--dur-instant) var(--ease-standard),
                box-shadow var(--dur-instant) var(--ease-standard);
}

.form-control-luxury:focus,
.form-select-luxury:focus {
    outline: none !important;
    border-color: var(--brand-lime) !important;
    box-shadow: 0 0 0 3px rgba(211, 223, 55, 0.25) !important;
    background-color: var(--brand-surface-elevated) !important;
}

.form-control-luxury::placeholder {
    color: var(--brand-text-dim);
}

/* =============================================================================
   STANDARDIZED IMAGE PRESENTATION
   ============================================================================= */
.img-luxury-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--brand-border-hairline);
}

.img-luxury-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--dur-deliberate) var(--ease-luxury);
}

.img-luxury-frame:hover img {
    transform: scale(1.035);
}

.aspect-cinematic { aspect-ratio: 16 / 9; }
.aspect-portrait  { aspect-ratio: 4 / 5; }
.aspect-editorial { aspect-ratio: 3 / 4; }
.aspect-square    { aspect-ratio: 1 / 1; }

/* =============================================================================
   FEEDBACK, LOADING & EMPTY STATES
   ============================================================================= */
.spinner-luxury {
    width: 2.5rem;
    height: 2.5rem;
    border: 3px solid rgba(211, 223, 55, 0.2);
    border-top-color: var(--brand-lime);
    border-radius: 50%;
    animation: spin-luxury 0.8s linear infinite;
}

@keyframes spin-luxury {
    to { transform: rotate(360deg); }
}

.empty-state-luxury {
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
    background: var(--brand-surface-card);
    border: 1px dashed var(--brand-border-subtle);
    border-radius: var(--radius-lg);
}

.empty-state-luxury .empty-icon {
    font-size: 3rem;
    color: var(--brand-lime);
    margin-bottom: var(--space-md);
    opacity: 0.85;
}

/* =============================================================================
   ACCESSIBILITY: REDUCED MOTION SUPPORT
   ============================================================================= */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
