/* Modern Cookie Consent Felugró */

/* Cookie felugró konténer */
.cookie-consent {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    max-width: 450px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 40px 120px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(244, 208, 63, 0.2);
    backdrop-filter: blur(20px);
    z-index: 10000;
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: all 0.3s ease;
    font-family: 'Nunito', sans-serif;
}

/* Világos mód cookie felugró */
.cookie-consent.theme-light {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid rgba(244, 208, 63, 0.3);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.1),
        0 40px 120px rgba(0, 0, 0, 0.05);
}

/* Sötét mód cookie felugró */
.cookie-consent.theme-dark {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 2px solid rgba(244, 208, 63, 0.3);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 40px 120px rgba(0, 0, 0, 0.3);
}

/* Cookie felugró megjelenése */
.cookie-consent.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    display: block;
    visibility: visible;
    pointer-events: auto;
    z-index: 10000;
}



/* Cookie felugró alapértelmezett láthatóság */
.cookie-consent {
    opacity: 1;
    transform: translateY(0) scale(1);
    display: block;
    visibility: visible;
    pointer-events: auto;
    z-index: 10000;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Cookie consent elrejtve - AZONNALI */
.cookie-consent.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    /* Accessibility - teljes elrejtés */
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    z-index: -1 !important;
    /* AZONNALI elrejtés - nincs transition */
    transition: none !important;
    animation: none !important;
}

/* Cookie felugró alapértelmezetten látható, de a JavaScript kezeli */
.cookie-consent.default-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    display: block;
    visibility: visible;
    pointer-events: auto;
    z-index: 10000;
}

/* Cookie felugró eltűnése - ezt a JavaScript hidden osztállyal kezeli */

/* Cookie ikon */
.cookie-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #f4d03f, #f39c12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 25px rgba(244, 208, 63, 0.3);
    position: relative;
    overflow: hidden;
}

.cookie-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%231e293b"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>');
    background-size: 60%;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.9;
}

/* Cookie ikon animáció */
.cookie-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: cookieShine 3s ease-in-out infinite;
}

@keyframes cookieShine {
    0%, 100% { transform: rotate(45deg) translateX(-100%); }
    50% { transform: rotate(45deg) translateX(100%); }
}

