/**
 * Maxtel Udlandspriser — Front-end prisliste
 * Bruger tema-farver fra Maxtel (--color-*)
 */

/* === Container === */
.maxtel-udlandspriser {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}

.maxtel-udlandspriser__container {
    width: 100%;
}

/* === Intro text === */
.maxtel-udlandspriser__intro {
    text-align: center;
    margin-bottom: 2rem;
}

.maxtel-udlandspriser__intro-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-slate-800, #1E293B);
    margin: 0 0 0.5rem;
}

.maxtel-udlandspriser__intro-text {
    color: var(--color-slate-500, #677785);
    font-size: 1rem;
    margin: 0;
    line-height: 1.5;
}

/* === Stats Bar === */
.maxtel-udlandspriser__stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    background: var(--color-white, #fff);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--color-slate-100, #EEF3F3);
}

.maxtel-udlandspriser__stat {
    text-align: center;
}

.maxtel-udlandspriser__stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-primary, #69C6AE);
}

.maxtel-udlandspriser__stat-unit {
    font-size: 0.6em;
    font-weight: 500;
    color: var(--color-slate-400, #7D8386);
}

.maxtel-udlandspriser__stat-label {
    font-size: 0.75rem;
    color: var(--color-slate-500, #677785);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.15rem;
}

/* === Search Box === */
.maxtel-udlandspriser__search {
    margin-bottom: 2rem;
}

.maxtel-udlandspriser__search-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.maxtel-udlandspriser__search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-slate-400, #7D8386);
    pointer-events: none;
}

.maxtel-udlandspriser__search-input {
    width: 100%;
    padding: 1rem 3rem 1rem 3.5rem;
    font-size: 1rem;
    border: 2px solid var(--color-slate-200, #C4D0D4);
    border-radius: 50px;
    outline: none;
    transition: all 0.2s ease;
    background: var(--color-white, #fff);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    font-family: inherit;
    box-sizing: border-box;
}

.maxtel-udlandspriser__search-input:focus {
    border-color: var(--color-primary, #69C6AE);
    box-shadow: 0 0 0 4px var(--color-primary-10, rgba(105, 198, 174, 0.1));
}

.maxtel-udlandspriser__search-input::placeholder {
    color: var(--color-slate-400, #7D8386);
}

.maxtel-udlandspriser__clear-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-slate-100, #EEF3F3);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-slate-500, #677785);
    font-size: 1.1rem;
    transition: all 0.2s;
    line-height: 1;
}

.maxtel-udlandspriser__clear-btn:hover {
    background: var(--color-primary, #69C6AE);
    color: var(--color-white, #fff);
}

/* === Alphabet Navigation === */
.maxtel-udlandspriser__alphabet {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--color-slate-50, #F4FAF9);
    border-radius: 16px;
}

.maxtel-udlandspriser__alpha-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--color-white, #fff);
    color: var(--color-slate-600, #54606B);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    font-family: inherit;
}

.maxtel-udlandspriser__alpha-btn:hover:not(.maxtel-udlandspriser__alpha-btn--disabled) {
    background: var(--color-teal-100, #D4F0E8);
    color: var(--color-teal-700, #3D8A74);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.maxtel-udlandspriser__alpha-btn--active {
    background: var(--color-primary, #69C6AE) !important;
    color: var(--color-white, #fff) !important;
    box-shadow: 0 4px 12px var(--color-primary-30, rgba(105, 198, 174, 0.3));
}

.maxtel-udlandspriser__alpha-btn--disabled {
    opacity: 0.35;
    cursor: not-allowed;
    background: var(--color-slate-100, #EEF3F3);
    box-shadow: none;
}

/* === Letter Sections === */
.maxtel-udlandspriser__section {
    margin-bottom: 2rem;
    background: var(--color-white, #fff);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--color-slate-100, #EEF3F3);
}

.maxtel-udlandspriser__letter-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--color-primary, #69C6AE) 0%, var(--color-teal-700, #3D8A74) 100%);
    color: var(--color-white, #fff);
    position: relative;
    overflow: hidden;
}

.maxtel-udlandspriser__letter-badge {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.maxtel-udlandspriser__letter-title {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* === Table === */
.maxtel-udlandspriser__table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    table-layout: fixed;
    margin: 0;
}

.maxtel-udlandspriser__table th {
    padding: 0.35rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-slate-500, #677785);
    background: var(--color-slate-50, #F4FAF9);
    border-bottom: 1px solid var(--color-slate-200, #C4D0D4);
}

.maxtel-udlandspriser__table th:nth-child(1) { width: 12%; }
.maxtel-udlandspriser__table th:nth-child(2) { width: 40%; }
.maxtel-udlandspriser__table th:nth-child(3),
.maxtel-udlandspriser__table th:nth-child(4),
.maxtel-udlandspriser__table th:nth-child(5) { width: 16%; text-align: right; }

.maxtel-udlandspriser__table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--color-slate-100, #EEF3F3);
    vertical-align: middle;
    font-size: 0.9rem;
}

.maxtel-udlandspriser__table tbody tr {
    transition: background 0.15s ease;
}

.maxtel-udlandspriser__table tbody tr:hover {
    background: var(--color-teal-50, #F0FAF7);
}

.maxtel-udlandspriser__table tbody tr:last-child td {
    border-bottom: none;
}

/* Code column */
.maxtel-udlandspriser__code {
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    font-size: 0.85rem;
    color: var(--color-slate-500, #677785);
    background: var(--color-slate-100, #EEF3F3);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    display: inline-block;
}

/* Country column */
.maxtel-udlandspriser__country {
    font-weight: 600;
    color: var(--color-slate-800, #1E293B);
    line-height: 1.3;
}

.maxtel-udlandspriser__country-en {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--color-slate-500, #677785);
    margin-top: 2px;
}

.maxtel-udlandspriser__country-local {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--color-slate-400, #7D8386);
    font-style: italic;
    margin-top: 1px;
}

/* Price columns */
.maxtel-udlandspriser__table td:nth-child(3),
.maxtel-udlandspriser__table td:nth-child(4),
.maxtel-udlandspriser__table td:nth-child(5) {
    text-align: right;
}

.maxtel-udlandspriser__price {
    font-weight: 700;
    color: var(--color-teal-700, #3D8A74);
    font-size: 0.95rem;
}

.maxtel-udlandspriser__price--empty {
    color: var(--color-slate-300, #A9B4B8);
    font-weight: 400;
    font-size: 0.85rem;
}

.maxtel-udlandspriser__price-suffix {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--color-slate-400, #7D8386);
    margin-left: 2px;
}

/* === No Results === */
.maxtel-udlandspriser__no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--color-slate-50, #F4FAF9);
    border-radius: 16px;
}

.maxtel-udlandspriser__no-results-icon {
    color: var(--color-slate-300, #A9B4B8);
    margin-bottom: 1rem;
}

.maxtel-udlandspriser__no-results h3 {
    font-size: 1.25rem;
    color: var(--color-slate-700, #334155);
    margin-bottom: 0.5rem;
}

.maxtel-udlandspriser__no-results p {
    color: var(--color-slate-500, #677785);
    margin: 0;
}

/* === Scroll to Top === */
.maxtel-udlandspriser__scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--color-primary, #69C6AE);
    color: var(--color-white, #fff);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 16px var(--color-primary-30, rgba(105, 198, 174, 0.3));
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.maxtel-udlandspriser__scroll-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--color-primary-50, rgba(105, 198, 174, 0.5));
}

/* === Utility === */
.maxtel-udlandspriser--hidden { display: none !important; }

/* === Mobile === */
@media (max-width: 768px) {
    .maxtel-udlandspriser {
        padding: 2rem 1rem 3rem;
    }

    .maxtel-udlandspriser__stats {
        gap: 1rem;
        padding: 1rem;
    }

    .maxtel-udlandspriser__stat-value {
        font-size: 1.25rem;
    }

    .maxtel-udlandspriser__alphabet {
        gap: 4px;
        padding: 0.75rem;
    }

    .maxtel-udlandspriser__alpha-btn {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }

    .maxtel-udlandspriser__table th,
    .maxtel-udlandspriser__table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }

    .maxtel-udlandspriser__table th:nth-child(1) { width: 15%; }
    .maxtel-udlandspriser__table th:nth-child(2) { width: 35%; }

    .maxtel-udlandspriser__code {
        font-size: 0.7rem;
        padding: 0.15rem 0.35rem;
    }
}

@media (max-width: 480px) {
    /* Skjul Kode-kolonne på smal mobil */
    .maxtel-udlandspriser__table th:nth-child(1),
    .maxtel-udlandspriser__table td:nth-child(1) {
        display: none;
    }

    .maxtel-udlandspriser__table th:nth-child(2) { width: 40%; }
    .maxtel-udlandspriser__table th:nth-child(3),
    .maxtel-udlandspriser__table th:nth-child(4),
    .maxtel-udlandspriser__table th:nth-child(5) { width: 20%; }

    .maxtel-udlandspriser__table th,
    .maxtel-udlandspriser__table td {
        padding: 0.5rem 0.35rem;
        font-size: 0.75rem;
    }

    .maxtel-udlandspriser__price { font-size: 0.8rem; }
    .maxtel-udlandspriser__price-suffix { font-size: 0.6rem; }
    .maxtel-udlandspriser__country-en,
    .maxtel-udlandspriser__country-local { display: none; }
}
