/**
 * Guide Categories Page Styles
 * Modern Cartzilla-inspired design for guide category selection
 */

/* ==========================================================================
   CSS Variables
   ========================================================================== */

.guide-categories-page {
    /* Matching news-list.css color palette */
    --gc-card-bg: #ffffff;
    --gc-card-border: rgba(0, 0, 0, 0.08);
    --gc-text-primary: #1a1c1e;
    --gc-text-secondary: #5a6169;
    --gc-text-muted: #8b919a;
    --gc-accent: #2f6ed5;
    --gc-accent-hover: #245bb8;
    --gc-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    --gc-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.12);
    --gc-hover-bg: rgba(0, 0, 0, 0.03);
    --gc-border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="dark"] .guide-categories-page {
    /* Matching news-list.css dark theme palette */
    --gc-card-bg: #212830;
    --gc-card-border: rgba(255, 255, 255, 0.08);
    --gc-text-primary: #f0f2f5;
    --gc-text-secondary: #cad0d9;
    --gc-text-muted: #8b919a;
    --gc-accent: #5c9aff;
    --gc-accent-hover: #7db0ff;
    --gc-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    --gc-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.3);
    --gc-hover-bg: rgba(255, 255, 255, 0.05);
    --gc-border-color: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   Page Layout
   ========================================================================== */

.guide-categories-page {
    min-height: 100vh;
    padding: 5rem 0 2.5rem;
    /* No explicit background - inherit from body like news-page does */
}

/* Remove footer margin on this page */
.guide-categories-page + footer {
    margin-top: 0 !important;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.gc-hero {
    margin-bottom: 1.5rem;
    padding-top: 1rem;
}

.gc-hero-content {
    padding: 0;
}

.gc-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.gc-breadcrumb a {
    color: var(--gc-text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.gc-breadcrumb a:hover {
    color: var(--gc-accent);
}

.gc-breadcrumb i {
    font-size: 0.625rem;
    color: var(--gc-text-muted);
}

.gc-breadcrumb span {
    color: var(--gc-text-primary);
    font-weight: 500;
}

.gc-hero-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gc-text-primary);
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.gc-hero-desc {
    font-size: 0.9375rem;
    color: var(--gc-text-secondary);
    margin: 0;
    max-width: 550px;
    line-height: 1.5;
}

/* ==========================================================================
   Categories Grid
   ========================================================================== */

.gc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

@media (max-width: 1199.98px) {
    .gc-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991.98px) {
    .gc-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .gc-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Category Card
   ========================================================================== */

.gc-card {
    display: flex;
    flex-direction: column;
    background: var(--gc-card-bg);
    border-radius: 1rem;
    overflow: hidden;
    text-decoration: none;
    transition: box-shadow 0.3s ease;
    box-shadow: var(--gc-shadow);
}

.gc-card:hover {
    box-shadow: var(--gc-shadow-hover);
}

/* Card Image - using original list_image ratio (342x400 = ~0.855) */
.gc-card-image {
    position: relative;
    aspect-ratio: 342 / 400;
    overflow: hidden;
    /* Ensure no gap between image and card body */
    margin-bottom: -1px;
}

/* Gradient blend from image to card body */
.gc-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        var(--gc-card-bg) 100%
    );
    pointer-events: none;
    z-index: 1;
}

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

/* Hide the overlay - not needed with simplified hover */
.gc-card-overlay {
    display: none;
}

/* Card Body */
.gc-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.gc-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gc-text-primary);
    margin: 0 0 0.5rem;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.gc-card:hover .gc-card-title {
    color: var(--gc-accent);
}

.gc-card-desc {
    font-size: 0.875rem;
    color: var(--gc-text-secondary);
    margin: 0;
    line-height: 1.5;
    flex: 1;
}

.gc-card-footer {
    margin-top: auto;
    padding-top: 0.75rem;
}

.gc-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gc-accent);
    transition: gap 0.2s ease;
}

.gc-card:hover .gc-card-cta {
    gap: 0.75rem;
}

.gc-card-cta i {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.gc-card:hover .gc-card-cta i {
    transform: translateX(3px);
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 767.98px) {
    .guide-categories-page {
        padding: 4.5rem 0 2rem;
    }
    
    .gc-hero-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .gc-card-body {
        padding: 1rem;
    }
    
    .gc-card-title {
        font-size: 1rem;
    }
}

