/* ============================================
   Theme: Glass Frost v2.0
   Frosted glass panels · Blurred transparency
   TRIKON Petrol (#04697e) accent
   ============================================ */

:root {
    --clc-accent: #04697e;
    --clc-accent-light: #2fb5d2;
    --clc-accent-bg: rgba(4, 105, 126, 0.06);
    --clc-accent-border: rgba(4, 105, 126, 0.12);
    --clc-glass-bg: rgba(255, 255, 255, 0.55);
    --clc-glass-blur: blur(16px);
    --clc-text: #232323;
    --clc-text-muted: #8a8a8a;
    --clc-border: rgba(255, 255, 255, 0.5);
    --clc-radius: 6px;
}

/* --- Trigger Button --- */
.clc-trigger-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 14px;
    background: var(--clc-glass-bg);
    backdrop-filter: var(--clc-glass-blur);
    -webkit-backdrop-filter: var(--clc-glass-blur);
    border: 1px solid var(--clc-border);
    border-radius: var(--clc-radius);
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 13px; font-weight: 400; color: var(--clc-text);
    transition: all 0.25s ease; line-height: 1;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}
.clc-trigger-btn:hover {
    background: rgba(255, 255, 255, 0.75);
    border-color: var(--clc-accent-border);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.clc-trigger-btn .clc-trigger-flag {
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
    flex-shrink: 0;
}
.clc-trigger-label {
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.clc-trigger-sep { opacity: 0.4; }
.clc-trigger-currency { font-weight: 500; }
.clc-chevron {
    opacity: 0.3;
    transition: opacity 0.2s ease, transform 0.25s ease;
    flex-shrink: 0;
}
.clc-trigger-btn:hover .clc-chevron {
    opacity: 0.55;
    transform: translateY(1px);
}

/* --- Overlay: guaranteed full screen, no blur (avoids clipping) --- */
.clc-overlay {
    position: fixed;
    top: -5px; right: -5px; bottom: -5px; left: -5px;
    margin: 0 !important;
    padding: 0 !important;
    background: rgba(0, 0, 0, 0.25);
    z-index: 2147483640;
    opacity: 0; visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}
.clc-overlay.clc-open { opacity: 1; visibility: visible; }

/* --- Sidebar Panel --- */
.clc-sidebar {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    width: 350px; max-width: 90vw;
    height: 100vh; height: 100dvh;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(32px) saturate(1.6);
    -webkit-backdrop-filter: blur(32px) saturate(1.6);
    z-index: 2147483641;
    transform: translateX(102%);
    transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex; flex-direction: column;
    border-left: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.06);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0 !important;
    padding: 0;
    text-align: left;
}
.clc-sidebar.clc-open {
    transform: translateX(0);
}

/* --- Header --- */
.clc-sidebar-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 22px 24px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.clc-sidebar-title {
    font-size: 12px; font-weight: 700;
    margin: 0; color: var(--clc-text-muted);
    letter-spacing: 2.5px; text-transform: uppercase;
}
.clc-close-btn {
    display: flex; align-items: center; justify-content: center;
    width: 30px; height: 30px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 50%; cursor: pointer;
    color: var(--clc-text-muted);
    transition: all 0.2s ease;
}
.clc-close-btn:hover {
    background: var(--clc-accent-bg);
    border-color: var(--clc-accent-border);
    color: var(--clc-accent);
}

/* --- Search --- */
.clc-search-wrap { position: relative; padding: 12px 24px 8px; }
.clc-search {
    width: 100%;
    padding: 10px 14px 10px 38px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--clc-radius);
    font-family: inherit;
    font-size: 13px; font-weight: 400;
    background: rgba(255, 255, 255, 0.5);
    color: var(--clc-text);
    outline: none;
    transition: all 0.25s ease;
}
.clc-search:focus {
    border-color: var(--clc-accent-light);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 0 3px rgba(47, 181, 210, 0.08);
}
.clc-search::placeholder { color: #aaa; }
.clc-search-icon {
    position: absolute; left: 38px; top: 50%;
    transform: translateY(-50%);
    color: #aaa; pointer-events: none;
}

/* --- Sections --- */
.clc-sections {
    padding: 2px 0 24px;
}
.clc-sections::-webkit-scrollbar { width: 3px; }
.clc-sections::-webkit-scrollbar-thumb {
    background: rgba(4, 105, 126, 0.12);
    border-radius: 3px;
}

.clc-section { padding: 10px 0; }
.clc-section + .clc-section {
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.clc-section-title {
    font-family: inherit;
    font-size: 10px; font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--clc-text-muted);
    margin: 0;
    padding: 8px 24px 6px;
}

/* --- Items --- */
.clc-item-link {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 24px;
    text-decoration: none;
    color: #444; font-size: 14px; font-weight: 400;
    transition: background 0.2s ease, color 0.15s ease, transform 0.15s ease;
    cursor: pointer;
}
.clc-item-link:hover {
    background: rgba(4, 105, 126, 0.03);
    color: var(--clc-text);
    text-decoration: none;
}
.clc-item.clc-active .clc-item-link {
    color: var(--clc-accent);
    font-weight: 600;
    background: var(--clc-accent-bg);
}

/* Flag */
.clc-item .clc-flag {
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0,0,0,0.04);
}

/* Lang badge */
.clc-lang-code {
    background: rgba(0, 0, 0, 0.04);
    color: #777;
}
.clc-active .clc-lang-code {
    background: var(--clc-accent-bg);
    color: var(--clc-accent);
}

/* Currency sign */
.clc-currency-sign {
    display: flex; align-items: center; justify-content: center;
    width: 24px; height: 20px;
    font-size: 14px; font-weight: 400;
    color: #999;
}
.clc-active .clc-currency-sign {
    color: var(--clc-accent);
}

/* Check */
.clc-check { color: var(--clc-accent); }

/* --- Mobile --- */
@media (max-width: 480px) {
    .clc-sidebar { width: 100vw; max-width: 100vw; }
}
@media print {
    .clc-trigger-wrap, .clc-sidebar, .clc-overlay { display: none !important; }
}
