/* Discover Page - Mobile First Minimal Design */
:root {
    --primary: #0B4F6C;
    --primary-dark: #083b4f;
    --primary-light: #1a6b8a;
    --secondary: #10B981;
    --accent: #F59E0B;
    --dark: #1F2937;
    --gray-800: #1F2937;
    --gray-700: #374151;
    --gray-600: #4B5563;
    --gray-500: #6B7280;
    --gray-400: #9CA3AF;
    --gray-300: #D1D5DB;
    --gray-200: #E5E7EB;
    --gray-100: #F3F4F6;
    --white: #FFFFFF;
    --shadow: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--white);
    color: var(--dark);
    line-height: 1.4;
}

/* Simple Header */
.header {
    position: sticky;
    top: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.logo-circle {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
    font-style: italic;
}

.logo-text {
    font-weight: 700;
    font-size: 18px;
    color: var(--primary);
}

.logo-text span {
    color: var(--primary);
}

.search-toggle {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--gray-100);
    border-radius: 50%;
    color: var(--gray-600);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.search-toggle:active {
    background: var(--gray-200);
    transform: scale(0.95);
}

/* Search Bar (Expandable) */
.search-bar {
    display: none;
    padding: 8px 16px 16px;
    border-top: 1px solid var(--gray-200);
    background: var(--white);
}

.search-bar.show {
    display: flex;
    gap: 8px;
}

.search-bar input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: 30px;
    font-size: 15px;
    background: var(--gray-100);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
}

.search-close {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--gray-100);
    border-radius: 50%;
    color: var(--gray-600);
    font-size: 18px;
    cursor: pointer;
}

/* Hero Stats - Minimal */
.hero-stats {
    display: flex;
    justify-content: space-around;
    padding: 20px 16px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 10px;
    color: var(--gray-500);
    letter-spacing: 0.5px;
}

/* Category Pills - Only Icons + Conducive Words */
.category-pills {
    padding: 12px 16px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.category-pills::-webkit-scrollbar {
    display: none;
}

.pills-container {
    display: flex;
    gap: 10px;
}

.pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--gray-100);
    border-radius: 40px;
    text-decoration: none;
    color: var(--gray-700);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s;
    border: 1px solid var(--gray-200);
}

.pill:active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(0.96);
}

.pill i {
    font-size: 14px;
    color: var(--primary);
}

.pill:active i {
    color: white;
}

.pill.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pill.active i {
    color: white;
}

.pill-loading {
    text-align: center;
    color: var(--gray-400);
    padding: 10px;
}

/* Discover Sections */
.discover-main {
    padding: 20px 0 30px;
}

.discover-section {
    margin-bottom: 30px;
}

.section-header {
    padding: 0 16px 12px;
}

.section-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: -0.3px;
}

/* Carousel - No Arrows */
.carousel-container {
    padding-left: 16px;
}

.swiper {
    overflow: visible !important;
}

.swiper-wrapper {
    display: flex;
}

.swiper-slide {
    width: auto;
    height: auto;
}

/* Subcategory Card - Only Image + Name */
.subcategory-card {
    width: 110px;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.subcategory-card:active {
    transform: scale(0.98);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.card-image {
    height: 110px;
    background: var(--gray-100);
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-name {
    padding: 10px 8px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
}

/* Loading States */
.loading-sections {
    padding: 40px 16px;
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 2px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

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

.pill-loading i {
    color: var(--gray-400);
    font-size: 20px;
}

/* Simple Footer */
.footer {
    padding: 20px 16px;
    text-align: center;
    border-top: 1px solid var(--gray-200);
    color: var(--gray-500);
    font-size: 12px;
}

/* No arrows on carousels */
.swiper-button-prev,
.swiper-button-next,
.swiper-pagination {
    display: none !important;
}

/* Desktop adjustments */
@media (min-width: 768px) {
    .header-content {
        max-width: 1200px;
        margin: 0 auto;
        padding: 16px 24px;
    }
    
    .hero-stats {
        max-width: 1200px;
        margin: 0 auto;
        justify-content: flex-start;
        gap: 60px;
        padding: 24px;
    }
    
    .category-pills {
        max-width: 1200px;
        margin: 0 auto;
        padding: 12px 24px;
    }
    
    .discover-section {
        max-width: 1200px;
        margin: 0 auto 40px;
    }
    
    .section-header {
        padding: 0 24px 16px;
    }
    
    .carousel-container {
        padding-left: 24px;
    }
    
    .subcategory-card {
        width: 140px;
    }
    
    .card-image {
        height: 140px;
    }
    
    .card-name {
        font-size: 14px;
        padding: 12px 8px;
    }
}

/* Small mobile adjustments */
@media (max-width: 380px) {
    .subcategory-card {
        width: 95px;
    }
    
    .card-image {
        height: 95px;
    }
    
    .card-name {
        font-size: 12px;
        padding: 8px 4px;
    }
}