/* ===== GRUNDLÆGGENDE RESET ===== */
html, body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    width: 100%;
}

/* ===== MAGAZINE COVER ===== */
.magazine-cover {
    color: white;
    padding: 2rem 1.5rem;
    text-align: center;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-family: 'Segoe UI', Arial, sans-serif;
    position: relative;
}

.security-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #00ff41;
    color: black;
    padding: .5rem 1rem;
    font-weight: bold;
}

.issue-tag {
    color: #00ff41;
    font-weight: bold;
    letter-spacing: 2px;
}

.magazine-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
}

/* ===== NAVBAR ===== */
.navbar {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 65, 0.2);
    padding: 0.8rem 1rem;
    z-index: 1000;
}

.navbar-brand {
    color: white;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.navbar-brand i {
    color: #00ff41;
    font-size: 1.4rem;
}

.brand-name {
    color: white;
}

.navbar-nav {
    gap: 0.5rem;
}

.nav-link {
    color: #aaa !important;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: 0.3s ease;
}

.nav-link i {
    margin-right: 0.3rem;
    color: #00ff41;
}

.nav-link:hover,
.nav-link.active {
    color: white !important;
}

.navbar-toggler {
    border: 1px solid rgba(0, 255, 65, 0.4);
}

.navbar-toggler-icon {
    filter: invert(1);
}

.dropdown-menu {
    background: #111;
    border: 1px solid rgba(0, 255, 65, 0.2);
}

.dropdown-item {
    color: #ddd;
}

.dropdown-item:hover {
    background: rgba(0, 255, 65, 0.1);
    color: white;
}

.dropdown-divider {
    border-color: rgba(255, 255, 255, 0.1);
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
}

.status-up {
    background: #00ff41;
    box-shadow: 0 0 10px #00ff41;
}

.text-muted {
    color: #aaa !important;
}

/* ===== NEWS HOME ===== */
.news-home {
    background: #050505;
    color: white;
    padding: 4rem 0;
}

.category {
    color: #00ff41;
    letter-spacing: 3px;
}

/* ===== HERO ===== */
.hero-news {
    min-height: 400px;
    background: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7));
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 3rem;
    font-size: 1rem;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.hero-content {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.hero-content h1 {
    font-size: 2rem;
    text-transform: uppercase;
    max-width: 100%;
    word-wrap: break-word;
}

.hero-content .hero-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 15px 0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-content p {
    max-width: 100%;
    word-wrap: break-word;
}

.hero-content a {
    display: inline-block;
    max-width: 100%;
    word-wrap: break-word;
}

/* ===== NEWS GRID ===== */
.news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.latest article {
    border-bottom: 1px solid #333;
    padding: 1rem 0;
}

.trending {
    border: 1px solid #222;
    padding: 2rem;
}

.article-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.article-card {
    background: #111;
    padding: 2rem;
    border: 1px solid #222;
}

/* ============================================ */
/* ===== FORBEDRET AFSTAND - ALLE SKÆRME ===== */
/* ============================================ */

/* === LATEST NEWS SEKTION === */
.latest h2 {
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.latest article {
    padding: 1.2rem 0;
    border-bottom: 1px solid #333;
}

.latest article:last-child {
    border-bottom: none;
}

.latest article span {
    display: inline-block;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    color: #00ff41;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.latest article h3 {
    margin: 0.4rem 0 0.5rem 0;
    line-height: 1.4;
    font-size: 1.15rem;
}

.latest article p {
    margin: 0.3rem 0 0.5rem 0;
    line-height: 1.6;
    color: #ccc;
    font-size: 0.95rem;
}

.latest article small {
    display: block;
    margin-top: 0.5rem;
    color: #888;
    font-size: 0.8rem;
}

/* === TRENDING SEKTION === */
.trending h2 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

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

.repo {
    margin-bottom: 2.5rem !important;
    padding-bottom: 2rem;
    border-bottom: 1px solid #222;
}

.repo:last-child {
    border-bottom: none;
    margin-bottom: 0 !important;
    padding-bottom: 0;
}

.repo h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.repo p {
    margin: 0.3rem 0 0.5rem 0;
    line-height: 1.5;
    color: #ccc;
    font-size: 0.95rem;
}

.repo div {
    margin-top: 0.6rem;
    color: #888;
    font-size: 0.85rem;
    word-wrap: break-word;
}

/* ============================================ */
/* ===== RESPONSIV - MED FORBEDRET AFSTAND ===== */
/* ============================================ */

/* === TABLETS (max 1024px) === */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .article-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .hero-news {
        padding: 2.5rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .magazine-title {
        font-size: 2rem;
    }

    /* Afstande på tablet */
    .latest h2 {
        font-size: 1.6rem;
        margin-bottom: 1.8rem;
    }

    .latest article {
        padding: 1rem 0;
    }

    .latest article h3 {
        font-size: 1.1rem;
    }

    .trending h2 {
        font-size: 1.4rem;
        margin-bottom: 1.8rem;
    }
}

/* === TABLETS & MOBIL (max 768px) === */
@media (max-width: 768px) {
    .hero-news {
        padding: 2rem;
        min-height: 350px;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content .hero-image {
        border-radius: 6px;
        margin: 12px 0;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .trending {
        padding: 1.5rem;
    }

    .article-row {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .article-card {
        padding: 1.5rem;
    }

    .magazine-cover {
        min-height: 40vh;
        padding: 1.5rem 1rem;
    }

    .magazine-title {
        font-size: 1.8rem;
    }

    .security-badge {
        top: 10px;
        right: 10px;
        padding: 0.3rem 0.8rem;
        font-size: 0.8rem;
    }

    .news-home {
        padding: 2rem 0;
    }

    /* Afstande på mobil */
    .latest h2 {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }

    .latest article {
        padding: 0.9rem 0;
    }

    .latest article h3 {
        font-size: 1.05rem;
        margin: 0.3rem 0 0.4rem 0;
    }

    .latest article p {
        font-size: 0.9rem;
        margin: 0.2rem 0 0.4rem 0;
    }

    .latest article small {
        font-size: 0.75rem;
        margin-top: 0.4rem;
    }

    .trending h2 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }

    .repo {
        margin-bottom: 2rem !important;
        padding-bottom: 1.5rem;
    }

    .repo h3 {
        font-size: 1.05rem;
    }

    .repo p {
        font-size: 0.9rem;
    }

    .repo div {
        font-size: 0.8rem;
    }
}

/* === SMÅ MOBIL (max 480px) === */
@media (max-width: 480px) {
    .hero-news {
        padding: 1rem;
        min-height: 300px;
    }

    .hero-content h1 {
        font-size: 1.2rem;
    }

    .hero-content .hero-image {
        border-radius: 4px;
        margin: 10px 0;
    }

    .hero-content p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .hero-content a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 14px 20px;
        font-size: 16px;
        box-sizing: border-box;
    }

    .category {
        font-size: 0.8rem;
        letter-spacing: 2px;
    }

    .news-grid {
        gap: 1rem;
        margin-top: 2rem;
    }

    .trending {
        padding: 1rem;
    }

    .article-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .article-card {
        padding: 1rem;
    }

    .magazine-cover {
        min-height: 30vh;
        padding: 1rem 0.8rem;
    }

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

    .issue-tag {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }

    .security-badge {
        position: relative;
        top: auto;
        right: auto;
        display: inline-block;
        margin-bottom: 1rem;
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }

    .news-home {
        padding: 1rem 0;
    }

    .container {
        padding-left: 0.8rem;
        padding-right: 0.8rem;
    }

    /* Afstande på lille mobil */
    .latest h2 {
        font-size: 1.2rem;
        margin-bottom: 1.2rem;
    }

    .latest article {
        padding: 0.8rem 0;
        margin-bottom: 0.2rem;
    }

    .latest article span {
        font-size: 0.75rem;
        margin-bottom: 0.3rem;
    }

    .latest article h3 {
        font-size: 1rem;
        margin: 0.3rem 0 0.3rem 0;
        line-height: 1.3;
    }

    .latest article p {
        font-size: 0.85rem;
        margin: 0.2rem 0 0.3rem 0;
        line-height: 1.5;
    }

    .latest article small {
        font-size: 0.7rem;
        margin-top: 0.3rem;
    }

    .trending h2 {
        font-size: 1.1rem;
        margin-bottom: 1.2rem;
    }

    .repo {
        margin-bottom: 1.5rem !important;
        padding-bottom: 1.2rem;
    }

    .repo h3 {
        font-size: 1rem;
        margin: 0 0 0.3rem 0;
    }

    .repo p {
        font-size: 0.85rem;
        margin: 0.2rem 0 0.3rem 0;
        line-height: 1.4;
    }

    .repo div {
        font-size: 0.75rem;
        margin-top: 0.4rem;
    }
}

/* === EKSTRA SMÅ (max 360px) === */
@media (max-width: 360px) {
    .hero-content h1 {
        font-size: 1rem;
    }

    .hero-content p {
        font-size: 0.8rem;
    }

    .magazine-title {
        font-size: 1.2rem;
    }

    .latest h2 {
        font-size: 1.1rem;
    }

    .latest article h3 {
        font-size: 0.9rem;
    }

    .latest article p {
        font-size: 0.8rem;
    }

    .trending h2 {
        font-size: 1rem;
    }

    .repo h3 {
        font-size: 0.9rem;
    }

    .repo p {
        font-size: 0.8rem;
    }

    .repo div {
        font-size: 0.7rem;
    }

    .hero-content a {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* ===== BILLEDER ===== */
.hero-content img {
    max-width: 100% !important;
    height: auto !important;
}

img,
video,
iframe {
    max-width: 100%;
    height: auto;
}

/* ============================================ */
/* CVE OVERVIEW TABLE                          */
/* ============================================ */
.cve-overview {
    margin: 40px 0;
    padding: 24px;
    background: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7));
    border-radius: 12px;
    border: 1px solid #2a2a2a;
}

.cve-overview h2 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 16px;
}

.cve-table-wrap {
    overflow-x: auto;
}

.cve-summary-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.cve-summary-table th {
    background: #1a1a1a;
    color: #aaa;
    text-align: left;
    padding: 10px 14px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.cve-summary-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #222;
    color: #ddd;
}

.cve-summary-table tr:hover td {
    background: #1a1a1a;
}

.action-critical {
    color: #ff4444;
    font-weight: 600;
}

.action-medium {
    color: #ffaa00;
}

.cve-footer-link {
    margin-top: 16px;
    text-align: right;
    font-size: 14px;
}

.cve-footer-link a {
    color: #66aaff;
    text-decoration: none;
}

.cve-footer-link a:hover {
    text-decoration: underline;
}

/* ============================================ */
/* EXPLOIT SIGNALS                            */
/* ============================================ */
.exploit-signals {
    background: #0d0d0d;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 30px;
    border-left: 4px solid #ff6600;
}

.exploit-signals h2 {
    font-size: 14px;
    color: #ff6600;
    margin-bottom: 10px;
}

.exploit-item {
    padding: 8px 0;
    border-bottom: 1px solid #1a1a1a;
}

.exploit-item:last-child {
    border-bottom: none;
}

.exploit-cve {
    font-family: monospace;
    color: #ff8844;
    font-weight: 600;
    font-size: 13px;
}

.exploit-product {
    color: #888;
    font-size: 11px;
    margin-left: 10px;
}

.exploit-stats {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}



