/**
 * Blog Archive Template Styles
 * Greater Zion Theme
 */

/* ========================================
   1. Archive Container
   ======================================== */
.gz-blog-archive {
    background: #f8f8f8;
    min-height: 100vh;
}

.gz-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   2. Hero Section
   ======================================== */
.gz-archive-hero {
    background: white;
    padding: 120px 0 60px;
    text-align: center;
    margin-top: 70px; /* Account for fixed header */
}

.gz-archive-title {
    font-size: 48px;
    font-weight: bold;
    color: #364b54;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.gz-archive-subtitle {
    font-size: 20px;
    color: #7B7C7F;
    margin: 0;
    line-height: 1.5;
}

/* ========================================
   3. Category Cards
   ======================================== */
.gz-category-cards {
    padding: 40px 0;
}

.gz-cards-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

.gz-cards-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    padding: 10px 0;
}

.gz-cards-grid::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.gz-cards-nav {
    background: #364b54;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.gz-cards-nav:hover {
    background: #EB6B40;
    transform: scale(1.1);
}

.gz-cards-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.gz-category-card {
    background: white;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    flex: 0 0 280px;
    min-width: 280px;
}

.gz-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.gz-category-card.active {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 2px solid #EB6B40;
}

.gz-category-card.clicked {
    transform: scale(0.95);
}

