/**
 * cookie-consent.css
 * Helyezd el: /assets/css/cookie-consent.css
 */

/* ── Overlay ── */
#cc-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(3px);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
#cc-overlay.visible { opacity: 1; pointer-events: all; }

/* ── Banner (alap) ── */
#cc-banner {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    width: min(680px, calc(100vw - 2rem));
    background: #111;
    border: 0.5px solid #222;
    border-radius: 10px;
    padding: 1.5rem 1.75rem;
    z-index: 9999;
    box-shadow: 0 24px 60px rgba(0,0,0,0.6);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    opacity: 0;
}
#cc-banner.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.cc-banner-top {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.cc-icon {
    width: 36px;
    height: 36px;
    background: rgba(11,191,168,0.12);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.cc-icon svg { width: 18px; height: 18px; stroke: #0BBFA8; fill: none; stroke-width: 1.5; }
.cc-text h3 {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
    letter-spacing: 0.02em;
}
.cc-text p {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
}
.cc-text p a { color: #0BBFA8; text-decoration: none; }
.cc-text p a:hover { text-decoration: underline; }

.cc-banner-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
}
.cc-btn {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 9px 18px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    font-family: inherit;
}
.cc-btn-accept {
    background: #0BBFA8;
    color: #080808;
}
.cc-btn-accept:hover { background: #09a893; }
.cc-btn-reject {
    background: transparent;
    color: #555;
    border: 0.5px solid #333;
}
.cc-btn-reject:hover { color: #fff; border-color: #555; }
.cc-btn-settings {
    background: transparent;
    color: #444;
    border: none;
    padding: 9px 10px;
    text-decoration: underline;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.cc-btn-settings:hover { color: #0BBFA8; }

/* ── Panel (részletes beállítások) ── */
#cc-panel {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    width: min(680px, calc(100vw - 2rem));
    background: #111;
    border: 0.5px solid #222;
    border-radius: 10px;
    z-index: 9999;
    box-shadow: 0 24px 60px rgba(0,0,0,0.6);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    opacity: 0;
    overflow: hidden;
}
#cc-panel.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.cc-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.75rem;
    border-bottom: 0.5px solid #1a1a1a;
}
.cc-panel-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.03em;
}
.cc-panel-close {
    background: none;
    border: none;
    color: #555;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
    font-family: inherit;
}
.cc-panel-close:hover { color: #fff; }
.cc-panel-close svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

.cc-categories { padding: 0.75rem 1.75rem; }

.cc-category {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 0;
    border-bottom: 0.5px solid #181818;
}
.cc-category:last-child { border-bottom: none; }

.cc-cat-info { flex: 1; }
.cc-cat-info h4 {
    font-size: 13px;
    font-weight: 500;
    color: #ddd;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cc-cat-badge {
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 2px;
    font-weight: 600;
}
.cc-cat-badge.required {
    background: rgba(196,151,63,0.15);
    color: #C4973F;
    border: 0.5px solid rgba(196,151,63,0.3);
}
.cc-cat-badge.optional {
    background: rgba(11,191,168,0.1);
    color: #0BBFA8;
    border: 0.5px solid rgba(11,191,168,0.2);
}
.cc-cat-info p {
    font-size: 11px;
    color: #555;
    line-height: 1.6;
}
.cc-cat-info .cc-services {
    font-size: 10px;
    color: #444;
    margin-top: 4px;
    letter-spacing: 0.03em;
}

/* Toggle */
.cc-toggle { flex-shrink: 0; margin-top: 2px; }
.cc-toggle input { display: none; }
.cc-toggle label {
    display: block;
    width: 40px;
    height: 22px;
    background: #222;
    border-radius: 11px;
    cursor: pointer;
    position: relative;
    transition: background 0.2s;
    border: 0.5px solid #333;
}
.cc-toggle label::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    background: #555;
    border-radius: 50%;
    transition: transform 0.2s, background 0.2s;
}
.cc-toggle input:checked + label { background: rgba(11,191,168,0.2); border-color: #0BBFA8; }
.cc-toggle input:checked + label::after { transform: translateX(18px); background: #0BBFA8; }
.cc-toggle input:disabled + label { opacity: 0.5; cursor: not-allowed; }
.cc-toggle input:disabled:checked + label { background: rgba(196,151,63,0.15); border-color: #C4973F; }
.cc-toggle input:disabled:checked + label::after { background: #C4973F; }

.cc-panel-footer {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    padding: 1rem 1.75rem;
    border-top: 0.5px solid #1a1a1a;
    background: #0d0d0d;
    flex-wrap: wrap;
}

/* ── Floating re-open gomb ── */
#cc-reopen {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
    background: #111;
    border: 0.5px solid #222;
    border-radius: 6px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: #444;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    z-index: 9997;
    transition: all 0.2s;
    font-family: inherit;
    opacity: 0;
    pointer-events: none;
}
#cc-reopen.visible { opacity: 1; pointer-events: all; }
#cc-reopen:hover { color: #0BBFA8; border-color: #0BBFA8; }
#cc-reopen svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 1.5; }

@media (max-width: 600px) {
    #cc-banner, #cc-panel {
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 12px 12px 0 0;
        transform: translateY(120%);
    }
    #cc-banner.visible, #cc-panel.visible { transform: translateY(0); }
    .cc-banner-actions { justify-content: stretch; }
    .cc-btn { flex: 1; text-align: center; }
    .cc-btn-settings { flex: 100%; text-align: center; }
    #cc-reopen {
        bottom: 0.75rem;
        left: 0.75rem;
        padding: 6px 8px;
        font-size: 9px;
        opacity: 0.7;
    }
    #cc-reopen svg { width: 10px; height: 10px; }
}
