/*
* Fun Girl With A Camera - Story Page Stylesheet
* https://fungirlwithacamera.com
* Author: Fun Girl With A Camera
* Description: Specific styles for story pages
*/

/* ===== STORY PAGE LAYOUT ===== */
.story-content {
    padding: var(--spacing-xl) 0;
    margin-top: 70px; /* Header height */
}

.story-content .container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-xl);
}

/* ===== STORY MAIN CONTENT ===== */
.story {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.story-header {
    padding: var(--spacing-xl) var(--spacing-xl) var(--spacing-lg);
    position: relative;
}

.story-header:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: var(--spacing-xl);
    right: var(--spacing-xl);
    height: 1px;
    background-color: rgba(0, 0, 0, 0.1);
}

.story-header h1 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
    color: var(--primary-color);
}

.story-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    gap: var(--spacing-md);
}

.story-intro {
    padding: var(--spacing-lg) var(--spacing-xl);
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--primary-color);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.story-section {
    padding: var(--spacing-lg) var(--spacing-xl);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.story-section:last-of-type {
    border-bottom: none;
}

.story-section h2 {
    font-size: 1.8rem;
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
}

.story-section p {
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
    color: var(--text-color);
}

/* ===== STORY IMAGES ===== */
.story-figure {
    margin: var(--spacing-lg) 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.story-image {
    width: 100%;
    height: auto;
    display: block;
}

.story-figure figcaption {
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: var(--light-color);
    color: var(--text-light);
    font-size: 0.85rem;
    font-style: italic;
    line-height: 1.5;
}

.story-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
}

.story-gallery .story-figure {
    margin: 0;
}

/* ===== STORY FOOTER ===== */
.story-footer {
    padding: var(--spacing-lg) var(--spacing-xl);
    background-color: var(--light-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.story-signature {
    font-family: var(--heading-font);
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 0;
}

.story-share {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.share-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-round);
    background-color: var(--white);
    color: var(--primary-color);
    transition: all var(--transition-fast);
}

.share-button:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* ===== SIDEBAR ===== */
.story-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.author-card,
.more-stories,
.newsletter-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
}

.author-card {
    text-align: center;
}

.author-image {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-round);
    object-fit: cover;
    margin: 0 auto var(--spacing-md);
    border: 3px solid var(--secondary-color);
}

.author-card h3,
.more-stories h3,
.newsletter-card h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
    font-size: 1.3rem;
}

.author-card p {
    margin-bottom: var(--spacing-md);
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
}

.more-stories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.more-stories li {
    margin-bottom: var(--spacing-sm);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: var(--spacing-sm);
}

.more-stories li:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.more-stories a {
    color: var(--text-color);
    transition: color var(--transition-fast);
    font-size: 0.95rem;
    line-height: 1.4;
    display: block;
}

.more-stories a:hover {
    color: var(--secondary-color);
}

.newsletter-card p {
    color: var(--text-color);
    margin-bottom: var(--spacing-md);
    font-size: 0.95rem;
}

.newsletter-card .newsletter-form {
    display: flex;
    flex-direction: column;
}

.newsletter-card input {
    margin-bottom: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-sm);
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
    .story-content .container {
        grid-template-columns: 1fr;
    }
    
    .story-header h1 {
        font-size: 2rem;
    }
    
    .story-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .story-header,
    .story-intro,
    .story-section,
    .story-footer {
        padding: var(--spacing-md);
    }
    
    .story-header h1 {
        font-size: 1.8rem;
    }
    
    .story-meta {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
    
    .story-intro {
        font-size: 1.1rem;
    }
    
    .story-section h2 {
        font-size: 1.5rem;
    }
    
    .story-footer {
        flex-direction: column;
        align-items: flex-start;
        text-align: center;
    }
    
    .story-signature,
    .story-share {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .story-gallery {
        grid-template-columns: 1fr;
    }
    
    .share-button {
        width: 36px;
        height: 36px;
    }
    
    .author-card,
    .more-stories,
    .newsletter-card {
        padding: var(--spacing-md);
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .site-header,
    .site-footer,
    .story-sidebar,
    .story-share,
    .back-to-top {
        display: none;
    }
    
    .story-content .container {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .story {
        box-shadow: none;
    }
    
    .story-figure {
        break-inside: avoid;
        page-break-inside: avoid;
        box-shadow: none;
    }
    
    .story-figure img {
        max-height: 500px;
        object-fit: contain;
    }
    
    .story-section {
        page-break-inside: avoid;
    }
    
    body {
        font-size: 12pt;
    }
    
    h1 {
        font-size: 24pt;
    }
    
    h2 {
        font-size: 18pt;
    }
    
    a:after {
        content: " (" attr(href) ")";
        font-size: 90%;
    }
    
    a[href^="#"]:after {
        content: "";
    }
    
    img {
        page-break-inside: avoid;
    }
}
