/**
 * Udlandspriser - Moderne prisliste
 * Bruger tema-farver fra Mifon
 */

/* === Container === */
.udlandspriser {
    width: 100%;
    margin: 0 auto;
}

/* === Hero Header === */
.udlandspriser-hero {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--teal-light) 0%, var(--white) 100%);
    border-radius: var(--radius-2xl);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.udlandspriser-hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: var(--teal-glow);
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

.udlandspriser-hero-icon {
    display: none;
}

.udlandspriser-hero h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--black);
    margin: 0 0 0.5rem !important;
}

.udlandspriser-hero p {
    color: var(--gray-600);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.5;
}

/* === Search Box === */
.udlandspriser-search {
    margin-bottom: 2rem;
}

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

.udlandspriser-search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 1.25rem;
    pointer-events: none;
}

.udlandspriser-search-input {
    width: 100%;
    padding: 1rem 3rem 1rem 3.5rem;
    font-size: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-full);
    outline: none;
    transition: all 0.2s ease;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.udlandspriser-search-input:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 4px var(--teal-glow);
}

.udlandspriser-search-input::placeholder {
    color: var(--gray-400);
}

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

.udlandspriser-clear-btn:hover {
    background: var(--teal);
    color: var(--white);
}

/* === Alphabet Navigation === */
.udlandspriser-alphabet {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-xl);
}

.udlandspriser-alphabet-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--white);
    color: var(--gray-600);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.udlandspriser-alphabet-btn:hover:not(.disabled) {
    background: var(--teal-light);
    color: var(--teal-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.udlandspriser-alphabet-btn.active {
    background: var(--teal);
    color: var(--white);
    box-shadow: 0 4px 12px var(--teal-glow);
}

.udlandspriser-alphabet-btn.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    background: var(--gray-100);
    box-shadow: none;
}

/* === Letter Sections === */
.udlandspriser-section {
    margin-bottom: 2rem;
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--gray-100);
}

.udlandspriser-letter-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
    margin-bottom: 4px;
}

.udlandspriser-letter-header + .udlandspriser-table {
    margin-top: 0;
}

/* Sørg for at indhold ligger over overlay */
.udlandspriser-letter-badge,
.udlandspriser-letter-title {
    position: relative;
    z-index: 1;
}

/* === TEMA BAGGRUND === */

/* Tema - Hvid fade fra top (kraftigere) */
[data-header-style="tema-fade-top"] .udlandspriser-letter-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.7) 0%, transparent 100%);
    pointer-events: none;
}

/* Tema - Hvid fade fra bund (kraftigere) */
[data-header-style="tema-fade-bottom"] .udlandspriser-letter-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.7) 100%);
    pointer-events: none;
}

/* === HVID BAGGRUND === */

/* Hvid - Tema fade fra top */
[data-header-style="hvid-fade-top"] .udlandspriser-letter-header {
    background: var(--white);
    color: var(--teal-dark);
}

[data-header-style="hvid-fade-top"] .udlandspriser-letter-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, var(--teal) 0%, transparent 100%);
    opacity: 0.25;
    pointer-events: none;
}

[data-header-style="hvid-fade-top"] .udlandspriser-letter-badge {
    background: var(--teal);
    color: var(--white);
}

/* Hvid - Tema fade fra top + streg */
[data-header-style="hvid-fade-top-border"] .udlandspriser-letter-header {
    background: var(--white);
    color: var(--teal-dark);
    border-bottom: 2px solid var(--teal);
}

[data-header-style="hvid-fade-top-border"] .udlandspriser-letter-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, var(--teal) 0%, transparent 100%);
    opacity: 0.25;
    pointer-events: none;
}

[data-header-style="hvid-fade-top-border"] .udlandspriser-letter-badge {
    background: var(--teal);
    color: var(--white);
}

/* Hvid - Tema fade fra bund */
[data-header-style="hvid-fade-bottom"] .udlandspriser-letter-header {
    background: var(--white);
    color: var(--teal-dark);
}

