/* ==========================================================
   PROJECT VISION · NYHETER STYLES
   ========================================================== */

.nyheter-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 100px;
}

/* ===== FILTRE ===== */
.news-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 48px;
    padding: 16px;
    background: rgba(19, 26, 36, 0.5);
    border: 1px solid var(--border);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.news-filter {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--border-bright);
    border-radius: 999px;
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: 600;
}

.news-filter:hover {
    color: var(--cyan);
    border-color: var(--cyan);
    background: rgba(0, 229, 255, 0.05);
}

.news-filter.active {
    background: var(--cyan);
    color: var(--bg);
    border-color: var(--cyan);
    box-shadow: 0 0 20px var(--cyan-glow);
}

/* ===== FEATURED CARD ===== */
.news-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-bottom: 48px;
    background: rgba(19, 26, 36, 0.6);
    border: 1px solid var(--cyan);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 60px rgba(0, 229, 255, 0.15);
    transition: all 0.4s ease;
}

.news-featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 80px rgba(0, 229, 255, 0.25);
}

.news-pinned {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    background: var(--cyan);
    color: var(--bg);
    padding: 6px 14px;
    border-radius: 999px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.1em;
    box-shadow: 0 0 20px var(--cyan-glow);
}

.news-featured .news-image {
    height: 100%;
    min-height: 320px;
}

.news-featured .news-title {
    font-size: clamp(20px, 3vw, 28px);
}

/* ===== GRID ===== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

/* ===== NEWS CARD ===== */
.news-card {
    background: rgba(19, 26, 36, 0.5);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.news-card:hover {
    transform: translateY(-6px);
    border-color: var(--cyan);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 229, 255, 0.1);
}

/* ===== NEWS IMAGE ===== */
.news-image {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.news-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent, rgba(0, 0, 0, 0.4));
}

.news-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 255, 255, 0.02) 2px, rgba(255, 255, 255, 0.02) 4px);
}

