/**
 * theme.css
 * Unified Design System & Theme Engine Tokens for Ceylon Drive.
 * Automatically adapts to live seasonal & attraction presets chosen in Admin Studio.
 */

/* ==========================================================================
   Base Typography & Global Resets
   ========================================================================== */
body {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--dark-color, #0A192F);
    background-color: var(--light-color, #F8FAFC);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .heading-font {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    color: var(--dark-color, #0A192F);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ==========================================================================
   Top Seasonal Announcement Bar
   ========================================================================== */
.seasonal-announcement-bar {
    background: var(--theme-gradient, linear-gradient(135deg, #0F4C81 0%, #00A896 100%));
    color: #ffffff;
    font-size: 0.8rem;
    position: relative;
    z-index: 1030;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.seasonal-announcement-bar .badge {
    letter-spacing: 0.03em;
    font-size: 0.72rem;
    text-transform: uppercase;
}

.seasonal-announcement-bar .announcement-btn {
    font-size: 0.74rem;
    color: var(--primary-color, #0F4C81);
    transition: all 0.2s ease;
    padding: 2px 10px;
}

.seasonal-announcement-bar .announcement-btn:hover {
    transform: translateX(2px);
    background: #ffffff;
    color: var(--dark-color, #0A192F);
}

/* ==========================================================================
   Navigation Normalization & Glassmorphism (Compact Luxury 64px)
   ========================================================================== */
.site-nav {
    background: var(--nav-bg, rgba(255, 255, 255, 0.96)) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(var(--dark-rgb, 10, 25, 47), 0.08);
    position: sticky;
    top: 0;
    z-index: 1020;
    padding: 6px 0 !important;
    transition: all 0.25s ease;
}

.site-nav .logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--dark-color, #0A192F) !important;
    letter-spacing: -0.03em;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.site-nav .site-menu {
    white-space: nowrap;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.site-nav .site-menu > li > a,
.site-nav .site-navigation .site-menu > li > a {
    color: #0F172A !important;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 11px !important;
    display: inline-block;
    position: relative;
    white-space: nowrap;
    transition: color 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none !important;
}

.site-nav .site-menu > li > a:hover,
.site-nav .site-navigation .site-menu > li > a:hover {
    color: var(--primary-color, #1B4D3E) !important;
}

.site-nav .site-menu > li.active > a,
.site-nav .site-navigation .site-menu > li.active > a {
    color: var(--primary-color, #1B4D3E) !important;
    font-weight: 700;
}

.site-nav .site-menu > li.active > a::after,
.site-nav .site-navigation .site-menu > li.active > a::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 11px;
    right: 11px;
    height: 2.5px;
    background: var(--primary-color, #1B4D3E) !important;
    border-radius: 4px;
}

.site-nav .site-menu .dropdown {
    background: #ffffff;
    border-radius: var(--theme-radius, 12px);
    box-shadow: var(--theme-shadow-lg, 0 16px 36px rgba(0,0,0,0.12));
    border: 1px solid rgba(var(--dark-rgb, 10, 25, 47), 0.08);
    padding: 8px 0;
}

.site-nav .site-menu .dropdown > li > a {
    padding: 8px 20px;
    color: #334155;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.site-nav .site-menu .dropdown > li > a:hover {
    background: rgba(var(--primary-rgb, 15, 76, 129), 0.08);
    color: var(--primary-color, #0F4C81);
    padding-left: 24px;
}

/* Nav Action & CTA Buttons */
.nav-cta-btn {
    background: linear-gradient(135deg, #1B4D3E 0%, #2D6A4F 100%) !important;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 7px 18px !important;
    border-radius: 50px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(27, 77, 62, 0.22);
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.nav-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(27, 77, 62, 0.35);
    background: linear-gradient(135deg, #2D6A4F 0%, #1B4D3E 100%) !important;
    color: #ffffff !important;
}

.nav-login-link {
    font-size: 0.88rem;
    color: #334155 !important;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.nav-login-link:hover {
    color: var(--primary-color, #1B4D3E) !important;
}

/* Mobile Nav Active Indicators */
.mobile-nav-item.active,
.mobile-nav-item:hover {
    color: var(--primary-color, #0F4C81) !important;
}

/* ==========================================================================
   Theme Buttons
   ========================================================================== */
.btn-theme-primary {
    background: var(--theme-gradient, linear-gradient(135deg, #0F4C81 0%, #00A896 100%));
    color: #ffffff !important;
    border: none;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(var(--primary-rgb, 15, 76, 129), 0.35);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    cursor: pointer;
}

.btn-theme-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb, 15, 76, 129), 0.45);
    color: #ffffff !important;
}

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

.btn-theme-secondary {
    background: var(--secondary-color, #00A896);
    color: #ffffff !important;
    border: none;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(var(--secondary-rgb, 0, 168, 150), 0.3);
    transition: all 0.25s ease;
    text-decoration: none;
    cursor: pointer;
}

.btn-theme-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(var(--secondary-rgb, 0, 168, 150), 0.4);
    color: #ffffff !important;
}

.btn-theme-outline {
    background: transparent;
    color: var(--primary-color, #0F4C81) !important;
    border: 2px solid var(--primary-color, #0F4C81);
    font-weight: 600;
    padding: 10px 26px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
    text-decoration: none;
    cursor: pointer;
}

.btn-theme-outline:hover {
    background: var(--primary-color, #0F4C81);
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* ==========================================================================
   Theme Cards & Surface Elements
   ========================================================================== */
.theme-card {
    background: var(--surface-color, #ffffff);
    border: 1px solid rgba(var(--dark-rgb, 10, 25, 47), 0.08);
    border-radius: var(--theme-radius, 12px);
    box-shadow: var(--theme-shadow-sm, 0 4px 12px rgba(0,0,0,0.04));
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
    overflow: hidden;
}

.theme-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--theme-shadow-md, 0 12px 28px rgba(0,0,0,0.1));
    border-color: rgba(var(--primary-rgb, 15, 76, 129), 0.35);
}

.theme-card-body {
    padding: 24px;
}

/* ==========================================================================
   Theme Hero Banner Component
   ========================================================================== */
.theme-hero {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.theme-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(var(--dark-rgb, 10, 25, 47), 0.85) 0%,
        rgba(var(--primary-rgb, 15, 76, 129), 0.65) 50%,
        rgba(var(--secondary-rgb, 0, 168, 150), 0.45) 100%
    );
    z-index: 1;
}

.theme-hero .container {
    position: relative;
    z-index: 2;
}

.theme-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    color: #ffffff;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.theme-hero .hero-lead {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.9);
    max-width: 680px;
    margin-bottom: 30px;
    line-height: 1.7;
}

/* ==========================================================================
   Badges, Pills & Accent Tags
   ========================================================================== */
.badge-theme {
    background: rgba(var(--primary-rgb, 15, 76, 129), 0.12);
    color: var(--primary-color, #0F4C81);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(var(--primary-rgb, 15, 76, 129), 0.2);
}

.badge-theme-accent {
    background: rgba(var(--accent-rgb, 244, 162, 97), 0.15);
    color: var(--accent-color, #F4A261);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(var(--accent-rgb, 244, 162, 97), 0.25);
}

/* ==========================================================================
   Section Headers & Dividers
   ========================================================================== */
.section-tagline {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--secondary-color, #00A896);
    margin-bottom: 8px;
    display: block;
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    color: var(--dark-color, #0A192F);
    margin-bottom: 16px;
}

.section-accent-divider {
    width: 60px;
    height: 4px;
    background: var(--theme-gradient, linear-gradient(135deg, #0F4C81 0%, #00A896 100%));
    border-radius: 4px;
    margin: 12px 0 24px 0;
}

.section-accent-divider.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   Form Controls
   ========================================================================== */
.form-control:focus, .form-select:focus {
    border-color: var(--primary-color, #0F4C81) !important;
    box-shadow: 0 0 0 0.25rem rgba(var(--primary-rgb, 15, 76, 129), 0.2) !important;
}

/* ==========================================================================
   Footer Overrides
   ========================================================================== */
.site-footer {
    background-color: var(--dark-color, #0A192F) !important;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: var(--accent-color, #F4A261) !important;
    text-decoration: none;
}

.site-footer .heading {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1.15rem;
}

.site-footer .inner.dark {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Universal Avatar Utility Constraints */
.author-avatar,
.user-avatar-sm {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
    display: inline-block;
}

.author-avatar-md,
.user-avatar-md {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
    display: inline-block;
}
