/**
 * GDPR Cookie Consent Banner
 * Modern, responsive süti-elfogadó banner a Business IT weboldal számára
 */

/* Cookie Banner Alapstílusok */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    border-top: 3px solid var(--orange, #f97316);
}

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

.cookie-banner.hidden {
    display: none;
}

/* Banner tartalom */
.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-text {
    flex: 1;
    min-width: 0;
}

.cookie-text h4 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--orange, #f97316);
}

.cookie-text p {
    margin: 0;
    line-height: 1.5;
    color: rgba(255,255,255,0.9);
}

.cookie-text a {
    color: var(--orange, #f97316);
    text-decoration: underline;
    transition: color 0.2s;
}

.cookie-text a:hover {
    color: #fb923c;
}

/* Cookie beállítások gomb csoport */
.cookie-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.cookie-btn.primary {
    background: var(--orange, #f97316);
    color: white;
}

.cookie-btn.primary:hover {
    background: #ea580c;
    transform: translateY(-1px);
}

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

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

.cookie-btn.settings {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
}

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

/* Cookie beállítások modal */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

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

.cookie-settings-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 32px;
    position: relative;
}

.cookie-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.cookie-settings-header h3 {
    margin: 0;
    color: #1e293b;
    font-size: 1.5rem;
}

.cookie-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
    padding: 4px;
    line-height: 1;
}

.cookie-close:hover {
    color: #374151;
}

.cookie-category {
    margin-bottom: 24px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.cookie-category h4 {
    margin: 0 0 8px 0;
    color: #1e293b;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-category p {
    margin: 0 0 12px 0;
    color: #6b7280;
    line-height: 1.5;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

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

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.2s;
    border-radius: 24px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.2s;
    border-radius: 50%;
}

input:checked + .cookie-slider {
    background-color: var(--orange, #f97316);
}

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

.cookie-toggle.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.cookie-settings-actions {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Responsive design */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .cookie-actions {
        flex-direction: column;
    }
    
    .cookie-btn {
        text-align: center;
    }
    
    .cookie-settings-content {
        padding: 24px 20px;
        margin: 10px;
    }
    
    .cookie-settings-actions {
        flex-direction: column;
    }
    
    .cookie-category h4 {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 16px;
    }
    
    .cookie-actions {
        gap: 8px;
    }
    
    .cookie-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}