/* /moderne/sport/sport.css */
:root{
    --sport-green:#0f6b3d;
    --sport-green-dark:#104e31;
    --sport-green-mid:#1d643e;
    --sport-orange:#d97706;
    --sport-ink:#07131f;
    --sport-muted:#64748b;
    --sport-line:#dbe3e8;
}

*{box-sizing:border-box}

.sport-world{
    width:min(1380px,calc(100% - 28px));
    margin:0 auto 52px;
    color:var(--sport-ink);
    font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

/* VERDSOVERSKRIFT */
.sport-world-title{
    width:100%;
    margin:0 auto 10px;
    padding:36px 20px 24px;
    text-align:center;
}

.sport-kicker{
    margin:0 auto 7px;
    text-align:center;
    color:#0f6b3d;
    font-size:.74rem;
    font-weight:950;
    letter-spacing:.14em;
    text-transform:uppercase;
}

.sport-world-title h1{
    margin:0 auto 8px;
    text-align:center;
    color:#07131f;
    font-size:clamp(2.9rem,4.8vw,4.2rem);
    line-height:1;
    letter-spacing:-.045em;
}

.sport-world-title p{
    max-width:760px;
    margin:0 auto;
    text-align:center;
    color:#53657b;
    font-size:.92rem;
    line-height:1.5;
}

/* HOVUDMENY */
.sport-mainnav{
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:1px;
    margin:0 0 24px;
    overflow:hidden;
    border:1px solid var(--sport-line);
    border-radius:15px;
    background:var(--sport-line);
    box-shadow:0 6px 18px rgba(15,23,42,.035);
}

.sport-mainnav__item{
    min-height:66px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    padding:10px 14px;
    background:#fff;
    color:#0f172a;
    text-decoration:none;
    font-size:.87rem;
    font-weight:900;
    transition:.16s ease;
}

.sport-mainnav__item:hover{
    background:#f7faf8;
}

.sport-mainnav__item.is-active{
    color:#fff;
    background:linear-gradient(135deg,var(--sport-green-dark),var(--sport-green-mid));
}

.sport-mainnav__icon{
    width:34px;
    height:34px;
    flex:0 0 34px;
    display:grid;
    place-items:center;
    border-radius:10px;
    background:#f0f6f2;
    color:#0f5132;
    font-size:17px;
    font-weight:950;
}

.sport-mainnav__item.is-active .sport-mainnav__icon{
    background:rgba(255,255,255,.14);
    color:#f0d477;
}

/* MELLOMTITLAR */
.sport-section-title{
    margin:28px 0 13px;
}
.sport-section-title--center{
    text-align:center;
}
.sport-section-title h2{
    margin:0;
    color:#10291c;
    font-size:1.3rem;
}
.sport-section-title p{
    max-width:720px;
    margin:5px auto 0;
    color:var(--sport-muted);
    font-size:.8rem;
}
.sport-section-title--teams{
    margin-top:34px;
}

/* INNGANGSKORT */
.sport-entry-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:12px;
}

.sport-entry{
    min-height:210px;
    display:flex;
    flex-direction:column;
    align-items:center;
    padding:22px 18px 19px;
    border:1px solid var(--sport-line);
    border-radius:18px;
    background:#fff;
    color:var(--sport-ink);
    text-align:center;
    text-decoration:none;
    box-shadow:0 7px 24px rgba(15,23,42,.045);
    transition:.16s ease;
}

.sport-entry:hover{
    transform:translateY(-2px);
    border-color:#b7d1c1;
    box-shadow:0 11px 28px rgba(15,23,42,.075);
}

.sport-entry__icon{
    width:48px;
    height:48px;
    display:grid;
    place-items:center;
    margin-bottom:13px;
    border-radius:14px;
    background:#f0f6f2;
    font-size:23px;
}

.sport-entry h2{
    margin:0 0 6px;
    color:#10291c;
    font-size:1.08rem;
}

.sport-entry p{
    margin:0;
    color:#64748b;
    font-size:.75rem;
    line-height:1.45;
}

.sport-entry__go{
    margin-top:auto;
    padding-top:15px;
    color:var(--sport-green);
    font-size:.74rem;
    font-weight:950;
}

