/* ======================================================
   9) Blizzard News
   ====================================================== */
/* === NEWS PAGE === */
.news-section {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    color: #eee;
    font-family: 'Inter', sans-serif;
}

.page-title {
    font-size: 2rem;
    color: #ffc107;
    text-align: center;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    text-align: center;
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 2rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.news-card {
    background-color: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 193, 7, 0.4);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .news-card:hover {
        transform: scale(1.02);
        box-shadow: 0 4px 10px rgba(255, 193, 7, 0.3);
    }

    .news-card img {
        width: 100%;
        height: 180px;
        object-fit: cover;
        display: block;
    }

.news-card-content {
    padding: 1rem;
}

    .news-card-content h2 {
        font-size: 1.2rem;
        color: #ffc107;
        margin-bottom: 0.5rem;
    }

    .news-card-content p {
        font-size: 0.95rem;
        color: #ccc;
        line-height: 1.4;
        min-height: 60px;
    }

.news-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    border-top: 1px solid rgba(255, 193, 7, 0.2);
    font-size: 0.85rem;
    color: #aaa;
}

    .news-card-footer a {
        color: #ffc107;
        text-decoration: underline;
    }

        .news-card-footer a:hover {
            text-decoration: none;
        }
/* === Pagination for News (same as index) === */
.pagination-container {
    text-align: center;
    margin-top: 20px;
}

    .pagination-container button {
        background-color: rgba(255, 193, 7, 0.8);
        color: #000;
        border: none;
        padding: 0.5rem 0.75rem;
        margin: 0.3125rem;
        border-radius: 0.25rem;
        cursor: pointer;
        font-family: 'Inter', sans-serif;
        transition: background-color 0.3s;
    }

        .pagination-container button:hover {
            background-color: rgba(255, 193, 7, 1);
        }

        .pagination-container button.active {
            background-color: rgba(255, 193, 7, 1);
            font-weight: bold;
        }

    .pagination-container span {
        padding: 0.5rem 0.75rem;
        margin: 0.3125rem;
        color: #fff;
    }

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

    .modal.hidden {
        display: none;
    }

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(3px);
    z-index: 1;
}

.modal-content {
    position: relative;
    z-index: 2;
    background-color: #1b1b1b;
    border: 2px solid #ffc107;
    border-radius: 10px;
    max-width: 650px;
    width: 90%;
    padding: 2rem;
    color: #eee;
    box-shadow: 0 0 25px rgba(255, 193, 7, 0.25);
    text-align: left;
    animation: fadeIn 0.25s ease-in-out;
    font-family: 'Inter', sans-serif;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    color: #ffc107;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s;
}

    .modal-close:hover {
        color: #fff;
    }

#modal-thumbnail {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 1rem;
}

#modal-title {
    font-size: 1.4rem;
    color: #ffc107;
    margin-bottom: 0.5rem;
}

.modal-date {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 1rem;
}

#modal-summary {
    font-size: 1rem;
    line-height: 1.5;
    color: #ddd;
    margin-bottom: 1.5rem;
}

.modal-read-full {
    display: inline-block;
    background-color: #ffc107;
    color: #000;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.3s;
    font-weight: bold;
}

    .modal-read-full:hover {
        background-color: #ffca2c;
    }

/* Simple fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ai-article-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 6px;
    background: rgba(255, 204, 0, 0.15);
    color: #ffcc00;
    font-size: 0.8rem;
    border-radius: 4px;
    text-transform: uppercase;
}



/* =========================================================
   9B.x – NEWS PAGE – Intro text block
   ========================================================= */
/* Force the news main wrapper to take full available width
   (prevents the grid from collapsing to 2 columns on desktop) */
#news-main.content-wrapper {
    width: 100%;
}
/* NEWS – intro block (matchar övriga mörka paneler på siten) */
.news-intro {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto 18px;
    padding: 14px 16px;
    background-color: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 193, 7, 0.25);
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(0,0,0,0.4);
    backdrop-filter: blur(2px);
    color: #fff;
    font-size: 0.92rem;
    line-height: 1.5;
}

    .news-intro p {
        margin: 0 0 8px;
        opacity: 0.9;
    }

.news-ai-note {
    margin-top: 10px;
    font-size: 0.85rem;
    opacity: 0.8;
}
/* NEWS – subtitle inside intro block */
.news-subtitle {
    color: #ffc107;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    margin: 0 0 8px;
    text-shadow: 0 0 6px rgba(255, 193, 7, 0.35);
}
