/* ── Treningskalender Plugin Styles ── */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

/* ── Layout ── */
.tk-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: 0 24px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    color: #1a1a1a;
    box-sizing: border-box;
}

@media (max-width: 780px) {
    .tk-wrapper { grid-template-columns: 1fr; }
    .tk-kolonne + .tk-kolonne { margin-top: 32px; }
}

/* ── Kolonne med tittel ── */
.tk-kolonne {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tk-kolonne-tittel {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 14px 0;
    letter-spacing: -0.01em;
    text-align: center;
}

/* ── Felles boks ── */
.tk-boks {
    background: #f5f4f0;
    border-radius: 16px;
    padding: 28px 24px;
    box-sizing: border-box;
    width: 100%;
    flex: 1;
}

/* ════════════════════════════════════════
   KALENDER
   ════════════════════════════════════════ */

.tk-kal-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
}

.tk-kal-tittel {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.01em;
    min-width: 140px;
    text-align: center;
}

.tk-kal-nav {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 22px;
    color: #1a1a1a;
    padding: 4px 8px;
    border-radius: 6px;
    line-height: 1;
    transition: background 0.15s;
}
.tk-kal-nav:hover { background: rgba(0,0,0,0.07); }

.tk-kal-ukedager {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 8px;
}
.tk-kal-ukedager span {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #888;
    padding-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tk-kal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.tk-dag-celle {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 500;
    cursor: default;
    transition: background 0.12s, color 0.12s;
    position: relative;
    user-select: none;
    max-width: 44px;
    margin: 0 auto;
    width: 100%;
}

.tk-dag-celle.utenfor { color: #bbb; }

.tk-dag-celle.i-maaned {
    background: #dddbd5;
    color: #1a1a1a;
    cursor: pointer;
}
.tk-dag-celle.i-maaned:hover { background: #c8c5bd; }

.tk-dag-celle.har-aktivitet {
    background: #4a4a4a;
    color: #fff;
}
.tk-dag-celle.har-aktivitet:hover { background: #5a5a5a; }

.tk-dag-celle.idag {
    outline: 2px solid #D93B2B;
    outline-offset: -2px;
}

.tk-dag-celle.valgt {
    background: #D93B2B !important;
    color: #fff !important;
}

.tk-dag-celle.har-aktivitet:not(.valgt)::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #fff;
    opacity: 0.6;
}

/* ════════════════════════════════════════
   HVA SKJER
   ════════════════════════════════════════ */

.tk-hva-skjer-liste { overflow-y: auto; }

.tk-dag-seksjon { padding: 4px 0 16px; }

.tk-dag-tittel {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 14px 0;
    letter-spacing: -0.01em;
}

.tk-aktiviteter-rad {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.tk-aktivitet-kort { min-width: 90px; }

.tk-akt-type {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.tk-akt-tid {
    font-size: 13px;
    font-weight: 400;
    color: #333;
}

.tk-akt-instruktor {
    font-size: 12px;
    color: #777;
    margin-top: 1px;
}

.tk-separator {
    border: none;
    border-top: 1px solid #dddbd5;
    margin: 0 0 16px 0;
}

.tk-tom { color: #888; font-size: 14px; }

/* ── Laster-tilstand ── */
.tk-laster { opacity: 0.5; pointer-events: none; }

/* ── Dag-visning header ── */
.tk-dag-valgt-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.tk-dag-valgt-header button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    color: #D93B2B;
    padding: 0;
    font-family: inherit;
    font-weight: 600;
    text-decoration: underline;
}
