/* =============================================================================
   INDIVIDUAL ARTICLES LAYOUT CSS
   Separate stylesheet for individual article pages with custom layout
============================================================================= */

/* =============================================================================
   JEOPARDY STYLE STATUS CODE TABLE - Matching Site Theme
============================================================================= */

.jeopardy-container {
    margin: 2rem 0 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #6b8fff 0%, #7c9bff 50%, #a8b5ff 100%);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(107, 143, 255, 0.2);
}

.jeopardy-title {
    text-align: center;
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
    font-family: 'Outfit', sans-serif;
}

.jeopardy-board {
    width: 100%;
    border-collapse: separate;
    border-spacing: 6px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px;
    border-radius: 12px;
    table-layout: fixed;
}

.jeopardy-board thead th {
    background: #6b8fff;
    color: #FFFFFF;
    padding: 18px 12px;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Outfit', sans-serif;
    box-shadow: 0 2px 8px rgba(51, 102, 204, 0.2);
}

.jeopardy-board thead th span {
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Inter', sans-serif;
}

.jeopardy-card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 85px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f7ff 100%);
    color: #3366CC;
    border: 2px solid #a8b5ff;
    border-radius: 8px;
    font-size: 2.25rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(168, 181, 255, 0.2);
    position: relative;
    text-decoration: none;
}

