/* Alap beállítások */
#cookie-banner,
#cookie-settings {
    font-family: 'Barlow Semi Condensed', 'Inter', 'Segoe UI', Arial, sans-serif;
    box-sizing: border-box;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    min-width: 320px;
    max-width: 95vw;
    width: 100%;
    max-width: 450px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(37, 60, 78, 0.15);
    color: rgb(37, 60, 78);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(37, 60, 78, 0.25), 0 8px 25px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    padding: 2.5rem 2rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
    font-size: 1rem;
    line-height: 1.6;
    animation: fadeInModal 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInModal {
    from { 
        opacity: 0; 
        transform: translate(-50%, -45%) scale(0.95); 
        backdrop-filter: blur(0px);
    }
    to   { 
        opacity: 1; 
        transform: translate(-50%, -50%) scale(1); 
        backdrop-filter: blur(15px);
    }
}

#cookie-banner {
    display: var(--cookie-banner-display, none); /* CSS változóval vezérelt megjelenítés */
}

#cookie-settings {
    display: none;
}

/* Banner szöveg stílus */
#cookie-banner p,
#cookie-settings p {
    color: rgb(37, 60, 78);
    font-size: 1.05rem;
    font-weight: 400;
    margin: 0;
    line-height: 1.6;
}

/* Gombok tároló */
.cookie-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}

/* Gombok alap stílus - PRYSPROVE színpaletta */
.cookie-buttons button, #saveSettings {
    background: #2c7c9f;
    color: rgb(255, 255, 255);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.8em 1.8em;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(44, 124, 159, 0.3);
    transition: all 0.3s ease;
    outline: none;
    font-family: inherit;
}

/* Elfogadom gomb (primary) */
#cookie-accept, .btn-primary.btn-small {
    background: linear-gradient(135deg, #2c7c9f, #1a445d);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(44, 124, 159, 0.3);
}

/* Elutasítom gomb (secondary) */
#cookie-decline, .btn-secondary.btn-small {
    background: transparent;
    color: #2c7c9f;
    border: 2px solid #2c7c9f;
    box-shadow: 0 4px 15px rgba(44, 124, 159, 0.2);
}

/* Személyre szabás gomb */
#customize, .btn-outline.btn-small {
    background: transparent;
    color: #2c7c9f;
    border: 2px solid #2c7c9f;
    box-shadow: 0 4px 15px rgba(44, 124, 159, 0.2);
    font-size: 0.9rem;
    padding: 0.7em 1.5em;
}

/* Hover effektek */
.cookie-buttons button:hover, #saveSettings:hover, #cookie-accept:hover {
    background: #1a445d;
    color: rgb(255, 255, 255);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 124, 159, 0.4);
}

#customize:hover, #cookie-decline:hover {
    background: #2c7c9f;
    color: rgb(255, 255, 255);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 124, 159, 0.4);
}

/* Kategóriák egyesével */
.cookie-category {
    display: flex;
    align-items: center;
    gap: 0.8em;
    margin: 0.8em 0;
    font-size: 1rem;
    color: rgb(37, 60, 78);
    justify-content: flex-start;
    width: 100%;
}

/* Checkbox mérete */
.cookie-category input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #2c7c9f;
    cursor: pointer;
}

.cookie-category label {
    cursor: pointer;
    font-weight: 500;
}

/* Mentés gomb */
#saveSettings {
    width: 100%;
    margin-top: 1.5em;
    padding: 1em 2em;
    font-size: 1.05rem;
}

/* Cookie Overlay (kattintás blokkolása, ha nincs consent) */
#cookie-overlay {
    display: var(--cookie-overlay-display, none); /* CSS változóval vezérelt megjelenítés */
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(37, 60, 78, 0.6);
    backdrop-filter: blur(8px);
    z-index: 9998;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* === COOKIE SETTINGS MODAL === */
.cookie-settings {
    font-family: 'Barlow Semi Condensed', 'Inter', 'Segoe UI', Arial, sans-serif;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    min-width: 320px;
    max-width: 95vw;
    width: 100%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(44, 124, 159, 0.2);
    color: rgb(37, 60, 78);
    border-radius: 16px;
    box-shadow: 0 25px 80px rgba(44, 124, 159, 0.3), 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 10001;
    padding: 2.5rem 2rem;
    display: none;
    flex-direction: column;
    gap: 2rem;
    animation: fadeInSettings 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInSettings {
    from { 
        opacity: 0; 
        transform: translate(-50%, -45%) scale(0.9); 
    }
    to   { 
        opacity: 1; 
        transform: translate(-50%, -50%) scale(1); 
    }
}

.settings-header h4 {
    color: #1a445d;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    text-align: center;
}

.settings-header p {
    color: rgb(37, 60, 78);
    font-size: 1rem;
    margin: 0;
    text-align: center;
    opacity: 0.8;
}

.cookie-categories {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Cookie kategória továbbfejlesztett stílus */
.cookie-category {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem;
    background: rgba(244, 244, 244, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(160, 177, 187, 0.3);
    transition: all 0.3s ease;
}

.cookie-category:hover {
    background: rgba(44, 124, 159, 0.05);
    border-color: rgba(44, 124, 159, 0.4);
    transform: translateY(-1px);
}

.cookie-category input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #2c7c9f;
    cursor: pointer;
    margin-top: 2px;
}

.cookie-category input[type="checkbox"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-category label {
    cursor: pointer;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.cookie-category label strong {
    color: #1a445d;
    font-size: 1.1rem;
    font-weight: 600;
}

.category-desc {
    color: rgb(37, 60, 78);
    font-size: 0.9rem;
    opacity: 0.75;
    line-height: 1.4;
}

.settings-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.settings-buttons button {
    flex: 1;
    min-width: 140px;
}

/* Mobil optimalizálás */
@media (max-width: 600px) {
    #cookie-banner, #cookie-settings {
        min-width: 0;
        width: 95vw;
        max-width: 95vw;
        padding: 2rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .cookie-buttons, .settings-buttons {
        flex-direction: column;
        gap: 0.8rem;
        width: 100%;
    }
    
    .cookie-buttons button, #saveSettings, .settings-buttons button {
        width: 100%;
        padding: 0.9em 1.5em;
        min-width: unset;
    }

    .cookie-category {
        padding: 1rem;
        gap: 0.8rem;
    }

    .cookie-category label strong {
        font-size: 1rem;
    }

    .category-desc {
        font-size: 0.85rem;
    }
}
