/* /app/static/significantstories_com/css/article.css */

/* --- Article Header & Footer Styles --- */

#article-header {
    /* This is the full-width sticky wrapper */
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    /* Smooth transition for hide/show on mobile */
    transition: transform 0.3s ease;
}

/* Mobile or narrow viewport: Hide header on scroll down */
@media (max-width: 768px), (max-height: 768px) {
    #article-header.header-hidden {
        transform: translateY(-100%);
    }
}

.article-header-content {
    /* This centers the content within the sticky wrapper */
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem 3rem 0 3rem;
}

.article-footer {
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
    margin-top: 2rem;
}

.breadcrumb {
    font-size: 0.9rem;
    color: #95a5a6;
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
}
.breadcrumb a:hover {
    text-decoration: underline;
}

.article-nav-chips {
    display: flex;
    overflow-x: auto;
    padding-bottom: 1rem;
    gap: 0.75rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.article-nav-chips::-webkit-scrollbar {
    display: none;
}

.article-chip {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    background-color: #f0f3f6;
    border: 1px solid #dcdfe4;
    border-radius: 20px;
    text-decoration: none;
    color: #34495e;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.article-chip:hover {
    background-color: #e8ebed;
    border-color: #cacfd6;
    transform: translateY(-2px);
}

.article-chip.active {
    background-color: #3498db;
    color: white;
    border-color: #2980b9;
    font-weight: 700;
    cursor: default;
}

/* New Footer Navigation Card Styles */
.nav-links {
    display: flex;
    justify-content: space-between;
    align-items: stretch; /* Make cards same height */
    gap: 1.5rem;
}

.nav-card {
    flex: 1; /* Each card takes up half the space */
    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);
}

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

.nav-card-placeholder {
    flex: 1;
}

.nav-card-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #3498db;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 0.25rem;
}

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

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

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

/* --- YouTube Block Styles --- */

.youtube-block {
    margin: 1.5rem 0;
}

.youtube-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.youtube-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
