/**
 * Content Hub Styles
 *
 * Styles for content listing pages (/guides, /compare, /support)
 */

.content-hub {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

/* Breadcrumbs */
.content-hub .breadcrumbs {
    margin-bottom: 2rem;
}

.content-hub .breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
    color: var(--warm-500);
}

.content-hub .breadcrumbs li:not(:last-child)::after {
    content: '/';
    margin-left: 0.5rem;
    color: var(--warm-400);
}

.content-hub .breadcrumbs a {
    color: var(--green);
    text-decoration: none;
}

.content-hub .breadcrumbs a:hover {
    text-decoration: underline;
}

/* Header */
.hub-header {
    text-align: center;
    margin-bottom: 3rem;
}

.hub-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 1rem;
}

.hub-description {
    font-size: 1.125rem;
    color: var(--warm-600);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Sections */
.hub-section {
    margin-bottom: 3rem;
}

.hub-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--navy);
    margin: 0 0 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--warm-200);
}

/* Grid */
.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.hub-grid--featured {
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
}

/* Cards */
.hub-card {
    display: block;
    background: white;
    border: 1px solid var(--warm-200);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hub-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(31, 39, 68, 0.1);
}

.hub-card--featured {
    border-color: var(--green);
    border-width: 2px;
}

.hub-card__image {
    aspect-ratio: 3 / 1;
    overflow: hidden;
    background: var(--navy);
}

.hub-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hub-card__content {
    padding: 1.5rem;
}

.hub-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--navy);
    margin: 0 0 0.75rem;
    line-height: 1.3;
}

.hub-card:hover .hub-card__title {
    color: var(--green);
}

.hub-card__description {
    font-size: 0.9375rem;
    color: var(--warm-600);
    margin: 0 0 1rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hub-card__meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8125rem;
    color: var(--warm-500);
}

.hub-card__reading-time::before {
    content: '';
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-right: 0.25rem;
    vertical-align: -0.125em;
    background: currentColor;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E");
    mask-size: contain;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
}

/* Empty State */
.hub-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--warm-500);
}

/* CTA Section */
.hub-cta {
    margin-top: 4rem;
    padding: 3rem;
    background: linear-gradient(135deg, var(--navy) 0%, #2d3a5e 100%);
    border-radius: 16px;
    text-align: center;
}

.hub-cta h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin: 0 0 0.75rem;
    border: none;
    padding: 0;
}

.hub-cta p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 1.5rem;
}

.hub-cta .btn-primary {
    background: var(--green);
    color: white;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.hub-cta .btn-primary:hover {
    background: var(--primary-700);
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 768px) {
    .content-hub {
        padding: 1.5rem 1rem 3rem;
    }

    .hub-header h1 {
        font-size: 2rem;
    }

    .hub-description {
        font-size: 1rem;
    }

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

    .hub-cta {
        padding: 2rem 1.5rem;
    }

    .hub-cta h2 {
        font-size: 1.5rem;
    }
}