.sport-entry--featured{
    border-color:#b8dfc7;
    background:linear-gradient(180deg,#f4fbf6,#fff);
}

.sport-entry--featured .sport-entry__icon{
    background:var(--sport-green);
    color:#fff;
}

/* LAGVELJAR */
.sport-team-picker{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:1px;
    margin:0 0 24px;
    padding:1px;
    overflow:visible;
    border:1px solid var(--sport-line);
    border-radius:16px;
    background:var(--sport-line);
    box-shadow:0 6px 18px rgba(15,23,42,.035);
}

.sport-team{
    position:relative;
    min-height:72px;
    display:flex;
    align-items:center;
    padding:10px 12px 10px 72px;
    background:#fff;
    color:#0f172a;
    text-decoration:none;
    transition:.16s ease;
}

.sport-team:first-child{border-radius:14px 0 0 14px}
.sport-team:last-child{border-radius:0 14px 14px 0}

.sport-team:hover{
    background:#f7faf8;
}

.sport-team img{
    position:absolute;
    left:12px;
    top:50%;
    width:54px;
    height:54px;
    object-fit:contain;
    transform:translateY(-50%);
    filter:drop-shadow(0 5px 7px rgba(15,23,42,.13));
}

.sport-team strong{
    display:block;
    font-size:.84rem;
    line-height:1.1;
}

.sport-team small{
    display:block;
    margin-top:3px;
    color:#64748b;
    font-size:.65rem;
    line-height:1.2;
    font-weight:700;
}

.sport-team.is-active{
    color:#fff;
    background:linear-gradient(135deg,var(--sport-green-dark),var(--sport-green-mid));
}

.sport-team--handball.is-active{
    background:linear-gradient(135deg,#b85f04,var(--sport-orange));
}

.sport-team.is-active small{
    color:rgba(255,255,255,.76);
}

@media(max-width:1050px){
    .sport-entry-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .sport-team-picker{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .sport-team:first-child,
    .sport-team:last-child{
        border-radius:0;
    }
}

@media(max-width:720px){
    .sport-world{
        width:min(100% - 18px,1380px);
        margin-bottom:36px;
    }

    .sport-world-title{
        padding:24px 14px 18px;
    }

    .sport-world-title h1{
        font-size:2.4rem;
    }

    .sport-world-title p{
        font-size:.8rem;
    }

    .sport-mainnav{
        grid-template-columns:1fr 1fr;
        border-radius:12px;
    }

    .sport-mainnav__item{
        min-height:58px;
        padding:8px;
        gap:6px;
        flex-direction:column;
        text-align:center;
        font-size:.72rem;
    }

    .sport-mainnav__item:first-child{
        grid-column:1/-1;
    }

    .sport-mainnav__icon{
        width:27px;
        height:27px;
        flex-basis:27px;
        border-radius:8px;
        font-size:14px;
    }

    .sport-entry-grid{
        grid-template-columns:1fr;
    }

    .sport-entry{
        min-height:0;
        padding:18px 15px;
    }

    .sport-team-picker{
        grid-template-columns:1fr;
        overflow:hidden;
    }

    .sport-team,
    .sport-team:first-child,
    .sport-team:last-child{
        border-radius:0;
    }
}

/* =========================================================
   NY SPORTSTRUKTUR – 6 hovudval + 5 inngangskort
   ========================================================= */
.sport-mainnav{
    grid-template-columns:repeat(6,minmax(0,1fr));
}

.sport-entry-grid--five{
    grid-template-columns:repeat(5,minmax(0,1fr));
}

.sport-entry-grid--five .sport-entry{
    min-width:0;
}

@media(max-width:1200px){
    .sport-entry-grid--five{
        grid-template-columns:repeat(3,minmax(0,1fr));
    }
}

@media(max-width:900px){
    .sport-mainnav{
        grid-template-columns:repeat(3,minmax(0,1fr));
    }

    .sport-entry-grid--five{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media(max-width:620px){
    .sport-mainnav{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .sport-mainnav__item:first-child{
        grid-column:auto;
    }

    .sport-entry-grid--five{
        grid-template-columns:1fr;
    }
}

/* =========================================================
   V22 – tydelegare verdstittel, same familie som Historie/Menneske
   ========================================================= */
.sport-world-title{
    margin-top:30px;
    margin-bottom:10px;
    padding:34px 24px 28px;
    border:1px solid #d3e3da;
    border-radius:22px;
    background:
        radial-gradient(circle at 15% 15%, rgba(219,194,135,.10), transparent 28%),
        radial-gradient(circle at 88% 20%, rgba(15,107,61,.07), transparent 30%),
        linear-gradient(135deg,#fffdf9 0%,#ffffff 48%,#f4faf6 100%);
    box-shadow:0 9px 28px rgba(15,23,42,.035);
}

.sport-world-title::after{
    content:"";
    display:block;
    width:110px;
    height:2px;
    margin:18px auto -17px;
    border-radius:999px;
    background:linear-gradient(90deg,transparent,#d5b862,transparent);
    opacity:.72;
}

@media(max-width:720px){
    .sport-world-title{
        margin-top:16px;
        padding:25px 15px 21px;
        border-radius:17px;
    }

    .sport-world-title::after{
        width:82px;
        margin-top:14px;
        margin-bottom:-12px;
    }
}
