/* ============================================================================
   COOKIE CONSENT BANNER - GDPR Megfelelő
   ============================================================================
   Modern, felhasználóbarát cookie banner granulált beállításokkal
   ============================================================================ */

/* Cookie Banner Alapok */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ffffff;
    padding: 25px 20px;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.5);
    z-index: 99999;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 3px solid var(--accent-color, #ffba08);
}

.cookie-consent-banner.show {
    transform: translateY(0);
}

.cookie-consent-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

/* Cookie Ikon */
.cookie-icon {
    font-size: 48px;
    color: var(--accent-color, #ffba08);
    flex-shrink: 0;
}

/* Cookie Tartalom */
.cookie-content {
    flex: 1;
    min-width: 300px;
}

.cookie-content h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-color, #ffba08);
}

.cookie-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.cookie-content a {
    color: var(--accent-color, #ffba08);
    text-decoration: underline;
    transition: opacity 0.2s;
}

.cookie-content a:hover {
    opacity: 0.8;
}

/* Cookie Gombok */
.cookie-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: 'Montserrat', sans-serif;
}

.cookie-btn-accept {
    background: var(--accent-color, #ffba08);
    color: #000;
}

.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 186, 8, 0.4);
}

.cookie-btn-reject {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-reject:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.cookie-btn-settings {
    background: transparent;
    color: var(--accent-color, #ffba08);
    border: 2px solid var(--accent-color, #ffba08);
}

.cookie-btn-settings:hover {
    background: rgba(255, 186, 8, 0.1);
}

/* ============================================================================
   COOKIE SETTINGS MODAL - Részletes Beállítások
   ============================================================================ */

.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.cookie-settings-modal.show {
    display: flex;
}

.cookie-settings-content {
    background: #fff;
    border-radius: 16px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-settings-header {
    background: linear-gradient(135deg, var(--primary-color, #1a1a1a) 0%, #2d2d2d 100%);
    color: #fff;
    padding: 25px 30px;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-settings-header h2 {
    margin: 0;
    font-size: 24px;
    color: var(--accent-color, #ffba08);
}

.cookie-settings-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.cookie-settings-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.cookie-settings-body {
    padding: 30px;
}

.cookie-settings-intro {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.cookie-settings-intro p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

/* Cookie Kategória */
.cookie-category {
    margin-bottom: 20px;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.cookie-category:hover {
    border-color: var(--accent-color, #ffba08);
}

.cookie-category-header {
    padding: 20px;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s;
}

.cookie-category-header:hover {
    background: #e9ecef;
}

.cookie-category-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cookie-category-title i {
    font-size: 24px;
    color: var(--accent-color, #ffba08);
}

.cookie-category-title div h3 {
    margin: 0 0 4px 0;
    font-size: 18px;
    color: #222;
}

.cookie-category-title div p {
    margin: 0;
    font-size: 13px;
    color: #666;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    width: 60px;
    height: 32px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 32px;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: var(--accent-color, #ffba08);
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
    transform: translateX(28px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-toggle-slider.always-on {
    background-color: #4caf50;
    cursor: not-allowed;
}

/* Kategória Részletek */
.cookie-category-details {
    padding: 20px;
    background: #fff;
    display: none;
    border-top: 1px solid #e9ecef;
}

.cookie-category.expanded .cookie-category-details {
    display: block;
}

.cookie-category-details p {
    margin: 0 0 15px 0;
    color: #555;
    line-height: 1.6;
}

.cookie-category-details ul {
    margin: 10px 0;
    padding-left: 20px;
    color: #666;
}

.cookie-category-details ul li {
    margin-bottom: 8px;
}

/* Modal Footer */
.cookie-settings-footer {
    padding: 20px 30px;
    background: #f8f9fa;
    border-top: 2px solid #e9ecef;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.cookie-settings-footer .cookie-btn {
    min-width: 150px;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 768px) {
    .cookie-consent-container {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-icon {
        font-size: 36px;
    }
    
    .cookie-actions {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: 0;
    }
    
    .cookie-settings-content {
        max-height: 95vh;
        margin: 10px;
    }
    
    .cookie-settings-header,
    .cookie-settings-body,
    .cookie-settings-footer {
        padding: 20px;
    }
    
    .cookie-settings-header h2 {
        font-size: 20px;
    }
    
    .cookie-category-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .cookie-settings-footer {
        flex-direction: column;
    }
    
    .cookie-settings-footer .cookie-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cookie-consent-banner {
        padding: 20px 15px;
    }
    
    .cookie-content h3 {
        font-size: 18px;
    }
    
    .cookie-content p {
        font-size: 13px;
    }
    
    .cookie-btn {
        padding: 10px 18px;
        font-size: 13px;
    }
}

/* ============================================================================
   ANIMÁCIÓK ÉS ÁTMENETEK
   ============================================================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Elrejtve alapértelmezetten */
.cookie-consent-banner:not(.show) {
    display: none;
}
