/* /app/static/significantstories_com/css/behind-stories.css */
/* Styles for The Story Behind These Stories pages */

/* --- Breadcrumb Navigation --- */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #3498db;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    color: #95a5a6;
}

.breadcrumb > span:last-child {
    color: #5a6a7a;
}

/* --- Behind Stories Header (Index Page) --- */
.behind-stories-header {
    text-align: center;
}

.behind-stories-icon {
    margin-bottom: 1rem;
}

.behind-stories-icon svg {
    width: 48px;
    height: 48px;
    stroke: #8b7355;
}

.behind-stories-header h1 {
    font-family: var(--serif-font);
    font-size: 1.75rem;
    color: #8b7355;
    font-weight: 400;
    margin: 0 0 0.75rem 0;
    font-style: italic;
}

.behind-stories-header-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.behind-stories-header-link:hover {
    opacity: 0.8;
    text-decoration: none;
}

.behind-stories-header-title {
    font-family: var(--serif-font);
    font-size: 1.75rem;
    color: #8b7355;
    font-weight: 400;
    font-style: italic;
}

.behind-stories-header .page-subtitle {
    font-family: var(--serif-font);
    font-size: 1.75rem;
    color: #2c3e50;
    font-weight: 600;
    margin: 0;
}

/* --- Behind Stories Page Cards (Index) --- */
.behind-stories-pages {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.behind-story-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: #fdfbf7;
    border: 1px solid #e6d9b8;
    border-left: 4px solid #8b7355;
    border-radius: 0 12px 12px 0;
    padding: 1.25rem 1.5rem;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.behind-story-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(139, 115, 85, 0.15);
    border-color: #d4c4a8;
    background-color: #fdf6e3;
    text-decoration: none;
}

.behind-story-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.behind-story-card-icon svg {
    width: 28px;
    height: 28px;
    stroke: #8b7355;
}

.behind-story-card-content {
    flex: 1;
}

.behind-story-card-title {
    font-family: var(--serif-font);
    font-size: 1.15rem;
    color: #2c3e50;
    margin: 0 0 0.25rem 0;
}

.behind-story-card-description {
    font-size: 0.9rem;
    color: #5a6a7a;
    margin: 0 0 0.25rem 0;
    line-height: 1.4;
}

.behind-story-card-reference {
    font-size: 0.85rem;
    color: #7f8c8d;
    font-style: italic;
}

.behind-story-card-arrow {
    color: #8b7355;
    flex-shrink: 0;
    margin-left: auto;
    padding-left: 1rem;
}

.behind-story-card-arrow svg {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
}

.behind-story-card:hover .behind-story-card-arrow svg {
    transform: translateX(4px);
}

/* --- Back Link --- */
.behind-stories-back {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #ecf0f1;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #3498db;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}

.back-link svg {
    width: 18px;
    height: 18px;
}

/* --- Individual Page Article --- */
.behind-story-article {
    max-width: 700px;
    margin: 0 auto;
}

.behind-story-divider {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 0 0 1.5rem 0;
}

/* --- Content Blocks within Behind Stories --- */
.behind-story-content {
    margin-bottom: 2rem;
}

.behind-story-content .content-block {
    margin-bottom: 1.5rem;
}

.behind-story-content .content-block p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #34495e;
}

/* --- Page Navigation (Prev/Next) --- */
.behind-story-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #ecf0f1;
}

.behind-story-navigation .nav-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04);
}

.behind-story-navigation .nav-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.07);
    border-color: #ced4da;
    text-decoration: none;
}

.behind-story-navigation .nav-card-placeholder {
    flex: 1;
}

.behind-story-navigation .nav-card-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #8b7355;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 0.25rem;
}

.behind-story-navigation .nav-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

.behind-story-navigation .nav-card.prev {
    text-align: left;
}

.behind-story-navigation .nav-card.next {
    text-align: right;
}

/* --- Footnotes --- */
/* Hide all hr elements - footnotes section has its own border */
.behind-story-content hr {
    display: none;
}

.behind-story-content .footnotes {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
    font-size: 0.9rem;
    color: #5a6a7a;
}

.behind-story-content .footnotes ol {
    padding-left: 1.5rem;
    margin: 0;
}

.behind-story-content .footnotes li {
    margin-bottom: 0.5rem;
}

.behind-story-content .footnotes li p {
    margin: 0;
    display: inline;
}

.behind-story-content .footnote-ref {
    font-size: 0.75rem;
    vertical-align: super;
    text-decoration: none;
    color: #3498db;
}

.behind-story-content .footnote-backref {
    text-decoration: none;
    color: #3498db;
    margin-left: 0.25rem;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .behind-stories-header h1 {
        font-size: 1.75rem;
    }

    .behind-story-article-header h1 {
        font-size: 1.75rem;
    }

    .behind-stories-icon svg {
        width: 40px;
        height: 40px;
    }

    .behind-story-card {
        padding: 1rem 1.25rem;
        gap: 0.75rem;
    }

    .behind-story-card-icon svg {
        width: 24px;
        height: 24px;
    }

    .behind-story-card-title {
        font-size: 1.05rem;
    }

    .behind-story-navigation {
        flex-direction: column;
    }

    .behind-story-navigation .nav-card {
        text-align: left !important;
    }

    .behind-story-navigation .nav-card-title {
        font-size: 1rem;
    }
}

/* Reading progress indicator styles are now in reading-progress.css */