[data-header-style="hvid-fade-bottom"] .udlandspriser-letter-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, var(--teal) 100%);
    opacity: 0.25;
    pointer-events: none;
}

[data-header-style="hvid-fade-bottom"] .udlandspriser-letter-badge {
    background: var(--teal);
    color: var(--white);
}

/* Hvid - Fast */
[data-header-style="hvid-solid"] .udlandspriser-letter-header {
    background: var(--white);
    color: var(--teal-dark);
}

[data-header-style="hvid-solid"] .udlandspriser-letter-badge {
    background: var(--teal);
    color: var(--white);
}

/* Hvid - Fast med tema-streg i bund */
[data-header-style="hvid-border"] .udlandspriser-letter-header {
    background: var(--white);
    color: var(--teal-dark);
    border-bottom: 2px solid var(--teal);
}

[data-header-style="hvid-border"] .udlandspriser-letter-badge {
    background: var(--teal);
    color: var(--white);
}

.udlandspriser-letter-badge {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.udlandspriser-letter-title {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
}

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

.udlandspriser-table thead,
.udlandspriser-table tbody,
.udlandspriser-table tr {
    margin: 0;
    padding: 0;
}

.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(--gray-500);
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

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

.udlandspriser-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
    font-size: 0.9rem;
}

.udlandspriser-table tbody tr {
    transition: background 0.15s ease;
}

.udlandspriser-table tbody tr:hover {
    background: var(--teal-light);
}

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

/* Code column */
.udlandspriser-code {
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    font-size: 0.85rem;
    color: var(--gray-500);
    background: var(--gray-100);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    display: inline-block;
}

/* Country column */
.udlandspriser-country {
    font-weight: 600;
    color: var(--black);
    line-height: 1.3;
}

.udlandspriser-country-en {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--gray-500);
    margin-top: 2px;
}

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

.udlandspriser-price {
    font-weight: 700;
    color: var(--teal-dark);
    font-size: 0.95rem;
}

.udlandspriser-price.empty {
    color: var(--gray-300);
    font-weight: 400;
    font-size: 0.85rem;
}

.udlandspriser-price-suffix {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--gray-400);
    margin-left: 2px;
}

/* === No Results === */
.udlandspriser-no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--gray-50);
    border-radius: var(--radius-xl);
}

.udlandspriser-no-results-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.udlandspriser-no-results h3 {
    font-size: 1.25rem;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.udlandspriser-no-results p {
    color: var(--gray-500);
    margin: 0;
}

/* === Scroll to Top === */
.udlandspriser-scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--teal);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: 0 4px 16px var(--teal-glow);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.udlandspriser-scroll-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--teal-glow);
}

/* === Stats Bar === */
.udlandspriser-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1rem;
    margin-bottom: 2rem;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.udlandspriser-stat {
    text-align: center;
}

.udlandspriser-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--teal);
}

.udlandspriser-stat-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* === Utilities === */
.hidden { display: none !important; }

/* === Mobile === */
@media (max-width: 768px) {
    .udlandspriser-hero {
        padding: 2rem 1rem;
    }
    
    .udlandspriser-hero h2 {
        font-size: 1.5rem;
    }
    
    .udlandspriser-hero-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }
    
    .udlandspriser-alphabet {
        gap: 4px;
        padding: 0.75rem;
    }
    
    .udlandspriser-alphabet-btn {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }
    
    .udlandspriser-table th,
    .udlandspriser-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .udlandspriser-table th:nth-child(1) { width: 15%; }
    .udlandspriser-table th:nth-child(2) { width: 35%; }
    
    .udlandspriser-code {
        font-size: 0.7rem;
        padding: 0.15rem 0.35rem;
    }
    
    .udlandspriser-stats {
        gap: 1rem;
    }
    
    .udlandspriser-stat-value {
        font-size: 1.25rem;
    }
}

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

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

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

    .udlandspriser-price { font-size: 0.8rem; }
    .udlandspriser-price-suffix { font-size: 0.6rem; }
    .udlandspriser-country-en { display: none; }
}
