/**
 * Greater Zion Blog Template Styles
 * Add to theme CSS or enqueue separately
 */

/* ========================================
   1. Hero Section
   ======================================== */
.gz-hero-section {
    position: relative;
    height: 500px;
    width: 100%;
    overflow: hidden;
    margin-top: -80px; /* Offset header */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.gz-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.4) 100%);
}

/* ========================================
   2. Progress Bar
   ======================================== */
.gz-progress-bar-wrapper {
    position: sticky;
    top: 80px;
    background: #fff;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.gz-progress-bar {
    height: 4px;
    background: #f8f8f8;
    position: relative;
}

.gz-progress-fill {
    height: 100%;
    background: #EB6B40;
    width: 0%;
    transition: width 0.3s ease;
}

.gz-progress-text {
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    font-size: 14px;
}

.gz-reading-section {
    color: #364b54;
    font-weight: 500;
}

.gz-reading-percentage {
    color: #7B7C7F;
}

/* ========================================
   3. Title Card
   ======================================== */
.gz-title-card {
    background: #fff;
    max-width: 900px;
    margin: -100px auto 50px;
    padding: 40px 50px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10;
}

.gz-meta-info {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
}

.gz-category {
    color: #EB6B40;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gz-separator {
    margin: 0 10px;
    color: #D5D2D2;
}

.gz-read-time {
    color: #7B7C7F;
}

.gz-post-title {
    font-size: 42px;
    line-height: 1.2;
    color: #364b54;
    margin-bottom: 15px;
    font-weight: bold;
}

.gz-post-excerpt {
    font-size: 18px;
    color: #7B7C7F;
    line-height: 1.6;
    margin-bottom: 30px;
}

.gz-author-share {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gz-author-info {
    display: flex;
    align-items: center;
}

.gz-author-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 15px;
}

.gz-author-text {
    display: flex;
    flex-direction: column;
}

.gz-author-name {
    font-weight: 600;
    color: #364b54;
}

.gz-post-date {
    font-size: 14px;
    color: #7B7C7F;
}

.gz-share-buttons {
    display: flex;
    gap: 10px;
}

.gz-share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f8f8;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gz-btn-icon {
    font-size: 16px;
    line-height: 1;
}

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

/* ========================================
   4. Content Layout
   ======================================== */
.gz-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.gz-content-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 50px;
    margin-bottom: 60px;
}

/* ========================================
   5. Main Content
   ======================================== */
.gz-main-content {
    max-width: 750px;
}

/* Quick Facts */
.gz-quick-facts {
    background: #f8f8f8;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.gz-quick-facts h3 {
    margin: 0 0 20px 0;
    color: #364b54;
    font-size: 20px;
}

.gz-facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.gz-fact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gz-fact-icon {
    font-size: 20px;
}

.gz-fact-text {
    color: #364b54;
    font-size: 14px;
}

/* Itinerary Section */
.gz-itinerary-section {
    margin-bottom: 40px;
}

.gz-itinerary-toggle {
    width: 100%;
    background: #364b54;
    color: white;
    border: none;
    padding: 20px 30px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.gz-itinerary-toggle:hover {
    background: #2a3d44;
}

.gz-toggle-icon {
    font-size: 20px;
    margin-right: 10px;
}

.gz-toggle-arrow {
    transition: transform 0.3s ease;
}

.gz-itinerary-toggle.active .gz-toggle-arrow {
    transform: rotate(180deg);
}

.gz-itinerary-content {
    display: none;
    margin-top: 20px;
    padding: 30px;
    background: #f8f8f8;
    border-radius: 8px;
    border: 2px solid #D5D2D2;
}

.gz-timeline-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 30px;
    margin-bottom: 30px;
    position: relative;
}

.gz-timeline-marker {
    text-align: center;
}

.gz-time, .gz-day {
    background: #EB6B40;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 5px;
}

.gz-day {
    background: #364b54;
}

.gz-timeline-marker .gz-day + .gz-time {
    margin-top: 5px;
}

.gz-timeline-content {
    padding-bottom: 30px;
    border-bottom: 1px solid #D5D2D2;
}

.gz-timeline-item:last-child .gz-timeline-content {
    border-bottom: none;
}

.gz-activity-type {
    background: rgba(54, 75, 84, 0.1);
    color: #364b54;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 10px;
}

.gz-timeline-content h4 {
    margin: 0 0 10px 0;
    color: #364b54;
    font-size: 20px;
}

.gz-timeline-content .gz-description {
    color: #7B7C7F;
    margin: 0 0 15px 0;
}

.gz-timeline-content .gz-description p {
    margin-bottom: 10px;
}

.gz-timeline-content .gz-description p:last-child {
    margin-bottom: 0;
}

.gz-location-info {
    margin-top: 15px;
}

