/**
 * TechHub Hero & Omnisearch Stylesheet
 * 
 * Bố cục khu vực tiêu điểm (Hero), Khung tìm kiếm thông minh đa thể loại
 * và các chips lọc chủ đề xu hướng.
 */

/* Hero Container */
.th-hero-section {
    position: relative;
    padding: 2.75rem 1.25rem 2rem 1.25rem;
    background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.06) 0%, rgba(248, 250, 252, 0) 70%), var(--wp--preset--color--surface-light);
    border-bottom: 1px solid var(--wp--preset--color--border-light);
    text-align: center;
    overflow: hidden;
}

.th-hero-container {
    max-width: 920px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Badge Thông Báo Nổi Bật */
.th-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.95rem;
    background: #ffffff;
    border: 1px solid var(--wp--preset--color--border-light);
    border-radius: 9999px;
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--wp--preset--color--navy-primary);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    margin-bottom: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.th-hero-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.th-hero-badge-tag {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #ffffff;
    padding: 0.1rem 0.45rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
}

/* Tiêu Đề Hero */
.th-hero-title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--wp--preset--color--navy-primary);
    margin: 0 0 1.25rem 0;
}

.th-hero-title .gradient-text {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Mô Tả Hero */
.th-hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.6;
    color: var(--wp--preset--color--text-muted);
    max-width: 680px;
    margin: 0 auto 2.25rem auto;
}

/* Khung Omnisearch Box */
.th-omnisearch-box {
    background: #ffffff;
    border: 1px solid var(--wp--preset--color--border-light);
    border-radius: 16px;
    padding: 0.5rem;
    box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.08), 0 4px 10px -4px rgba(0, 0, 0, 0.03);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    max-width: 760px;
    margin: 0 auto;
}

.th-omnisearch-box:focus-within {
    border-color: var(--wp--preset--color--blue-electric);
    box-shadow: 0 16px 36px -10px rgba(37, 99, 235, 0.15), 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.th-search-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.th-search-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 0.85rem;
    color: var(--wp--preset--color--text-muted);
    flex-shrink: 0;
}

.th-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.05rem;
    font-family: var(--wp--preset--font-family--sans);
    color: var(--wp--preset--color--navy-primary);
    background: transparent;
    padding: 0.75rem 0.5rem;
}

.th-search-input::placeholder {
    color: #94a3b8;
    font-size: 0.95rem;
}

.th-search-submit-btn {
    background: var(--wp--preset--color--blue-electric);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.15s ease;
    flex-shrink: 0;
}

.th-search-submit-btn:hover {
    background: var(--wp--preset--color--blue-hover);
    transform: translateY(-1px);
}

/* Quick Topic Pills Dưới Search */
.th-hero-quick-topics {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.th-quick-topic-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--wp--preset--color--text-muted);
    margin-right: 0.25rem;
}

.th-topic-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    background: #ffffff;
    border: 1px solid var(--wp--preset--color--border-light);
    color: var(--wp--preset--color--navy-primary);
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
}

.th-topic-pill:hover {
    border-color: var(--wp--preset--color--blue-electric);
    color: var(--wp--preset--color--blue-electric);
    background: var(--wp--preset--color--blue-light);
    transform: translateY(-1px);
}

/* Thống Kê Nhanh (Stats Strip) */
.th-hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(226, 232, 240, 0.6);
}

.th-stat-item {
    text-align: center;
}

.th-stat-number {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--wp--preset--color--navy-primary);
    line-height: 1;
}

.th-stat-label {
    font-size: 0.75rem;
    color: var(--wp--preset--color--text-muted);
    margin-top: 0.35rem;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 640px) {
    .th-hero-section {
        padding: 3rem 1rem 2.5rem 1rem;
    }
    .th-search-form {
        flex-direction: column;
        align-items: stretch;
    }
    .th-search-icon-wrapper {
        display: none;
    }
    .th-search-submit-btn {
        width: 100%;
        padding: 0.65rem;
    }
    .th-hero-stats {
        gap: 1.25rem;
        flex-wrap: wrap;
    }
}

/* Dark Mode Overrides */
html.dark-mode .th-hero-section {
    background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.12) 0%, rgba(11, 17, 32, 0) 70%), #0b1120;
    border-bottom-color: #1e293b;
}

html.dark-mode .th-hero-badge {
    background: #0f172a;
    border-color: #1e293b;
    color: #f8fafc;
}

html.dark-mode .th-omnisearch-box {
    background: #0f172a;
    border-color: #1e293b;
    box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.5);
}

html.dark-mode .th-omnisearch-box:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.7), 0 0 0 3px rgba(59, 130, 246, 0.2);
}

html.dark-mode .th-search-input {
    color: #f8fafc;
}

html.dark-mode .th-search-input::placeholder {
    color: #64748b;
}

html.dark-mode .th-topic-pill {
    background: #0f172a;
    border-color: #1e293b;
    color: #cbd5e1;
}

html.dark-mode .th-topic-pill:hover {
    border-color: #3b82f6;
    color: #60a5fa;
    background: #172554;
}

html.dark-mode .th-hero-stats {
    border-top-color: #1e293b;
}
