/* =========================================================
   HØRNING HÅNDBOLD – KOMMENDE KAMPE
   ========================================================= */

.hh-kampe {
    --hh-primary: #109bc5;
    --hh-primary-dark: #0b7fa2;
    --hh-highlight: #bfe1eb;
    --hh-black: #12242c;
    --hh-font: #1d2d34;
    --hh-grey: #5d6d75;
    --hh-light: #f5fafb;
    --hh-border: #dfe9ee;
    --hh-white: #ffffff;

    max-width: 1180px;
    margin: 0 auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--hh-font);
}


/* =========================================================
   HEADER
   ========================================================= */

.hh-kampe__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

.hh-kampe__title {
    margin: 0;
    color: var(--hh-black);
    font-size: clamp(1.8rem, 2.5vw, 2.5rem);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.hh-kampe__subtitle {
    max-width: 620px;
    margin: 8px 0 0;
    color: var(--hh-font);
    font-size: 0.98rem;
    line-height: 1.55;
}

.hh-kampe__badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 12px;
    border: 1px solid rgba(16, 155, 197, 0.18);
    border-radius: 999px;
    background: rgba(16, 155, 197, 0.06);
    color: var(--hh-primary-dark);
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.hh-kampe__badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--hh-primary);
    box-shadow: 0 0 0 4px rgba(16, 155, 197, 0.12);
}


/* =========================================================
   FEATURED KAMPE
   ========================================================= */

.hh-kampe__featured {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.hh-kampe__card {
    position: relative;
    overflow: hidden;
    padding: 24px 22px 22px;
    border-radius: 18px;
    background: linear-gradient(135deg, #109bc5 0%, #0b87b3 100%);
    border: 1px solid rgba(16, 155, 197, 0.18);
    color: var(--hh-white);
    box-shadow: 0 10px 22px rgba(16, 155, 197, 0.15);
}

.hh-kampe__card::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: -120px;
    top: -120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.hh-kampe__card::after {
    content: "";
    position: absolute;
    width: 170px;
    height: 150px;
    left: -80px;
    bottom: -100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.hh-kampe__card > * {
    position: relative;
    z-index: 1;
}


/* =========================================================
   CARD TOP
   ========================================================= */

.hh-kampe__card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 34px;
}

.hh-kampe__team-label {
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.9);
}

.hh-kampe__home-label {
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--hh-white);
    font-size: 0.65rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.07em;
    white-space: nowrap;
}


/* =========================================================
   HOLD VS MODSTANDER
   ========================================================= */

.hh-kampe__teams {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.hh-kampe__team {
    min-width: 0;
}

.hh-kampe__team--home {
    text-align: left;
}

.hh-kampe__team:last-child {
    text-align: right;
}

.hh-kampe__team-name {
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.hh-kampe__vs {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--hh-white);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.05em;
}


/* =========================================================
   DATO OG TID
   ========================================================= */

.hh-kampe__date {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hh-kampe__date strong {
    display: block;
    font-size: 0.96rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--hh-white);
}

.hh-kampe__date span {
    display: block;
    margin-top: 3px;
    font-size: 0.82rem;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.82);
}

.hh-kampe__date-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
}

.hh-kampe__date-icon::before {
    content: "";
    width: 17px;
    height: 15px;
    border: 2px solid var(--hh-white);
    border-radius: 4px;
}

.hh-kampe__date-icon::after {
    content: "";
    position: absolute;
    width: 13px;
    height: 2px;
    top: 14px;
    background: var(--hh-white);
    border-radius: 2px;
}

.hh-kampe__date-icon span {
    display: none;
}


/* =========================================================
   KOMMENDE KAMPE / UGEN
   ========================================================= */

.hh-kampe__week {
    margin-top: 28px;
    padding: 22px 20px;
    border: 1px solid var(--hh-border);
    border-radius: 18px;
    background: var(--hh-light);
}

.hh-kampe__week-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.hh-kampe__week-title {
    margin: 0;
    color: var(--hh-black);
    font-size: 1.12rem;
    line-height: 1.3;
    font-weight: 800;
}

.hh-kampe__week-count {
    padding: 6px 10px;
    border: 1px solid var(--hh-border);
    border-radius: 999px;
    background: var(--hh-white);
    color: var(--hh-grey);
    font-size: 0.70rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.hh-kampe__week-list {
    display: flex;
    flex-direction: column;
}


/* =========================================================
   KAMPER – 4 KOLONNER
   Dato | Kamp | Hal | Spillerække
   ========================================================= */

.hh-kampe__week-item {
    display: grid;
    grid-template-columns: 125px minmax(220px, 1fr) 180px 180px;
    align-items: center;
    gap: 20px;
    padding: 15px 0;
    border-top: 1px solid var(--hh-border);
}

.hh-kampe__week-date {
    color: var(--hh-primary);
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1.3;
    white-space: nowrap;
}

.hh-kampe__week-match {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: var(--hh-font);
    font-size: 0.92rem;
    line-height: 1.4;
    white-space: nowrap;
}

.hh-kampe__week-match span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hh-kampe__week-match strong {
    flex: 0 0 auto;
    color: var(--hh-primary);
    font-size: 0.76rem;
    font-weight: 800;
}


/* =========================================================
   HAL OG SPILLERÆKKE
   ========================================================= */

.hh-kampe__week-meta {
    display: contents;
}

.hh-kampe__week-hall,
.hh-kampe__week-league {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--hh-grey);
    line-height: 1.3;
    text-align: left;
}

