/* =====================================================
   NP-STUDENT DASHBOARD
   ===================================================== */

/* Centrera navbar-länkar */
.np-dash-page .navbar {
    display: flex;
    align-items: center;
}
.np-dash-page .logo {
    width: 120px;
}
.np-dash-page .nav-links {
    flex: 1;
    justify-content: center;
}
.np-dash-page .profile-section {
    width: 120px;
    justify-content: flex-end;
}

/* Hero */
.np-dash-hero {
    min-height: 45vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 130px 20px 70px;
}
.np-dash-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 25% 60%, rgba(229,9,20,0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 75% 35%, rgba(255,107,53,0.25) 0%, transparent 50%);
    animation: dashGlow1 8s ease-in-out infinite;
    filter: blur(80px);
}
.np-dash-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 55% 65%, rgba(255,69,0,0.2) 0%, transparent 45%),
        radial-gradient(ellipse at 35% 30%, rgba(229,9,20,0.15) 0%, transparent 50%);
    animation: dashGlow2 10s ease-in-out infinite;
    filter: blur(67px);
}
@keyframes dashGlow1 {
    0%, 67% { opacity: 0.6; }
    50% { opacity: 1; }
}
@keyframes dashGlow2 {
    0%, 67% { opacity: 1; }
    50% { opacity: 0.5; }
}
.np-dash-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 700px;
}
.np-dash-welcome {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}
.np-dash-greeting {
    font-size: clamp(36px, 6vw, 58px);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 16px;
}
.np-dash-greeting span {
    background: linear-gradient(135deg, #e50914, #ff6b35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.np-dash-sub {
    font-size: clamp(16px, 2.5vw, 20px);
    color: rgba(255,255,255,0.55);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
}

/* Section */
.np-dash-section {
    max-width: 960px;
    margin: -30px auto 0;
    padding: 0 24px 80px;
    position: relative;
    z-index: 2;
}

/* Navigation Cards */
.np-dash-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 40px;
}
.np-dash-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 36px 24px 28px;
    text-align: center;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
}
.np-dash-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.35s;
}
.np-dash-card:nth-child(1)::before { background: radial-gradient(circle at 50% 80%, rgba(245,158,11,0.12) 0%, transparent 70%); }
.np-dash-card:nth-child(2)::before { background: radial-gradient(circle at 50% 80%, rgba(102,126,234,0.12) 0%, transparent 70%); }
.np-dash-card:nth-child(3)::before { background: radial-gradient(circle at 50% 80%, rgba(16,185,129,0.12) 0%, transparent 70%); }
.np-dash-card:hover::before { opacity: 1; }
.np-dash-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255,255,255,0.18);
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

.np-dash-card-icon {
    font-size: 36px;
    width: 68px;
    height: 68px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}
.np-dash-card-icon-np { background: linear-gradient(135deg, rgba(102,126,234,0.2), rgba(118,75,162,0.12)); }
.np-dash-card-icon-quiz { background: linear-gradient(135deg, rgba(245,158,11,0.2), rgba(217,119,6,0.12)); }
.np-dash-card-icon-resultat { background: linear-gradient(135deg, rgba(16,185,129,0.2), rgba(5,150,105,0.12)); }

.np-dash-icon-letter {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.6));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.np-dash-card-icon-np .np-dash-icon-letter {
    background: linear-gradient(135deg, #667eea, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.np-dash-card-icon-quiz .np-dash-icon-letter {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.np-dash-card-icon-resultat .np-dash-icon-letter {
    background: linear-gradient(135deg, #10b981, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Featured card (Nationella prov) */
.np-dash-card-featured {
    border-color: rgba(102,126,234,0.15);
}
.np-dash-card-featured .np-dash-card-title {
    background: linear-gradient(135deg, #667eea, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.np-dash-card-info {
    position: relative;
    z-index: 1;
}
.np-dash-card-title {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}
.np-dash-card-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    line-height: 1.5;
}
.np-dash-card-arrow {
    font-size: 18px;
    color: rgba(255,255,255,0.2);
    transition: all 0.35s;
    position: relative;
    z-index: 1;
}
.np-dash-card:hover .np-dash-card-arrow {
    color: #e50914;
    transform: translateX(6px);
}

/* Nyheter */
.np-dash-news {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    padding: 28px 28px 24px;
}
.np-dash-news-title {
    font-size: 15px;
    font-weight: 700;
    color: rgba(255,255,255,0.8);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.np-dash-news-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.np-dash-news-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 14px;
    transition: background 0.2s;
}
.np-dash-news-item:hover {
    background: rgba(255,255,255,0.04);
}
.np-dash-news-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e50914, #ff6b35);
    flex-shrink: 0;
    margin-top: 6px;
}
.np-dash-news-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}
.np-dash-news-content p {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    line-height: 1.5;
}
.np-dash-news-date {
    font-size: 11px;
    color: rgba(255,255,255,0.25);
    margin-top: 6px;
}

/* Light mode */
body.light-mode .np-dash-card {
    background: rgba(255,255,255,0.95);
    border-color: rgba(0,0,0,0.06);
}
body.light-mode .np-dash-card:hover {
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border-color: rgba(0,0,0,0.12);
}
body.light-mode .np-dash-card-title { color: #1d1d1f; }
body.light-mode .np-dash-card-desc { color: rgba(0,0,0,0.45); }
body.light-mode .np-dash-card-arrow { color: rgba(0,0,0,0.2); }
body.light-mode .np-dash-news {
    background: rgba(255,255,255,0.95);
    border-color: rgba(0,0,0,0.06);
}
body.light-mode .np-dash-news-title { color: rgba(0,0,0,0.7); }
body.light-mode .np-dash-news-item {
    background: rgba(0,0,0,0.02);
    border-color: rgba(0,0,0,0.04);
}
body.light-mode .np-dash-news-item:hover { background: rgba(0,0,0,0.04); }
body.light-mode .np-dash-news-content h4 { color: #1d1d1f; }
body.light-mode .np-dash-news-content p { color: rgba(0,0,0,0.4); }
body.light-mode .np-dash-news-date { color: rgba(0,0,0,0.25); }

/* Mobile */
@media (max-width: 768px) {
    .np-dash-hero { padding: 100px 20px 50px; min-height: 35vh; }
    .np-dash-section { margin-top: -20px; padding: 0 16px 60px; }
    .np-dash-cards { grid-template-columns: 1fr; gap: 12px; }
    .np-dash-card {
        padding: 20px;
        flex-direction: row;
        text-align: left;
        gap: 16px;
    }
    .np-dash-card::before { display: none; }
    .np-dash-card-icon { width: 52px; height: 52px; font-size: 26px; border-radius: 14px; flex-shrink: 0; }
    .np-dash-card-info { flex: 1; }
    .np-dash-card-title { font-size: 15px; margin-bottom: 3px; }
    .np-dash-card-desc { font-size: 12px; }
    .np-dash-card-arrow { margin-left: auto; font-size: 16px; }
}