.gz-location-item {
    color: #EB6B40;
    font-size: 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.gz-location-item:last-child {
    margin-bottom: 0;
}

.gz-location-item .gz-btn-icon {
    margin-top: 2px;
    flex-shrink: 0;
    font-size: 14px;
}

.gz-location-name {
    font-weight: 500;
}

.gz-location-address {
    color: #7B7C7F;
    font-size: 12px;
    margin-left: 5px;
}

.gz-timeline-image {
    margin: 15px 0;
}

.gz-timeline-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.gz-timeline-link {
    margin-top: 15px;
}

.gz-btn-small {
    padding: 8px 16px;
    font-size: 12px;
}

/* Conditional spacing - only add margin if element exists */
.gz-timeline-content h4 + .gz-description {
    margin-top: 10px;
}

.gz-timeline-content .gz-description + .gz-timeline-image,
.gz-timeline-content .gz-description + .gz-location-info,
.gz-timeline-content .gz-description + .gz-timeline-link {
    margin-top: 15px;
}

.gz-timeline-content .gz-timeline-image + .gz-location-info,
.gz-timeline-content .gz-timeline-image + .gz-timeline-link {
    margin-top: 15px;
}

.gz-timeline-content .gz-location-info + .gz-timeline-link {
    margin-top: 15px;
}

.gz-itinerary-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* Post Content */
.gz-post-content {
    font-size: 18px;
    line-height: 1.8;
    color: #364b54;
    font-family: Georgia, serif;
}

.gz-post-content p {
    margin-bottom: 25px;
}

.gz-post-content h2, 
.gz-post-content h3, 
.gz-post-content h4 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #364b54;
}

.gz-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px 0;
}

.gz-post-content blockquote {
    border-left: 5px solid #EB6B40;
    padding-left: 30px;
    margin: 40px 0;
    font-style: italic;
    font-size: 24px;
    color: #364b54;
}

/* Post Tags */
.gz-post-tags {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gz-tag {
    background: #f8f8f8;
    color: #364b54;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.gz-tag:hover {
    background: #EB6B40;
    color: white;
}

/* ========================================
   6. Sidebar
   ======================================== */
.gz-blog-sidebar {
    position: sticky;
    top: 150px;
    height: fit-content;
}

.gz-sidebar-widget {
    background: white;
    border: 1px solid #D5D2D2;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
}

.gz-sidebar-widget h3 {
    margin: 0 0 20px 0;
    color: #364b54;
    font-size: 20px;
}

.gz-related-item {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f8f8f8;
    display: flex;
    gap: 15px;
}

.gz-related-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.gz-related-image {
    flex: 0 0 80px;
    height: 60px;
    overflow: hidden;
    border-radius: 6px;
}

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

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

.gz-related-content {
    flex: 1;
}

.gz-related-item h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    line-height: 1.3;
}

.gz-related-item h4 a {
    color: #364b54;
    text-decoration: none;
}

.gz-related-item h4 a:hover {
    color: #EB6B40;
}

.gz-related-meta {
    color: #7B7C7F;
    font-size: 12px;
    margin-bottom: 10px;
}

.gz-read-more {
    color: #EB6B40;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.gz-read-more:hover {
    text-decoration: underline;
}

/* Newsletter */
.gz-newsletter p {
    color: #7B7C7F;
    margin-bottom: 20px;
}

.gz-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.gz-newsletter-form input {
    padding: 12px 20px;
    border: 1px solid #D5D2D2;
    border-radius: 25px;
    font-size: 14px;
}

/* ========================================
   7. Buttons
   ======================================== */
.gz-btn {
    padding: 12px 24px;
    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: 14px;
}

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

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

.gz-btn-secondary {
    background: white;
    color: #364b54;
    border: 2px solid #D5D2D2;
}

.gz-btn-secondary:hover {
    border-color: #364b54;
}

.gz-btn-hero {
    background: #EB6B40;
    color: white;
    padding: 16px 32px;
    font-size: 16px;
}

/* ========================================
   8. Bottom CTA
   ======================================== */
.gz-bottom-cta {
    background: #364b54;
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.gz-cta-content h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.gz-cta-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* ========================================
   9. Mobile Responsive
   ======================================== */
@media (max-width: 768px) {
    .gz-hero-section {
        height: 400px;
    }
    
    .gz-title-card {
        margin: -50px 20px 30px;
        padding: 30px;
    }
    
    .gz-post-title {
        font-size: 28px;
    }
    
    .gz-content-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .gz-blog-sidebar {
        position: static;
    }
    
    .gz-facts-grid {
        grid-template-columns: 1fr;
    }
    
    .gz-timeline-item {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .gz-timeline-marker {
        text-align: left;
        margin-bottom: 15px;
    }
    
    .gz-related-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .gz-related-image {
        flex: 0 0 auto;
        width: 100%;
        height: 120px;
    }
    
    /* Sticky Mobile Share */
    .gz-sticky-share {
        display: flex;
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        background: white;
        padding: 10px;
        border-radius: 30px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.2);
        gap: 10px;
        z-index: 100;
    }
}

/* Hide sticky share on desktop */
@media (min-width: 769px) {
    .gz-sticky-share {
        display: none;
    }
}

/* Notification Styles */
.gz-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #364b54;
    color: white;
    padding: 15px 25px;
    border-radius: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.gz-notification.show {
    transform: translateY(0);
    opacity: 1;
}

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