/* ==================== MINIMALIST HOME PAGE ==================== */

/* Hero Section - Clean and Simple */
.hero {
    text-align: center;
    padding: 100px 24px 80px;
    background: transparent;
    border-radius: 0;
    margin-bottom: 64px;
    position: relative;
    overflow: visible;
    border: none;
    box-shadow: none;
}

.hero::before {
    display: none;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    line-height: 1.1;
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-tertiary);
    margin-bottom: 48px;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* Search Box - Minimalist */
.search-container {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
    z-index: 10;
}

.search-box {
    display: flex;
    background: var(--bg-tertiary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: none;
    position: relative;
    transition: all 0.2s ease;
    padding: 4px;
    border: 1px solid var(--separator);
}

.search-box:focus-within {
    border-color: var(--text-quaternary);
    background: var(--bg-card);
}

.search-box input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    font-size: 1rem;
    background: transparent;
    outline: none;
    font-family: inherit;
    color: var(--text-primary);
    font-weight: 400;
}

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

.search-box .btn {
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 500;
    font-size: 0.9375rem;
    background: var(--text-primary);
    color: var(--bg-primary);
    box-shadow: none;
}

.search-box .btn:hover {
    opacity: 0.85;
}

/* Search Suggestions - Clean */
.search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #FFFFFF !important;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    max-height: 360px;
    overflow-y: auto;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: all 0.2s ease;
    border: 1px solid var(--separator);
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

@media (prefers-color-scheme: dark) {
    .search-suggestions {
        background: #1C1C1E !important;
    }
}

.search-suggestions.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.15s ease;
    border-bottom: 0.5px solid var(--separator);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: var(--bg-tertiary);
}

/* AutoReels Button - Subtle */
.btn-autoreels {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
    padding: 12px 24px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--separator);
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Hide CarReels button when search suggestions are visible */
.hero:has(.search-suggestions.active) .btn-autoreels {
    opacity: 0 !important;
    visibility: hidden;
    pointer-events: none;
}

.btn-autoreels:hover {
    border-color: var(--text-tertiary);
    color: var(--text-primary);
}

.btn-autoreels .autoreels-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--text-primary);
    border-radius: 50%;
    font-size: 0.625rem;
    color: var(--bg-primary);
}

@media (prefers-color-scheme: dark) {
    .btn-autoreels {
        border-color: var(--separator);
        color: var(--text-secondary);
    }

    .btn-autoreels:hover {
        border-color: var(--text-tertiary);
        color: var(--text-primary);
    }
}

/* Condition Tabs - Minimal */
.condition-tabs {
    display: inline-flex;
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin-bottom: 40px;
    gap: 24px;
}

.tab-btn {
    padding: 8px 0;
    border: none;
    background: transparent;
    border-radius: 0;
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--text-tertiary);
    cursor: pointer;
    transition: color 0.2s ease;
    position: relative;
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    color: var(--text-primary);
    font-weight: 500;
    background: transparent;
    box-shadow: none;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--text-primary);
    border-radius: 1px;
}

/* Section Titles - Clean */
.main h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

/* ==================== MOBILE ADJUSTMENTS ==================== */
@media screen and (max-width: 768px) {
    .hero {
        padding: 60px 20px 48px;
        margin-bottom: 40px;
    }

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

    .hero p {
        font-size: 1rem;
        margin-bottom: 32px;
    }

    .search-container {
        max-width: 100%;
    }

    .search-box {
        flex-direction: column;
        padding: 0;
        gap: 0;
    }

    .search-box input {
        padding: 16px;
        border-bottom: 1px solid var(--separator);
    }

    .search-box .btn {
        border-radius: 0 0 12px 12px;
        padding: 14px;
    }

    .btn-autoreels {
        width: 100%;
        justify-content: center;
        margin-top: 24px;
    }

    .condition-tabs {
        gap: 16px;
        margin-bottom: 32px;
    }

    .tab-btn {
        font-size: 0.875rem;
    }
}

@media screen and (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }
}
