/**
 * Blog Topic Hubs Styles
 * Extracted from page-categories.php template
 *
 * @package TravelerChildTheme
 * @since 2.0.0
 */

@import url('tokens.css');
@import url('base.css');

/* Constrain topic hub containers */
body.page-template-page-categories .container {
    max-width: 980px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* Override global body color for blog pages */
body.page-template-page-categories {
    color: #212529!important;
}

/* Hero Section */
.categories-hero {
    background: rgb(255 153 0 / 4%);
    padding: 60px 0 60px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.hero-overline {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6c757d;
    margin-bottom: 15px;
}

.categories-hero h1 {
    font-size: 42px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 20px;
    line-height: 1.2;
}

.categories-hero p {
    font-size: 18px;
    color: #6c757d;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Featured Guides */
.featured-guides {
    padding: 40px 0;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.featured-guides-title {
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    color: #324fbe;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.featured-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.featured-link {
    padding: 12px 24px;
    background: #ffffff;
    border: 2px solid #324fbe;
    border-radius: 6px;
    color: #324fbe;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
}

.featured-link:hover {
    background: #324fbe;
    color: #ffffff;
}

/* Hub Sections */
.topic-hub {
    padding: 60px 0;
    border-bottom: 1px solid #e9ecef;
}

.topic-hub:last-of-type {
    border-bottom: none;
}

.hub-container {
    display: grid;
    grid-template-columns: 35% 65%;
    gap: 60px;
    align-items: start;
}

.hub-left {
    position: sticky;
    top: 100px;
}

.hub-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #324fbe;
    margin-bottom: 10px;
}

.hub-title {
    font-size: 32px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hub-description {
    font-size: 16px;
    color: #6c757d;
    line-height: 1.6;
}

/* Category Pills */
.hub-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.category-pill {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.2s ease;
    text-decoration: none;
    display: block;
}

.category-pill:hover {
    border-color: #324fbe;
    box-shadow: 0 2px 8px rgba(50, 79, 190, 0.15);
    transform: translateY(-2px);
}

.category-pill-name {
    font-size: 16px;
    font-weight: 600;
    color: #212529;
    margin: 0 0 5px 0;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-pill-icon {
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
}

.category-pill:hover .category-pill-name {
    color: #324fbe;
}

.category-pill-desc {
    font-size: 13px;
    color: #6c757d;
    line-height: 1.4;
    margin: 0;
}

/* All Topics A-Z Section */
.all-topics-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.all-topics-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    color: #212529;
}

.topics-az-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
    list-style: none;
    padding: 0;
}

.topic-tag {
    display: inline-block;
    padding: 10px 18px;
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    color: #495057;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.topic-tag:hover {
    background: #324fbe;
    border-color: #324fbe;
    color: #ffffff;
    transform: translateY(-1px);
}

/* Bottom CTA */
.bottom-cta {
    background: #f0f7ff;
    padding: 60px 0;
    text-align: center;
}

.bottom-cta h2 {
    font-size: 32px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 15px;
}

.bottom-cta p {
    font-size: 18px;
    color: #495057;
    margin-bottom: 30px;
}

.btn-tours {
    display: inline-block;
    padding: 14px 32px;
    background: #324fbe;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-tours:hover {
    background: #2a3f9e;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(50, 79, 190, 0.3);
}

/* Responsive */
@media (max-width: 992px) {
    .hub-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hub-left {
        position: static;
    }

    .hub-categories {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .categories-hero h1 {
        font-size: 32px;
    }

    .hub-title {
        font-size: 28px;
    }

    .topics-az-grid {
        gap: 8px;
    }

    .topic-tag {
        font-size: 13px;
        padding: 8px 14px;
    }
}