.jeopardy-card:hover {
    background: linear-gradient(135deg, #a8b5ff 0%, #c4b5fd 100%);
    color: #4B0082;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(168, 181, 255, 0.4);
    border-color: #6b8fff;
    z-index: 10;
}

.jeopardy-card.special {
    background: linear-gradient(135deg, #3366CC 0%, #4477DD 100%);
    color: #ffffff;
    border-color: #3366CC;
    animation: glow 2s infinite;
}

.jeopardy-card.special i {
    font-size: 2rem;
    color: #ffffff;
    display: inline-block;
}

@keyframes glow {
    0% { box-shadow: 0 0 10px rgba(51, 102, 204, 0.4); }
    50% { box-shadow: 0 0 25px rgba(51, 102, 204, 0.6), 0 0 40px rgba(51, 102, 204, 0.3); }
    100% { box-shadow: 0 0 10px rgba(51, 102, 204, 0.4); }
}

.jeopardy-card:active,
.jeopardy-card.clicked {
    background: #e8e6ff;
    color: #3366CC;
    border-color: #3366CC;
    transform: scale(0.98);
}

/* Responsive Design for Jeopardy Board */
@media (max-width: 1024px) {
    .jeopardy-board thead th {
        font-size: 1rem;
        padding: 10px 5px;
    }

    .jeopardy-card {
        height: 70px;
        font-size: 1.5rem;
    }

    .jeopardy-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .jeopardy-container {
        padding: 1rem;
        margin: 1rem -1rem;
        border-radius: 0;
    }

    .jeopardy-board {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .jeopardy-board thead th {
        font-size: 0.9rem;
        padding: 8px 4px;
    }

    .jeopardy-board thead th span {
        font-size: 0.65rem;
    }

    .jeopardy-card {
        height: 60px;
        font-size: 1.2rem;
        min-width: 80px;
    }

    .jeopardy-title {
        font-size: 1.25rem;
        letter-spacing: 1px;
    }
}

@media (max-width: 480px) {
    .jeopardy-board {
        font-size: 0.8rem;
    }

    .jeopardy-card {
        height: 50px;
        font-size: 1rem;
        min-width: 60px;
    }

    .jeopardy-board thead th {
        font-size: 0.75rem;
        padding: 6px 2px;
    }

    .jeopardy-board thead th span {
        display: none;
    }
}

/* Article Page Container */
.article-page {
    /* Base styles for individual article pages */
    /* Will be expanded based on your big layout plans */
}

/* Article Header Section */
.article-header {
    /* Custom header styling for individual articles */
}

/* Article Content Section */
.article-content {
    /* Main content area styling */
}

/* Article Sidebar */
.article-sidebar {
    /* Sidebar content for individual articles */
}

/* Article Footer */
.article-footer {
    /* Footer section for individual articles */
}

/* Typography Overrides for Articles */
.article-page h1 {
    /* H1 styling specific to articles */
}

.article-page h2 {
    /* H2 styling specific to articles */
}

.article-page h3 {
    /* H3 styling specific to articles */
}

/* Code Blocks in Articles */
.article-page pre {
    /* Code block styling */
}

.article-page code {
    /* Inline code styling */
}

/* Images and Media in Articles */
.article-page img {
    /* Image styling within articles */
}

/* Article Navigation */
.article-navigation {
    /* Previous/Next article navigation */
}

/* Social Sharing */
.article-sharing {
    /* Social sharing buttons */
}

/* Table of Contents */
.article-toc {
    /* Table of contents styling */
}

/* Author Bio Section */
.article-author {
    /* Author information section */
}

/* Related Articles */
.related-articles {
    /* Related/recommended articles section */
}

/* Responsive Design for Articles */
@media (max-width: 768px) {
    .article-page {
        /* Mobile-specific article styling */
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .article-page {
        /* Tablet-specific article styling */
    }
}

@media (min-width: 1025px) {
    .article-page {
        /* Desktop-specific article styling */
    }
}

/* Status Code Explanation Sections */
.status-explanation {
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f7ff 0%, #ffffff 100%);
    border-left: 4px solid #6b8fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(107, 143, 255, 0.1);
}

.status-explanation h3 {
    color: #3366CC;
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #a8b5ff;
    padding-bottom: 0.5rem;
}

.status-explanation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.status-explanation li {
    margin-bottom: 1rem;
    padding: 0.75rem;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

.status-explanation h4 {
    color: #2c5aa0;
    font-weight: 500;
    font-size: 1.1rem;
    margin: 0.5rem 0 1rem 0;
    margin-left: 0.75rem;
    font-family: 'Inter', sans-serif;
}

.status-explanation li strong {
    color: #3366CC;
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.status-explanation li:last-child {
    margin-bottom: 0;
}

/* Share icon styling */
.share-icon {
    margin-left: 0.5rem;
    cursor: pointer;
    color: inherit;
    font-size: 0.9em;
    opacity: 0.7;
    transition: opacity 0.3s ease, color 0.3s ease;
    vertical-align: middle;
}

.share-icon:hover {
    opacity: 1;
    color: #3366CC;
}

/* Share button styling */
.share-button {
    margin-left: 0.5rem;
    background: #6b8fff;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-family: 'Inter', sans-serif;
    vertical-align: middle;
}

.share-button:hover {
    background: #3366CC;
    transform: translateY(-1px);
}

.share-button:active {
    transform: translateY(0);
}

/* Share URL display */
.share-url-container {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 1rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    display: none;
}

.share-url-container.active {
    display: block;
}

.share-url-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.share-url-code {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 0.75rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.85rem;
    color: #212529;
    word-break: break-all;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.share-url-code:hover {
    background: #f8f9fa;
}

.share-url-copied {
    color: #28a745;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.share-url-copied.show {
    opacity: 1;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* =============================================================================
   STATUS CODE MODAL STYLES
============================================================================= */

/* Modal overlay and container */
.status-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.status-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: linear-gradient(135deg, #ffffff 0%, #f8f7ff 100%);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(107, 143, 255, 0.3);
    border: 2px solid #a8b5ff;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.status-modal.active .modal-content {
    transform: translate(-50%, -50%) scale(1);
}

/* Modal header */
.modal-header {
    display: flex;
    align-items: center;
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: 1px solid rgba(168, 181, 255, 0.2);
    background: linear-gradient(135deg, #6b8fff 0%, #7c9bff 50%, #a8b5ff 100%);
    color: white;
    position: relative;
}

.modal-header h3 {
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    width: 100%;
    text-align: center;
    line-height: 1.3;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    font-size: 0;
    line-height: 0;
}

.modal-close i {
    font-size: 1.5rem;
    line-height: 1;
}

.modal-close:before,
.modal-close:after {
    display: none !important;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Modal body */
.modal-body {
    padding: 2rem;
    max-height: 60vh;
    overflow-y: auto;
}

.status-code-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: linear-gradient(135deg, #a8b5ff 0%, #c4b5fd 100%);
    border-radius: 12px;
    color: #4B0082;
}

.status-code-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.modal-nav-arrow {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #3366CC;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.modal-nav-arrow:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(51, 102, 204, 0.3);
}

.modal-nav-arrow:disabled {
    cursor: not-allowed;
    opacity: 0.3;
}

.modal-nav-arrow i {
    color: inherit;
    font-size: inherit;
}

.status-code-display #modalStatusCode {
    font-size: 3rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    color: #3366CC;
}

.status-code-display #modalStatusName {
    font-size: 1.25rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    color: #4B0082;
}

/* Facts list */
.modal-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-body li {
    margin-bottom: 1rem;
    padding: 1rem;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}


.modal-body li strong {
    color: #3366CC;
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.modal-body li:last-child {
    margin-bottom: 0;
}

/* Modal footer */
.modal-footer {
    padding: 1rem 2rem 2rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(168, 181, 255, 0.2);
    background: rgba(248, 247, 255, 0.5);
}

.modal-learn-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #6b8fff 0%, #7c9bff 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(107, 143, 255, 0.3);
}

.modal-learn-more-btn:hover {
    background: linear-gradient(135deg, #5a7aff 0%, #6b8aff 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(107, 143, 255, 0.4);
    text-decoration: none;
    color: white;
}

.modal-learn-more-btn i {
    font-size: 1rem;
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Responsive modal styles */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .modal-header {
        padding: 1.5rem 1.5rem 1rem 1.5rem;
    }

    .modal-header h3 {
        font-size: 1.25rem;
    }

    .modal-body {
        padding: 1.5rem;
        max-height: 70vh;
    }

    .status-code-display {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .status-code-display #modalStatusCode {
        font-size: 2.5rem;
    }

    .status-code-display #modalStatusName {
        font-size: 1.1rem;
    }

    .modal-footer {
        padding: 1rem 1.5rem 1.5rem 1.5rem;
    }

    .modal-learn-more-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .modal-nav-arrow {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }

    .status-code-display {
        gap: 0.5rem;
    }
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(168, 181, 255, 0.2);
}

.breadcrumb-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #f8f7ff 0%, #ffffff 100%);
    color: #3366CC;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid #a8b5ff;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(107, 143, 255, 0.1);
}

.breadcrumb-link:hover {
    background: linear-gradient(135deg, #a8b5ff 0%, #c4b5fd 100%);
    color: #4B0082;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(107, 143, 255, 0.2);
    text-decoration: none;
}

.breadcrumb-link i {
    font-size: 1rem;
    color: inherit;
}

.breadcrumb-link span {
    color: inherit;
}

/* Responsive breadcrumb */
@media (max-width: 768px) {
    .breadcrumb-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        gap: 0.4rem;
    }

    .breadcrumb-link i {
        font-size: 0.9rem;
    }
}

/* =============================================================================
   ARTICLE CARDS DARK MODE PREVENTION
============================================================================= */

/* Ensure article cards stay white in dark mode */
.articles-layout .box,
.articles-layout .article-card {
    background: #ffffff !important;
    color: #2c3e50 !important;
    color-scheme: light !important;
    forced-color-adjust: none !important;
}

.articles-layout .box .title,
.articles-layout .article-card .title {
    color: #2c3e50 !important;
}

.articles-layout .box .title a,
.articles-layout .article-card .title a {
    color: #3366CC !important;
    text-decoration: none !important;
}

.articles-layout .box .title a:hover,
.articles-layout .article-card .title a:hover {
    color: #2952a3 !important;
}

.articles-layout .box .has-text-grey,
.articles-layout .box .has-text-grey-light,
.articles-layout .article-card .has-text-grey,
.articles-layout .article-card .has-text-grey-light {
    color: #6c757d !important;
}