/* ==========================================
   DEVITO – REPERTOIRE
========================================== */


/* ==========================================
   INTRODUKTION
========================================== */

.repertoire-intro {
    padding: 75px 0 60px;
    background: var(--color-background);
}

.repertoire-intro .container {
    max-width: 900px;
    text-align: center;
}

.repertoire-intro h1 {
    margin-bottom: 25px;
    color: var(--color-text);
    font-size: clamp(2.5rem, 4vw, 4rem);
}

.repertoire-intro p {
    max-width: 750px;
    margin: 0 auto 15px;
    color: var(--color-text-muted);
    font-size: 16px;
    line-height: 1.8;
}


/* ==========================================
   REPERTOIRE – HOVEDSEKTION
========================================== */

.repertoire-section {
    padding: 0 0 90px;
    background: var(--color-background);
}


/* ==========================================
   FILTERPANEL
========================================== */

.repertoire-filter {
    padding: 30px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
}

.repertoire-filter-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 25px;
}

.repertoire-filter-heading h2 {
    margin-bottom: 8px;
    font-size: 28px;
}

.repertoire-filter-heading p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 14px;
}

.repertoire-reset {
    flex-shrink: 0;
    padding: 10px 15px;
    background: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.repertoire-reset:hover {
    background: var(--color-primary);
    color: #ffffff;
}


/* ==========================================
   FILTERFELTER
========================================== */

.repertoire-filter-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.repertoire-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.repertoire-field label {
    margin-bottom: 8px;
    color: var(--color-text);
    font-size: 12px;
    font-weight: 700;
}

.repertoire-field input,
.repertoire-field select {
    width: 100%;
    height: 45px;
    padding: 0 12px;
    background: #ffffff;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-family: var(--font-primary);
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.repertoire-field input:focus,
.repertoire-field select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(183, 25, 32, 0.1);
}


/* ==========================================
   RESULTATOVERSIGT
========================================== */

.repertoire-results-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 45px 0 20px;
}

.repertoire-results-heading h2 {
    font-size: 30px;
}

.repertoire-results-heading p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 600;
}


/* ==========================================
   REPERTOIRETABEL
========================================== */

.repertoire-table-wrap {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 10px;
}

.repertoire-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.repertoire-table thead {
    background: var(--color-dark);
    color: #ffffff;
}

.repertoire-table th {
    padding: 15px 20px;
    text-align: left;
    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.repertoire-table th:nth-child(1) {
    width: 34%;
}

.repertoire-table th:nth-child(2) {
    width: 46%;
}

.repertoire-table th:nth-child(3) {
    width: 20%;
}

.repertoire-table td {
    padding: 10px 20px;
    border-bottom: 1px solid #d8d2ca;
    font-size: 14px;
    line-height: 1.5;
    vertical-align: middle;
}


/* ==========================================
   SKIFTEVIS RÆKKEFARVER
========================================== */

.repertoire-table tbody tr {
    background: #ffffff;
}

.repertoire-table tbody tr.repertoire-row-alt {
    background: #e9e4dc;
}

.repertoire-table tbody tr:hover {
    background: #f3dcd8;
}

.repertoire-table tbody tr:last-child td {
    border-bottom: none;
}

.repertoire-table tbody tr[hidden] {
    display: none;
}


/* ==========================================
   KUNSTNER OG SANGTITEL
========================================== */

.repertoire-artist {
    font-weight: 600;
}

.repertoire-artist-link {
    padding: 0;
    background: transparent;
    color: var(--color-text);
    border: none;
    text-align: left;
    font-size: inherit;
    font-weight: inherit;
    cursor: pointer;
}

.repertoire-artist-link:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.repertoire-title {
    color: var(--color-text);
}

.repertoire-genre {
    color: var(--color-text-muted);
    font-size: 13px;
}

.repertoire-mobile-genre {
    display: none;
}


/* ==========================================
   INGEN RESULTATER
========================================== */

.repertoire-empty {
    padding: 60px 20px;
    text-align: center;
}

.repertoire-empty[hidden] {
    display: none;
}

.repertoire-empty h3 {
    margin-bottom: 12px;
    font-size: 25px;
}

.repertoire-empty p {
    margin: 0;
    color: var(--color-text-muted);
}



/* ==========================================
   SIDEINDDELING
========================================== */

.repertoire-pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    margin-top: 30px;
}

.repertoire-pagination[hidden] {
    display: none;
}

.repertoire-pagination-info {
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 500;
}

.repertoire-pagination-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.repertoire-page-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    background: #ffffff;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.repertoire-page-button:hover:not(:disabled) {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
}

.repertoire-page-button.active {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
}

.repertoire-page-button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.repertoire-page-button:focus-visible {
    outline: 3px solid rgba(183, 25, 32, 0.3);
    outline-offset: 2px;
}

.repertoire-page-dots {
    padding: 0 5px;
    color: var(--color-text-muted);
    font-size: 16px;
}


/* ==========================================
   RESPONSIVT – TABLET
========================================== */

@media (max-width: 1000px) {

    .repertoire-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .repertoire-intro {
        padding: 60px 0 45px;
    }
}


/* ==========================================
   RESPONSIVT – MOBIL
========================================== */

@media (max-width: 650px) {

    .repertoire-intro {
        padding: 45px 0 35px;
    }

    .repertoire-intro h1 {
        font-size: 2.5rem;
    }

    .repertoire-intro p {
        font-size: 14px;
    }

    .repertoire-section {
        padding-bottom: 55px;
    }

    .repertoire-filter {
        padding: 20px;
    }

    .repertoire-filter-heading {
        flex-direction: column;
        gap: 15px;
    }

    .repertoire-filter-heading h2 {
        font-size: 24px;
    }

    .repertoire-filter-grid {
        grid-template-columns: 1fr;
    }

    .repertoire-field input,
    .repertoire-field select {
        height: 44px;
    }

    .repertoire-results-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
        margin-top: 35px;
    }

    .repertoire-results-heading h2 {
        font-size: 26px;
    }

    .repertoire-table th,
    .repertoire-table td {
        padding: 10px 12px;
    }

    .repertoire-table th:nth-child(1) {
        width: 40%;
    }

    .repertoire-table th:nth-child(2) {
        width: 60%;
    }

    .repertoire-table th:nth-child(3),
    .repertoire-genre {
        display: none;
    }

    .repertoire-table td {
        font-size: 12px;
    }

    .repertoire-mobile-genre {
        display: block;
        margin-top: 4px;
        color: var(--color-text-muted);
        font-size: 11px;
    }
}