.hh-kampe__week-hall {
    font-size: 0.74rem;
    font-weight: 700;
}

.hh-kampe__week-league {
    font-size: 0.68rem;
    font-weight: 500;
    opacity: 0.8;
}


/* =========================================================
   VENUE
   ========================================================= */

.hh-kampe__venue {
    margin-top: 12px;
    display: inline-block;
    font-size: 0.72rem;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
}


/* =========================================================
   PROGRAM-LINK
   ========================================================= */

.hh-kampe__footer {
    margin-top: 24px;
    text-align: center;
}

.hh-kampe__program-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--hh-primary);
    color: var(--hh-white) !important;
    text-decoration: none !important;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(16, 155, 197, 0.12);
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.hh-kampe__program-link:hover {
    transform: translateY(-1px);
    background: var(--hh-primary-dark);
    box-shadow: 0 10px 20px rgba(16, 155, 197, 0.18);
}

.hh-kampe__program-link:focus-visible {
    outline: 3px solid rgba(136, 187, 200, 0.65);
    outline-offset: 3px;
}

.hh-kampe__program-link span {
    font-size: 1.05rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.hh-kampe__program-link:hover span {
    transform: translateX(3px);
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.hh-kampe__empty {
    padding: 50px 25px;
    border: 1px dashed var(--hh-border);
    border-radius: 20px;
    background: var(--hh-light);
    text-align: center;
}

.hh-kampe__empty-icon {
    margin-bottom: 10px;
    font-size: 2rem;
}

.hh-kampe__empty h3 {
    margin: 0;
    color: var(--hh-black);
    font-size: 1.2rem;
    line-height: 1.3;
}

.hh-kampe__empty p {
    margin: 8px 0 0;
    color: var(--hh-grey);
    font-size: 0.92rem;
    line-height: 1.5;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .hh-kampe {
        padding: 34px 24px;
    }

    .hh-kampe__header {
        align-items: flex-start;
    }

    .hh-kampe__week-item {
        grid-template-columns: 105px minmax(180px, 1fr) 120px 120px;
        gap: 12px;
    }

    .hh-kampe__week-date {
        white-space: nowrap;
    }

    .hh-kampe__week-match {
        white-space: nowrap;
    }

    .hh-kampe__week-hall,
    .hh-kampe__week-league {
        text-align: left;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .hh-kampe {
        padding: 28px 18px;
        border-radius: 18px;
    }

    .hh-kampe__header {
        display: block;
        margin-bottom: 24px;
    }

    .hh-kampe__title {
        font-size: clamp(1.9rem, 9vw, 2.5rem);
    }

    .hh-kampe__subtitle {
        font-size: 0.92rem;
    }

    .hh-kampe__badge {
        margin-top: 16px;
    }

    .hh-kampe__featured {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .hh-kampe__card {
        padding: 22px;
        border-radius: 18px;
    }

    .hh-kampe__card-top {
        margin-bottom: 28px;
    }

    .hh-kampe__teams {
        gap: 12px;
    }

    .hh-kampe__team-name {
        font-size: 1.12rem;
    }

    .hh-kampe__week {
        margin-top: 22px;
        padding: 18px;
        border-radius: 18px;
    }

    .hh-kampe__week-item {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 14px 0;
    }

    .hh-kampe__week-date,
    .hh-kampe__week-match {
        white-space: nowrap;
    }

    .hh-kampe__week-hall,
    .hh-kampe__week-league {
        text-align: left;
        white-space: normal;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .hh-kampe {
        padding: 24px 14px;
        border-radius: 16px;
    }

    .hh-kampe__card {
        padding: 20px;
    }

    .hh-kampe__card-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }

    .hh-kampe__teams {
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: center;
    }

    .hh-kampe__team--home,
    .hh-kampe__team:last-child {
        text-align: center;
    }

    .hh-kampe__vs {
        width: 40px;
        height: 40px;
        margin: 0 auto;
    }

    .hh-kampe__date {
        margin-top: 22px;
    }

    .hh-kampe__week-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .hh-kampe__program-link {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .hh-kampe__program-link,
    .hh-kampe__program-link span {
        transition: none;
    }

    .hh-kampe__program-link:hover {
        transform: none;
    }

    .hh-kampe__program-link:hover span {
        transform: none;
    }
}