/* Card Types - Using Greater Zion Brand Colors */
.gz-card-planning {
    background: linear-gradient(135deg, #eb6b40 0%, #d55a2f 100%);
    color: white;
}

.gz-card-planning .gz-card-link {
    color: rgba(255,255,255,0.8);
}

.gz-card-adventures {
    background: linear-gradient(135deg, #364b54 0%, #2a3a42 100%);
    color: white;
}

.gz-card-adventures .gz-card-link {
    color: #a0babf;
}

.gz-card-stories {
    background: linear-gradient(135deg, #a0babf 0%, #8ba8ad 100%);
    color: #364b54;
}

.gz-card-stories .gz-card-link {
    color: #364b54;
}

.gz-card-culture {
    background: white;
    border: 2px solid #d5d2d2;
    color: #364b54;
}

.gz-card-culture:hover {
    border-color: #364b54;
    color: #364b54;
}

.gz-card-dining {
    background: linear-gradient(135deg, #7b7c7f 0%, #6a6b6e 100%);
    color: white;
}

.gz-card-dining .gz-card-link {
    color: rgba(255,255,255,0.8);
}

.gz-card-foodie {
    background: linear-gradient(135deg, #a0babf 0%, #8ba8ad 100%);
    color: #364b54;
}

.gz-card-foodie .gz-card-link {
    color: #364b54;
}

.gz-card-events {
    background: linear-gradient(135deg, #364b54 0%, #2a3a42 100%);
    color: white;
}

.gz-card-events .gz-card-link {
    color: #a0babf;
}

.gz-card-golf {
    background: linear-gradient(135deg, #eb6b40 0%, #d55a2f 100%);
    color: white;
}

.gz-card-golf .gz-card-link {
    color: rgba(255,255,255,0.8);
}

.gz-card-gems {
    background: linear-gradient(135deg, #a0babf 0%, #8ba8ad 100%);
    color: #364b54;
}

.gz-card-gems .gz-card-link {
    color: #364b54;
}

.gz-card-all {
    background: white;
    border: 2px solid #d5d2d2;
    color: #364b54;
}

.gz-card-all:hover {
    border-color: #364b54;
    color: #364b54;
}

/* Card Content */
.gz-card-number {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.gz-card-icon {
    font-size: 36px;
    color: #D5D2D2;
    margin-bottom: 10px;
}

.gz-category-card h3 {
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 15px 0;
}

.gz-card-link {
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.gz-card-link:hover {
    opacity: 0.8;
}

.gz-arrow {
    margin-left: 5px;
}

/* ========================================
   4. Recent Stories Section
   ======================================== */
.gz-recent-stories {
    padding: 60px 0;
}

.gz-posts-grid.loading {
    opacity: 0.6;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.gz-section-title {
    font-size: 24px;
    font-weight: bold;
    color: #364b54;
    margin: 0 0 40px 0;
    text-align: center;
}

.gz-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

/* ========================================
   5. Post Cards
   ======================================== */
.gz-post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.gz-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

/* Card Image */
.gz-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.gz-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gz-post-card:hover .gz-card-image img {
    transform: scale(1.05);
}

/* Content Badge */
.gz-content-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
}

.gz-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 17px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    background: white;
    opacity: 0.9;
}

.gz-badge-planning {
    color: #eb6b40;
}

.gz-badge-adventures {
    color: #364b54;
}

.gz-badge-stories {
    color: #a0babf;
}

.gz-badge-culture {
    color: #7b7c7f;
}

.gz-badge-dining {
    color: #7b7c7f;
}

.gz-badge-foodie {
    color: #a0babf;
}

.gz-badge-events {
    color: #364b54;
}

.gz-badge-golf {
    color: #eb6b40;
}

.gz-badge-gems {
    color: #a0babf;
}

.gz-badge-default {
    color: #364b54;
}



/* Card Content */
.gz-card-content {
    padding: 30px 20px 20px 20px;
}

.gz-card-title {
    font-size: 22px;
    font-weight: bold;
    color: #364b54;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.gz-card-title a {
    color: inherit;
    text-decoration: none;
}

.gz-card-title a:hover {
    color: #EB6B40;
}

.gz-card-excerpt {
    color: #7B7C7F;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Card Meta */
.gz-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.gz-meta-item {
    background: #f8f8f8;
    padding: 8px 16px;
    border-radius: 15px;
    font-size: 12px;
    color: #364b54;
    display: flex;
    align-items: center;
    gap: 5px;
}

.gz-meta-icon {
    font-size: 14px;
}



/* ========================================
   6. Load More Button
   ======================================== */
.gz-load-more {
    text-align: center;
    margin-top: 40px;
}

.gz-btn {
    padding: 15px 30px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 16px;
}

.gz-btn-primary {
    background: #EB6B40;
    color: white;
}

.gz-btn-primary:hover {
    background: #d15b35;
    transform: translateY(-2px);
}

/* ========================================
   7. Mobile Responsive
   ======================================== */
@media (max-width: 1024px) {
    .gz-cards-wrapper {
        gap: 15px;
    }
    
    .gz-cards-nav {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .gz-category-card {
        flex: 0 0 250px;
        min-width: 250px;
        padding: 25px 15px;
    }
    
    .gz-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .gz-archive-title {
        font-size: 36px;
    }
    
    .gz-archive-subtitle {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .gz-container {
        padding: 0 15px;
    }
    
    .gz-archive-hero {
        padding: 60px 0 40px;
    }
    
    .gz-archive-title {
        font-size: 28px;
    }
    
    .gz-archive-subtitle {
        font-size: 16px;
    }
    
    .gz-cards-wrapper {
        gap: 10px;
    }
    
    .gz-cards-grid {
        gap: 15px;
    }
    
    .gz-category-card {
        flex: 0 0 220px;
        min-width: 220px;
        padding: 20px 15px;
    }
    
    .gz-cards-nav {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    
    .gz-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gz-category-card {
        padding: 25px 20px;
    }
    
    .gz-card-content {
        padding: 25px 20px;
    }
    
    .gz-card-title {
        font-size: 20px;
    }
    
    .gz-card-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .gz-meta-item {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   8. Animation Enhancements
   ======================================== */
.gz-post-card {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation for cards */
.gz-post-card:nth-child(1) { animation-delay: 0.1s; }
.gz-post-card:nth-child(2) { animation-delay: 0.2s; }
.gz-post-card:nth-child(3) { animation-delay: 0.3s; }
.gz-post-card:nth-child(4) { animation-delay: 0.4s; }
.gz-post-card:nth-child(5) { animation-delay: 0.5s; }
.gz-post-card:nth-child(6) { animation-delay: 0.6s; }

/* ========================================
   9. Accessibility
   ======================================== */
.gz-category-card:focus,
.gz-post-card:focus {
    outline: 2px solid #EB6B40;
    outline-offset: 2px;
}

.gz-card-link:focus,
.gz-card-cta:focus {
    outline: 2px solid #EB6B40;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ========================================
   10. Print Styles
   ======================================== */
@media print {
    .gz-category-cards,
    .gz-load-more {
        display: none;
    }
    
    .gz-post-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #D5D2D2;
    }
    
    .gz-card-image {
        height: 150px;
    }
} 