.news-image-cyan { background: linear-gradient(135deg, #003344, #00E5FF); }
.news-image-blue { background: linear-gradient(135deg, #1a3a6c, #4d8eff); }
.news-image-purple { background: linear-gradient(135deg, #2d1b4e, #8b3fb8); }
.news-image-green { background: linear-gradient(135deg, #1a3d2e, #00d97a); }
.news-image-orange { background: linear-gradient(135deg, #4d2a1a, #ff8c42); }
.news-image-pink { background: linear-gradient(135deg, #4d1a3d, #ff4d8e); }
.news-image-yellow { background: linear-gradient(135deg, #4d3d1a, #ffc847); }

.news-icon-big {
    font-size: 80px;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
    transition: transform 0.4s ease;
}

.news-card:hover .news-icon-big {
    transform: scale(1.1) rotate(-5deg);
}

/* ===== NEWS CONTENT ===== */
.news-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 12px;
    flex-wrap: wrap;
}

.news-category {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
}

.cat-event { background: rgba(176, 77, 255, 0.15); color: #c47aff; border: 1px solid rgba(176, 77, 255, 0.3); }
.cat-update { background: rgba(77, 142, 255, 0.15); color: #6ba3ff; border: 1px solid rgba(77, 142, 255, 0.3); }
.cat-info { background: rgba(0, 217, 122, 0.15); color: #4dd99a; border: 1px solid rgba(0, 217, 122, 0.3); }
.cat-announcement { background: rgba(255, 140, 66, 0.15); color: #ffa56b; border: 1px solid rgba(255, 140, 66, 0.3); }

.news-date {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-faint);
}

.news-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--text);
    letter-spacing: -0.01em;
}

.news-excerpt {
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    gap: 12px;
    flex-wrap: wrap;
}

.news-link {
    color: var(--cyan);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-link:hover {
    text-shadow: 0 0 10px var(--cyan-glow);
    letter-spacing: 0.15em;
}

.news-author {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-faint);
    font-style: italic;
}

/* ===== EMPTY STATE ===== */
.news-empty {
    text-align: center;
    padding: 80px 20px;
    background: rgba(19, 26, 36, 0.4);
    border: 1px dashed var(--border-bright);
    border-radius: 12px;
}

.news-empty-icon {
    font-size: 60px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.news-empty h3 {
    font-family: var(--font-display);
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text);
}

.news-empty p {
    color: var(--text-dim);
}

/* ===== NEWSLETTER ===== */
.newsletter-card {
    margin-top: 60px;
    padding: 60px 32px;
    background: linear-gradient(135deg, var(--surface), var(--surface-2));
    border: 1px solid var(--cyan);
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 20px 80px rgba(0, 229, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.newsletter-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--cyan-glow), transparent 40%);
    opacity: 0.2;
    pointer-events: none;
}

.newsletter-card > * {
    position: relative;
    z-index: 1;
}

.newsletter-icon {
    font-size: 60px;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 20px var(--cyan-glow));
}

.newsletter-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(22px, 3vw, 32px);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.newsletter-card p {
    color: var(--text-dim);
    font-size: 15px;
    margin-bottom: 28px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .nyheter-container { padding: 24px 16px 80px; }
    .news-featured { grid-template-columns: 1fr; }
    .news-featured .news-image { min-height: 200px; }
    .news-grid { grid-template-columns: 1fr; gap: 20px; }
    .news-filters { gap: 8px; padding: 12px; }
    .news-filter { padding: 8px 14px; font-size: 11px; }
    .newsletter-card { padding: 40px 20px; margin-top: 40px; }
}

/* ===== TOM-TILSTAND ===== */
.news-empty-state {
    text-align: center;
    padding: 100px 40px;
    background: rgba(19, 26, 36, 0.4);
    border: 1px dashed var(--border-bright);
    border-radius: 12px;
    max-width: 700px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.news-empty-icon-big {
    font-size: 100px;
    margin-bottom: 24px;
    opacity: 0.6;
    filter: drop-shadow(0 0 30px var(--cyan-glow));
    animation: float 3s ease-in-out infinite;
}

.news-empty-state h2 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(24px, 3.5vw, 36px);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
    color: var(--text);
}

.news-empty-state p {
    color: var(--text-dim);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.news-empty-sub {
    font-size: 14px !important;
    color: var(--text-faint) !important;
    margin-bottom: 32px !important;
    font-family: var(--font-mono);
}

@media (max-width: 768px) {
    .news-empty-state { padding: 60px 24px; }
    .news-empty-icon-big { font-size: 70px; }
}

/* ===== STAFF-SØKNAD STYLING ===== */
.staff-requirements,
.staff-roles {
    margin: 20px 0;
    padding: 20px;
    background: rgba(0, 229, 255, 0.04);
    border-left: 3px solid var(--cyan);
    border-radius: 0 6px 6px 0;
}

.req-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    color: var(--cyan);
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

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

.req-list li {
    padding: 8px 0 8px 32px;
    color: var(--text-dim);
    line-height: 1.6;
    font-size: 14px;
    position: relative;
    border-bottom: 1px solid rgba(31, 42, 56, 0.4);
}

.req-list li:last-child {
    border-bottom: none;
}

.req-list li strong {
    color: var(--text);
    font-weight: 700;
}

.req-check {
    position: absolute;
    left: 8px;
    color: var(--success);
    font-weight: 800;
    font-size: 14px;
    background: rgba(0, 217, 122, 0.15);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    top: 9px;
}

.role-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.role-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 12px;
    border: 1px solid;
    background: rgba(19, 26, 36, 0.8);
}

.role-admin {
    color: #ff4d6b;
    border-color: rgba(255, 77, 107, 0.4);
}

.role-mod {
    color: #4d8eff;
    border-color: rgba(77, 142, 255, 0.4);
}

.role-veri {
    color: #b04dff;
    border-color: rgba(176, 77, 255, 0.4);
}

.news-link-big {
    font-size: 14px !important;
    padding: 10px 20px;
    background: var(--cyan);
    color: var(--bg) !important;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px var(--cyan-glow);
}

.news-link-big:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--cyan);
    letter-spacing: 0.15em !important;
    text-shadow: none !important;
}
