/* ===================================
   Main Stylesheet
   Note: Core styles (colors, layout, typography) are in assets/css/core/
   =================================== */

/* ===================================
   Navigation
   =================================== */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ===================================
   Navigation
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-base);
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    box-shadow: var(--shadow-lg);
}

/* Navbar Enhancements */
.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    /* Consistent padding */
    height: 70px;
    /* Fixed height for consistency */
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

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

.logo-icon {
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
}

.logo-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.25rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: var(--transition-fast);
    position: relative;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Age Calculator Link */
.nav-link[href*="age-calculator"] {
    background: linear-gradient(135deg, #a78bfa 0%, #ec4899 50%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.nav-link[href*="age-calculator"]:hover {
    background: linear-gradient(135deg, #8b5cf6 0%, #db2777 50%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-base);
}

/* Hamburger Animation */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        padding: 1.5rem;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        max-height: 400px;
        opacity: 1;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-link {
        display: block;
        padding: 1rem;
        font-size: 1.125rem;
    }

    .nav-link::after {
        display: none;
    }
}


/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Rich Purple-Blue Gradient (Blended) */
    background: linear-gradient(180deg, #2d1b69 0%, #3d2a5e 20%, #4a3570 40%, #3d4a8f 60%, #2a3a7c 80%, #1f2d5e 100%);
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--gradient-royal);
    top: -300px;
    right: -300px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--gradient-gold);
    bottom: -250px;
    left: -250px;
    animation-delay: 5s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: var(--gradient-accent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    /* Consistent spacing between elements */
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

/* ===================================
   Search Box
   =================================== */
.search-box-wrapper {
    position: relative;
    z-index: 50;
    width: 100%;
    max-width: 650px;
    /* Standardized width */
    margin: 0 auto;
    /* Center the wrapper */
    animation: fadeInUp 0.8s ease 0.4s both;
    text-align: center;
}

.search-box {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    /* Rich Purple-Blue Gradient */
    background: linear-gradient(145deg, #5a4a9f 0%, #4a3a8f 50%, #3a2a7f 100%);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 60px;
    padding: 0.75rem 1.5rem;
    /* 3D Depth Effect */
    box-shadow:
        0 10px 30px rgba(58, 37, 112, 0.6),
        0 5px 15px rgba(74, 53, 112, 0.5),
        inset 0 -3px 12px rgba(0, 0, 0, 0.3),
        inset 0 2px 8px rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0) translateZ(0);
}

.search-box:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow:
        0 15px 40px rgba(58, 37, 112, 0.7),
        0 8px 20px rgba(74, 53, 112, 0.6),
        inset 0 -4px 14px rgba(0, 0, 0, 0.35),
        inset 0 3px 10px rgba(255, 255, 255, 0.3);
}

.search-box:focus-within {
    border-color: var(--text-gold);
    box-shadow: 0 0 40px rgba(251, 191, 36, 0.5), 0 0 60px rgba(139, 92, 246, 0.4), 0 15px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

.search-icon {
    font-size: 1.5rem;
    padding: 0 var(--spacing-xs);
}

.search-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 1.125rem;
    padding: var(--spacing-sm);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    background: var(--gradient-gold);
    color: #1a0b2e;
    border: none;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: var(--shadow-gold);
}

.search-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-gold), 0 10px 30px rgba(251, 191, 36, 0.5);
}

.search-suggestions {
    position: absolute;
    top: calc(100% + var(--spacing-xs));
    left: 0;
    right: 0;
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 100;
}

.search-suggestions.active {
    display: block;
}

.suggestion-item {
    padding: var(--spacing-sm) var(--spacing-md);
    cursor: pointer;
    transition: var(--transition-fast);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.suggestion-item:hover {
    background: rgba(99, 102, 241, 0.2);
}

/* ===================================
   Stats Grid
   =================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    animation: fadeInUp 0.8s ease 0.6s both;
    margin-top: 2.5rem;
}

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    background: rgba(139, 92, 246, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    text-align: center;
    transition: var(--transition-base);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* ===================================
   States Section
   =================================== */
.states-section {
    padding: 3rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.states-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-bottom: var(--spacing-lg);
    width: 100%;
}

/* State Card Alignment */
.state-card {
    position: relative;
    background: rgba(139, 92, 246, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-base);
    overflow: hidden;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.15);
    height: 100%;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.state-card:hover {
    transform: translateY(-5px);
    /* Reduced hover lift */
    border-color: var(--text-gold);
    box-shadow: var(--shadow-purple);
}

.state-card:hover::before {
    opacity: 0.2;
}

.state-content {
    position: relative;
    z-index: 1;
}

.state-icon {
    font-size: 1.5rem;
    /* Smaller icon */
    margin-bottom: 0.5rem;
    /* Reduced margin */
    display: block;
    filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.4));
}

