/**
 * Cookie Consent Banner Styles
 * GDPR compliant cookie consent system
 */

/* Cookie Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    display: none;
    border-top: 3px solid var(--color-primary, #FFD700);
    backdrop-filter: blur(10px);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 300px;
}

.cookie-banner-text h3 {
    margin: 0 0 10px 0;
    font-size: 1.2em;
    color: #d4af37;
}

.cookie-banner-text p {
    margin: 0;
    line-height: 1.5;
    opacity: 0.9;
}

.cookie-banner-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Cookie Buttons */
.cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 120px;
}

.cookie-btn-primary {
    background: #d4af37;
    color: #1a1a1a;
}

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

.cookie-btn-secondary {
    background: transparent;
    color: #d4af37;
    border: 2px solid #d4af37;
}

.cookie-btn-secondary:hover {
    background: #d4af37;
    color: #1a1a1a;
}

.cookie-btn-minimal {
    background: transparent;
    color: #ccc;
    border: 1px solid #666;
}

.cookie-btn-minimal:hover {
    background: #666;
    color: white;
}

/* Cookie Settings Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    padding: 20px;
    box-sizing: border-box;
}

.cookie-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.cookie-modal-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-header h2 {
    margin: 0;
    color: #1a1a1a;
    font-size: 1.5em;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.cookie-modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.cookie-modal-body {
    padding: 20px 30px;
}

.cookie-modal-body > p {
    margin-bottom: 30px;
    color: #666;
    line-height: 1.6;
}

/* Cookie Categories */
.cookie-category {
    margin-bottom: 30px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.cookie-category-header {
    background: #f8f9fa;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.cookie-category-desc {
    padding: 15px 20px;
    margin: 0;
    color: #666;
    line-height: 1.5;
    background: #fafbfc;
}

.cookie-list {
    margin: 0;
    padding: 15px 20px 20px;
    list-style: none;
}

.cookie-list li {
    margin-bottom: 8px;
    color: #555;
    font-size: 14px;
}

.cookie-list strong {
    color: #333;
}

/* Toggle Switch */
.cookie-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 15px;
}

.cookie-toggle input[type="checkbox"] {
    display: none;
}

.cookie-slider {
    position: relative;
    width: 50px;
    height: 26px;
    background: #ccc;
    border-radius: 26px;
    transition: all 0.3s ease;
}

.cookie-slider:before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    top: 3px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-toggle input:checked + .cookie-slider {
    background: #d4af37;
}

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

.cookie-slider.essential {
    background: #28a745;
    opacity: 0.7;
}

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

/* Modal Footer */
.cookie-modal-footer {
    padding: 20px 30px 30px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

/* Floating Cookie Button */
.cookie-float-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #d4af37;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 9999;
}

.cookie-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Body adjustments when banner is visible */
body.cookie-banner-visible {
    padding-bottom: 120px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .cookie-banner-actions {
        justify-content: center;
        width: 100%;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: auto;
    }
    
    .cookie-modal-content {
        margin: 10px;
        max-height: calc(100vh - 20px);
    }
    
    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .cookie-category-header {
        padding: 15px;
    }
    
    .cookie-toggle {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    body.cookie-banner-visible {
        padding-bottom: 140px;
    }
}

@media (max-width: 480px) {
    .cookie-banner-actions {
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
    }
    
    .cookie-float-btn {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}

/* Animation for banner appearance */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-consent-banner {
    animation: slideUp 0.5s ease-out;
}

/* Focus styles for accessibility */
.cookie-btn:focus,
.cookie-toggle:focus,
.cookie-modal-close:focus {
    outline: 2px solid #d4af37;
    outline-offset: 2px;
}

.cookie-slider:focus {
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3);
}