/* Cím */
.cookie-title {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Világos mód cím */
.cookie-consent.theme-light .cookie-title {
    color: #1e293b;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Sötét mód cím */
.cookie-consent.theme-dark .cookie-title {
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Leírás */
.cookie-description {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

/* Világos mód leírás */
.cookie-consent.theme-light .cookie-description {
    color: #475569;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

/* Sötét mód leírás */
.cookie-consent.theme-dark .cookie-description {
    color: #cbd5e1;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

/* Gombok konténer */
.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    pointer-events: auto;
    position: relative;
    z-index: 10;
}

/* Elsődleges gomb - Elfogadás */
.cookie-btn-primary {
    background: linear-gradient(135deg, #f4d03f, #f39c12);
    color: #1e293b;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(244, 208, 63, 0.3);
    flex: 1;
    min-width: 120px;
    position: relative;
    overflow: hidden;
    pointer-events: auto;
    z-index: 10;
}

.cookie-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cookie-btn-primary:hover::before {
    left: 100%;
}

.cookie-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(244, 208, 63, 0.4);
}

.cookie-btn-primary:active {
    transform: translateY(0);
}

/* Másodlagos gomb - Elutasítás */
.cookie-btn-secondary {
    background: transparent;
    color: #94a3b8;
    border: 2px solid #475569;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    min-width: 120px;
    position: relative;
    overflow: hidden;
    pointer-events: auto;
    z-index: 10;
}

/* Világos mód másodlagos gomb */
.cookie-consent.theme-light .cookie-btn-secondary {
    color: #64748b;
    border-color: #cbd5e1;
}

/* Sötét mód másodlagos gomb */
.cookie-consent.theme-dark .cookie-btn-secondary {
    color: #94a3b8;
    border-color: #475569;
}

.cookie-btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.1), transparent);
    transition: left 0.5s ease;
}

.cookie-btn-secondary:hover::before {
    left: 100%;
}

.cookie-btn-secondary:hover {
    border-color: #f4d03f;
    color: #f4d03f;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(244, 208, 63, 0.2);
}

.cookie-btn-secondary:active {
    transform: translateY(0);
}

/* Cookie linkek */
.cookie-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cookie-link {
    color: #64748b;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid transparent;
}

/* Világos mód linkek */
.cookie-consent.theme-light .cookie-link {
    color: #64748b;
}

/* Sötét mód linkek */
.cookie-consent.theme-dark .cookie-link {
    color: #64748b;
}

.cookie-link:hover {
    color: #f4d03f;
    background: rgba(244, 208, 63, 0.1);
    border-color: rgba(244, 208, 63, 0.3);
    transform: translateY(-1px);
}

.cookie-link i {
    font-size: 0.9rem;
}

/* Reszponzív design */
@media (max-width: 768px) {
    .cookie-consent {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        padding: 1.5rem;
        max-width: none;
        pointer-events: auto;
    }
    
    .cookie-title {
        font-size: 1.2rem;
    }
    
    .cookie-description {
        font-size: 0.9rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
        pointer-events: auto;
    }
    
    .cookie-btn-primary,
    .cookie-btn-secondary {
        min-width: auto;
        width: 100%;
        pointer-events: auto;
        cursor: pointer;
        z-index: 10;
        position: relative;
    }
    
    .cookie-links {
        flex-direction: column;
        gap: 0.5rem;
        pointer-events: auto;
    }
    
    .cookie-link {
        justify-content: center;
        width: 100%;
        pointer-events: auto;
    }
}

@media (max-width: 480px) {
    .cookie-consent {
        bottom: 0.5rem;
        left: 0.5rem;
        right: 0.5rem;
        padding: 1.2rem;
        border-radius: 16px;
        pointer-events: auto;
    }
    
    .cookie-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 1rem;
    }
    
    .cookie-title {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .cookie-description {
        font-size: 0.85rem;
        margin-bottom: 1.2rem;
    }
    
    .cookie-buttons {
        pointer-events: auto;
    }
    
    .cookie-btn-primary,
    .cookie-btn-secondary {
        pointer-events: auto;
        cursor: pointer;
        z-index: 10;
        position: relative;
    }
    
    .cookie-links {
        margin-top: 0.8rem;
        pointer-events: auto;
    }
    
    .cookie-link {
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
        pointer-events: auto;
    }
}

/* Dark mode támogatás */
@media (prefers-color-scheme: dark) {
    .cookie-consent {
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
        border-color: rgba(244, 208, 63, 0.3);
    }
}

/* Animációk */
@keyframes cookieSlideIn {
    from {
        opacity: 0;
        transform: translateY(100px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes cookieSlideOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(100px) scale(0.9);
    }
}

/* Cookie felugró megjelenése animációval */
.cookie-consent.animate-in {
    animation: cookieSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Cookie felugró eltűnése animációval */
.cookie-consent.animate-out {
    animation: cookieSlideOut 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Speciális effektek */
.cookie-consent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f4d03f, #f39c12);
    border-radius: 20px 20px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cookie-consent:hover::before {
    opacity: 1;
}

/* Fókusz állapotok */
.cookie-btn-primary:focus,
.cookie-btn-secondary:focus,
.cookie-btn-details:focus,
.cookie-btn-settings:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(244, 208, 63, 0.3);
}

/* Loading állapot */
.cookie-consent.loading {
    pointer-events: none;
}

.cookie-consent.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f4d03f;
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Téma váltás animáció a cookie felugrón */
.cookie-consent {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                background 0.3s ease, 
                border-color 0.3s ease,
                box-shadow 0.3s ease;
}

/* Téma-specifikus hover effektek */
.cookie-consent.theme-light:hover {
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.15),
        0 50px 150px rgba(0, 0, 0, 0.1);
}

.cookie-consent.theme-dark:hover {
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.5),
        0 50px 150px rgba(0, 0, 0, 0.4);
}