.state-name {
    font-size: 1rem;
    /* Smaller text */
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.state-count {
    font-size: 0.8rem;
    /* Smaller count text */
    color: var(--text-muted);
    font-weight: 500;
}

.state-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-base);
}

.state-card:hover .state-overlay {
    opacity: 1;
}

.explore-btn {
    background: white;
    color: var(--primary-dark);
    border: none;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transform: scale(0.9);
    transition: var(--transition-base);
}

.state-card:hover .explore-btn {
    transform: scale(1);
}

/* View All Button */
.view-all-states {
    text-align: center;
    margin-top: var(--spacing-xl);
}

#viewAllStates {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.5);
    color: var(--text-secondary);
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    /* Pill shape */
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition-base);
    backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

#viewAllStates:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
}

/* ===================================
   State Card Size Variants
   =================================== */

/* Small Size - Compact */
.state-card.state-card-sm {
    min-height: 140px;
    padding: var(--spacing-md);
}

.state-card.state-card-sm .state-icon {
    font-size: 2rem;
    margin-bottom: var(--spacing-xs);
}

.state-card.state-card-sm .state-name {
    font-size: 1rem;
    margin-bottom: 4px;
}

.state-card.state-card-sm .state-code {
    font-size: 0.75rem;
}

.state-card.state-card-sm .explore-btn {
    padding: 8px 16px;
    font-size: 0.875rem;
}

/* Medium Size - Default (already defined above) */
.state-card.state-card-md {
    min-height: 180px;
    padding: var(--spacing-lg);
}

.state-card.state-card-md .state-icon {
    font-size: 3rem;
}

.state-card.state-card-md .state-name {
    font-size: 1.25rem;
}

.state-card.state-card-md .state-code {
    font-size: 0.875rem;
}

/* Large Size - Prominent */
.state-card.state-card-lg {
    min-height: 240px;
    padding: var(--spacing-xl);
}

.state-card.state-card-lg .state-icon {
    font-size: 4.5rem;
    margin-bottom: var(--spacing-md);
    filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.8));
}

.state-card.state-card-lg .state-name {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.state-card.state-card-lg .state-code {
    font-size: 1.125rem;
    font-weight: 600;
}

.state-card.state-card-lg .explore-btn {
    padding: 14px 32px;
    font-size: 1.125rem;
    font-weight: 700;
}

.state-card-hidden {
    display: none;
    opacity: 0;
    transform: scale(0.95);
}

.state-card-hidden.show {
    display: grid;
    animation: fadeInScale 0.4s ease forwards;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.view-all-states {
    text-align: center;
    margin-top: var(--spacing-xl);
}

/* .btn-secondary - MOVED to assets/css/components/buttons.css */

/* ===================================
   Monetization & New Features (Phase 3)
   =================================== */

/* Sticky Footer Ad */
.sticky-footer-ad {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: rgba(30, 41, 59, 1);
    border-top: 1px solid rgba(139, 92, 246, 0.3);
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.5s ease-out;
    height: auto;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.ad-label {
    position: absolute;
    top: -15px;
    left: 0;
    background: rgba(30, 41, 59, 0.9);
    padding: 2px 8px;
    border-radius: 4px 4px 0 0;
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-bottom: none;
}

.ad-content-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    /* Fixed Mobile Height */
    overflow: hidden;
    background: black;
    /* Prevent transparency showing large content */
}

@media (min-width: 768px) {
    .ad-content-wrapper {
        height: 90px;
        /* Fixed Desktop Height */
    }
}

.ad-close-btn {
    position: absolute;
    top: -30px;
    /* Move totally outside */
    right: 10px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: var(--transition-base);
}

.ad-close-btn:hover {
    transform: scale(1.1);
    background: #ef4444;
}

.ad-placeholder-text {
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.8rem;
    /* Hide if actual ad loads (JS can toggle this, or CSS if script injects) */
}

/* If AdSense injects ins, we might hide placeholder via sibling selector if possible,
   or just rely on it covering it. For now, simple textual fallback. */

/* ===================================
   Amazon Affiliate Safety Styles
   =================================== */
.amazon-safe-container {
    display: block;
    margin: 40px auto;
    /* 40px = 10px buffer over 30px recommendation */
    padding: 20px 0;
    max-width: 728px;
    text-align: center;
    clear: both;
    /* Prevent float conflicts with other content */
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.amazon-safe-container .ad-label {
    display: block;
    font-size: 0.65rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    font-weight: 600;
}

.amazon-safe-container .ad-disclaimer {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 10px;
    font-style: italic;
    line-height: 1.4;
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .amazon-safe-container {
        margin: 30px 0;
        padding: 15px 0;
        max-width: 100%;
    }
}

/* Footer Affiliate Disclosure */
.affiliate-disclosure {
    text-align: center;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 1rem;
}

.affiliate-disclosure p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

.ad-close-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: background 0.2s;
}

.ad-close-btn:hover {
    background: rgba(239, 68, 68, 0.8);
    /* Red on hover */
}

/* Locate Me Button */
.locate-me-btn {
    margin-top: 3rem;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: var(--primary-light);
    padding: 0.6rem 1.2rem;
    border-radius: 2rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(139, 92, 246, 0.1);
}

.locate-me-btn:hover {
    background: rgba(139, 92, 246, 0.25);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
    color: white;
}

.locate-me-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* In-Feed Ad Card */
.ad-card {
    border: 1px dashed rgba(74, 85, 104, 0.5);
    /* Subtle dashed border */
    background: rgba(30, 41, 59, 0.3) !important;
    /* Slightly distinct bg */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    position: relative;
    overflow: hidden;
}

.ad-card .ad-content {
    text-align: center;
    width: 100%;
}

.ad-card .ad-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    background: rgba(0, 0, 0, 0.4);
    color: #a0aec0;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

/* Sidebar Layout (Desktop) */
@media (min-width: 1024px) {
    .layout-grid {
        display: grid;
        grid-template-columns: 1fr 340px;
        /* Main content + Sidebar width */
        gap: var(--spacing-lg);
        align-items: start;
    }

    .sidebar {
        display: block;
        margin-top: 0;
    }

    .main-content {
        width: 100%;
    }
}

.sidebar {
    display: none;
    /* Default hidden on mobile */
}

.sidebar-sticky {
    position: sticky;
    top: 100px;
    /* Below navbar */
}

.sidebar-ad-container {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    text-align: center;
    min-height: 600px;
    /* Reserve space */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ad-label-sidebar {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}


/* .btn-secondary:hover - MOVED to assets/css/components/buttons.css */

/* ===================================
   About Section
   =================================== */
.about-section {
    padding: var(--spacing-2xl) 0;
    /* Removed dark background - using body purple-blue gradient */
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.about-text {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.feature-item {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    transition: var(--transition-base);
}

.feature-item:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: var(--spacing-xs);
}

.feature-item h3 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-xs);
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.about-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(20px);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
}

.placeholder-icon {
    font-size: 5rem;
    opacity: 0.5;
}

.image-placeholder p {
    color: var(--text-muted);
    font-size: 1.125rem;
}

/* ===================================
   Footer
   =================================== */
.footer {
    /* Removed dark background - using body purple-blue gradient */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--spacing-2xl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.footer-text {
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-heading {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-xs);
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ===================================
   Loading Spinner
   =================================== */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner.active {
    display: flex;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

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

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1.5rem;
        gap: 0.5rem;
        border-bottom: 1px solid rgba(139, 92, 246, 0.3);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease-out;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links .nav-link {
        display: block;
        padding: 0.75rem 1rem;
        border-radius: var(--radius-md);
        transition: all 0.2s ease;
    }

    .nav-links .nav-link:hover,
    .nav-links .nav-link.active {
        background: rgba(139, 92, 246, 0.2);
        color: var(--primary-light);
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2rem;
    }

    .search-box {
        flex-direction: column;
    }

    .search-btn {
        width: 100%;
    }

    /* Removed stats-grid override to keep 4 cards in single row */

    .about-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .states-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .result-details {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    /* Removed stats-grid override to keep 4 cards in single row */

    .result-details {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   Fix Horizontal Overflow on Small Mobile Devices
   =================================== */
@media (max-width: 375px) {

    /* Hide decorative gradient orbs on very small screens to prevent overflow */
    .gradient-orb {
        display: none;
    }

    /* Ensure trending categories don't cause horizontal overflow */
    .trending-category {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        /* Smooth scrolling on iOS */
    }

    /* Allow search chips to wrap to multiple lines instead of overflowing */
    .search-chips {
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
        overflow-x: visible !important;
    }

    /* Ensure individual chips don't exceed container width */
    .search-chip {
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Prevent any container from exceeding viewport width */
    .container {
        max-width: 100%;
        overflow-x: hidden;
    }
}

/* ===================================
   Trending Searches Section
   =================================== */
.trending-section {
    padding: 2rem 0;
    /* Removed dark background - using body purple-blue gradient */
}

.trending-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

@media (min-width: 768px) {
    .trending-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.trending-category {
    background: linear-gradient(180deg, rgba(45, 27, 105, 0.4) 0%, rgba(29, 19, 80, 0.6) 100%);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(139, 92, 246, 0.2);
    display: flex;
    flex-direction: column;
}

.trending-heading {
    /* Gradient matching user image: Purple -> Pink -> Orange */
    background: linear-gradient(90deg, #d946ef 0%, #f43f5e 50%, #f97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* ===================================
   Search Chips - MOVED
   Styles moved to: assets/css/components/chips.css
   =================================== */


/* ===================================
   Refactored Result Card Styles
   =================================== */
/* ===================================
   Refactored Result Card Styles
   =================================== */
.result-card {
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-lg);
    padding: 0.75rem 1rem;
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    position: relative;
    overflow: hidden;
}

.result-card:hover {
    background: rgba(139, 92, 246, 0.08);
    border-color: var(--text-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.4rem;
    margin-bottom: 0.2rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.result-pincode {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-gold);
    letter-spacing: 0.5px;
}

.inline-actions {
    display: flex;
    gap: 0.2rem;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-secondary);
    width: 22px;
    height: 22px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.75rem;
}

.icon-btn.small {
    width: auto;
    height: auto;
    padding: 2px 6px;
    font-size: 0.7rem;
    gap: 4px;
}

.icon-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.office-badge {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.12rem 0.45rem;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-ho {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.4);
}

.badge-so {
    background: rgba(52, 211, 153, 0.2);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.4);
}

.badge-bo {
    background: rgba(96, 165, 250, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.4);
}

.result-office {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.result-details {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.15rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem;
    border-radius: var(--radius-md);
}

.detail-item {
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0;
}


/* Fixed Address Alignment */
.detail-address-full {
    grid-column: 1 / -1;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 0.4rem;
    text-align: left !important;
    width: 100%;
}

.detail-address-full .detail-val {
    flex: 1;
    text-align: left !important;
    white-space: normal;
    line-height: 1.4;
}

/* Coordinates field with inline button - value and button side by side */
.detail-coords {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: nowrap;
}

.detail-coords .coords-value {
    font-family: 'Courier New', monospace;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.75rem;
}

.view-map-btn.inline {
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    border: none;
    border-radius: 0.35rem;
    color: white;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.view-map-btn.inline:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(139, 92, 246, 0.3);
}

.view-map-btn.inline span {
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .detail-coords {
        flex-wrap: wrap;
    }

    .view-map-btn.inline {
        width: 100%;
        justify-content: center;
        margin-top: 0.25rem;
    }
}

/* Enhanced Trending Searches - 2 Columns × 6 Rows */
.search-chips {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    grid-template-rows: repeat(6, auto) !important;
    gap: 0.75rem !important;
}

/* Responsive breakpoints for search chips */
@media (max-width: 768px) {
    .search-chips {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto !important;
    }
}

@media (max-width: 480px) {
    .search-chips {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto !important;
    }
}

.search-chip {
    padding: 0.6rem 1rem !important;
    font-size: 0.9rem !important;
    border-radius: 2rem !important;
    /* Pill shape */
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.2s ease;

    /* Flexbox with left-aligned text */
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left !important;
    gap: 0.5rem !important;
}

.search-chip:hover {
    background: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    transform: translateY(-2px);
}


.detail-address-full * {
    text-align: left !important;
}

.detail-address-full .detail-label {
    text-align: left !important;
}

.detail-address-full .detail-val {
    flex: 1;
    text-align: left !important;
    display: block;
}

.copy-address-btn {
    margin-left: auto;
    flex-shrink: 0;
}

.detail-label {
    color: var(--text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
}

.detail-val {
    color: var(--text-secondary);
    font-weight: 500;
}

.result-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 0.25rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.result-address {
    line-height: 1.4;
    flex: 1;
}

.search-chip:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.5);
}

.chip-icon {
    font-size: 1.25rem;
    display: flex;
    /* Remove inline behaviors */
    align-items: center;
    height: 100%;
}

.chip-text {
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0;
    /* Remove micro-padding */
    margin: 0;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .trending-grid {
        grid-template-columns: 1fr;
    }

    .search-chip {
        font-size: 0.875rem;
        padding: 0.625rem var(--spacing-sm);
    }
}

/* ===================================
   FAQ Section Styles
   =================================== */
.faq-section {
    padding: var(--spacing-2xl) 0;
    /* Removed dark background - using body purple-blue gradient */
}

.faq-grid {
    display: grid;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.faq-item {
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-base);
}

.faq-item:hover {
    border-color: var(--text-gold);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.2);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: var(--spacing-lg);
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 600;
    transition: var(--transition-base);
}

.faq-question:hover {
    color: var(--text-gold);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--text-gold);
    transition: transform 0.3s ease;
    font-weight: 300;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 var(--spacing-lg);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 var(--spacing-lg) var(--spacing-lg);
}

.faq-answer p {
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

/* ===================================
   Toast Notification Styles
   =================================== */
.toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-royal);
    color: white;
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.5);
    font-weight: 600;
    z-index: 10000;
    transition: bottom 0.3s ease;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.toast.show {
    bottom: var(--spacing-xl);
}

.toast::before {
    content: '✓';
    font-size: 1.5rem;
}

/* ===================================
   Copy Button Styles
   =================================== */
.copy-btn {
    background: var(--gradient-gold);
    color: #1a0b2e;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

.copy-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.5);
}

.copy-btn::before {
    content: '📋';
    font-size: 1rem;
}

@media (max-width: 768px) {
    .faq-question {
        font-size: 1rem;
        padding: var(--spacing-md);
    }

    .faq-answer {
        padding: 0 var(--spacing-md);
    }

    .faq-item.active .faq-answer {
        padding: 0 var(--spacing-md) var(--spacing-md);
    }

    .toast {
        left: var(--spacing-md);
        right: var(--spacing-md);
        transform: none;
    }

    .toast.show {
        bottom: var(--spacing-md);
    }
}

/* ===================================
   Pincode Detail Page Styles
   =================================== */

/* Breadcrumb Section */
.breadcrumb-section {
    background: #f8fafc;
    padding: 1rem 0;
    padding-top: 110px;
    /* Account for fixed navbar (94px) + spacing */
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.breadcrumb a {
    color: var(--text-gold);
    text-decoration: none;
    transition: var(--transition-base);
}

.breadcrumb a:hover {
    color: var(--primary-light);
}

.breadcrumb .separator {
    color: var(--text-muted);
}

.breadcrumb .current {
    color: var(--text-primary);
}

/* Pincode Detail Section */
.pincode-detail-section {
    padding: var(--spacing-2xl) 0;
    background: var(--bg-primary);
}

.page-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.pincode-badge {
    background: var(--gradient-gold);
    color: #1a0b2e;
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 800;
    font-size: 2rem;
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.4);
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 1.25rem;
}

/* Details Grid */
.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.details-card,
.map-card {
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 0.75rem;
    padding: 1rem;
}

.section-heading {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-gold);
}

.details-table {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background: rgba(139, 92, 246, 0.03);
    border-radius: 0.5rem;
    transition: var(--transition-base);
    font-size: 0.9rem;
}

.detail-row:hover {
    background: rgba(139, 92, 246, 0.08);
}

.detail-label {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.85rem;
}

.map-link-sm {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary-light);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    margin-left: 10px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    transition: var(--transition-base);
}

.map-link-sm:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
}

.action-btn {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: var(--text-primary);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 1rem;
}

.action-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    border-color: var(--primary);
}

.detail-value {
    color: var(--text-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.copy-btn-inline {
    background: var(--gradient-gold);
    color: #1a0b2e;
    border: none;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
}

.copy-btn-inline:hover {
    transform: scale(1.05);
}

.state-link {
    color: var(--text-gold);
    text-decoration: none;
    transition: var(--transition-base);
}

.state-link:hover {
    color: var(--primary-light);
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
}

.status-delivery {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.status-non-delivery {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Map Link Button */
.map-link-sm {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-radius: 0.25rem;
    text-decoration: none;
    margin-left: 0.5rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.2s ease;
}

.map-link-sm:hover {
    background: rgba(99, 102, 241, 0.2);
    transform: translateY(-1px);
}

/* Office Type Badges */
.badge-ho {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #ef4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-so {
    background: rgba(16, 185, 129, 0.1) !important;
    color: #10b981 !important;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-bo {
    background: rgba(99, 102, 241, 0.1) !important;
    color: #6366f1 !important;
    border: 1px solid rgba(99, 102, 241, 0.2);
}



/* Map Container */
.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Nearby Pincodes */
.nearby-section {
    margin-bottom: var(--spacing-xl);
}

.nearby-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.nearby-card {
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    text-align: center;
    text-decoration: none;
    transition: var(--transition-base);
}

.nearby-card:hover {
    transform: translateY(-4px);
    border-color: var(--text-gold);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
}

.nearby-pincode {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-gold);
    margin-bottom: var(--spacing-xs);
}

.nearby-name {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Related Searches */
.related-section {
    margin-top: var(--spacing-xl);
}

/* ===================================
   Related Chips - MOVED
   Styles moved to: assets/css/components/chips.css
   =================================== */

/* Responsive Design */
@media (max-width: 968px) {
    .details-grid {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 2rem;
    }

    .pincode-badge {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 1.5rem;
        flex-direction: column;
    }

    .pincode-badge {
        font-size: 1.25rem;
    }

    .detail-row {
        flex-direction: column;
        gap: 0.25rem;
    }

    .nearby-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* ============================================
   STATE & DISTRICT PAGES STYLES
   ============================================ */

/* State Overview Section */
.state-overview-section {
    padding: 40px 0 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Statistics Grid */
/* Statistics Grid styles removed - using global definition above */

/* Section Container */
.section-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    margin: 32px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* District Grid */
.district-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.district-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 24px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.district-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.district-card:hover::before {
    opacity: 1;
}

.district-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

.district-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.district-count {
    font-size: 14px;
    opacity: 0.9;
}

/* Pincode Grid */
.pincode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.pincode-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.pincode-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.pincode-card:hover::before {
    transform: scaleY(1);
}

.pincode-card:hover {
    border-color: #667eea;
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.2);
}

.pincode-number {
    font-size: 20px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 8px;
}

.pincode-office {
    font-size: 14px;
    color: #334155;
    margin-bottom: 4px;
    font-weight: 500;
}

.pincode-district {
    font-size: 12px;
    color: #64748b;
}

/* District Overview Section */
.district-overview-section {
    padding: 40px 0 80px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    min-height: 100vh;
}

/* Pincode List (for district pages) */
.pincode-list {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.pincode-list-item {
    background: white;
    border-radius: 8px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
}

.pincode-list-item:hover {
    border-left-color: #f5576c;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.2);
}

.pincode-list-info {
    flex: 1;
}

.pincode-list-code {
    font-size: 18px;
    font-weight: 700;
    color: #f5576c;
    margin-bottom: 4px;
}

.pincode-list-name {
    font-size: 14px;
    color: #334155;
}

.pincode-list-type {
    font-size: 12px;
    color: #64748b;
    padding: 4px 12px;
    background: #f1f5f9;
    border-radius: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .district-grid {
        grid-template-columns: 1fr;
    }

    .pincode-grid {
        grid-template-columns: 1fr;
    }

    .section-container {
        padding: 24px 20px;
    }

    .stat-value {
        font-size: 28px;
    }
}

@media (max-width: 480px) {

    .state-overview-section,
    .district-overview-section {
        padding: 24px 0 60px;
    }

    .stat-card {
        padding: 24px 16px;
    }

    .stat-icon {
        font-size: 36px;
    }
}

/* Cookie Consent Banner */
#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    animation: slideUp 0.4s ease-out;
    transition: opacity 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-text p {
    margin: 5px 0;
    font-size: 14px;
    line-height: 1.6;
}

.cookie-text strong {
    font-size: 16px;
}

.cookie-text a {
    color: #ffd700;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-accept {
    background: #10b981;
    color: white;
}

.cookie-accept:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.cookie-essential {
    background: #3b82f6;
    color: white;
}

.cookie-essential:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.cookie-decline {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-decline:hover {
    background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }

    .cookie-btn {
        flex: 1;
        min-width: 100px;
    }
}

/* ===================================
   Featured Cities Section - MOVED
   Styles moved to: assets/css/features/cities-grid.css
   =================================== */