/* ==========================================================================
   Cookie Banner and Consent Management Styles
   GDPR/EU Compliance for Light and Dance VR
   ========================================================================== */

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(26, 26, 26, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-top: 2px solid #00d4ff;
    padding: 1.5rem;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -10px 40px rgba(0, 212, 255, 0.1);
    cursor: default;
}

.cookie-banner * {
    cursor: default;
}

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

.cookie-banner.hide {
    transform: translateY(100%);
}

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

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

.cookie-banner h3 {
    color: #00d4ff;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    font-family: 'Orbitron', sans-serif;
}

.cookie-banner p {
    color: #e0e0e0;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.cookie-banner a {
    color: #00d4ff;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.cookie-banner a:hover,
.cookie-banner a:focus {
    color: #33e0ff;
}

.cookie-banner-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
    min-width: 120px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    color: #000;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.cookie-btn-accept:hover,
.cookie-btn-accept:focus {
    background: linear-gradient(135deg, #33e0ff 0%, #00b8e6 100%);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
    transform: translateY(-2px);
}

.cookie-btn-decline {
    background: transparent;
    color: #e0e0e0;
    border: 2px solid #666;
}

.cookie-btn-decline:hover,
.cookie-btn-decline:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: #999;
    color: #fff;
}

.cookie-btn-settings {
    background: transparent;
    color: #00d4ff;
    border: 2px solid #00d4ff;
}

.cookie-btn-settings:hover,
.cookie-btn-settings:focus {
    background: rgba(0, 212, 255, 0.1);
    color: #33e0ff;
    border-color: #33e0ff;
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    cursor: default;
}

.cookie-settings-modal * {
    cursor: default;
}

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

.cookie-settings-content {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(0, 0, 0, 0.95) 100%);
    border: 2px solid #00d4ff;
    border-radius: 12px;
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    cursor: default;
}

.cookie-settings-content * {
    cursor: default;
}

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

.cookie-settings-title {
    color: #00d4ff;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    font-family: 'Orbitron', sans-serif;
}

.cookie-settings-close {
    background: none;
    border: none;
    color: #e0e0e0;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.cookie-settings-close:hover,
.cookie-settings-close:focus {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.cookie-category {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 4px solid #00d4ff;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.cookie-category-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

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

.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: #666;
    transition: 0.3s;
    border-radius: 24px;
}

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

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: #00d4ff;
}

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

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

.cookie-category-description {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.cookie-category-details {
    color: #aaa;
    font-size: 0.8rem;
    line-height: 1.4;
}

.cookie-settings-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 1rem;
    }
    
    .cookie-banner-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .cookie-banner-actions {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: auto;
    }
    
    .cookie-settings-modal {
        padding: 1rem;
    }
    
    .cookie-settings-content {
        padding: 1.5rem;
    }
    
    .cookie-settings-actions {
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
    }
}

/* Accessibility Improvements */
.cookie-banner:focus-within {
    outline: 3px solid #00d4ff;
    outline-offset: -3px;
}

.cookie-btn:focus {
    outline: 3px solid #00d4ff;
    outline-offset: 2px;
}

.cookie-toggle:focus-within {
    outline: 3px solid #00d4ff;
    outline-offset: 2px;
    border-radius: 24px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .cookie-banner,
    .cookie-btn,
    .cookie-toggle-slider,
    .cookie-toggle-slider:before {
        transition: none !important;
    }
}

/* External Content Placeholder */
.external-content-placeholder {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(0, 0, 0, 0.95) 100%);
    border: 2px solid #00d4ff;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    margin: 1rem 0;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-content h4 {
    color: #00d4ff;
    font-size: 1.2rem;
    margin: 0 0 1rem 0;
    font-family: 'Orbitron', sans-serif;
}

.placeholder-content p {
    color: #e0e0e0;
    margin: 0 0 1.5rem 0;
    line-height: 1.5;
}

.placeholder-content .cookie-btn {
    margin: 0 auto;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .cookie-banner {
        background: #000;
        border-top-color: #fff;
    }

    .cookie-banner p,
    .cookie-category-description {
        color: #fff;
    }

    .cookie-btn-accept {
        background: #fff;
        color: #000;
    }

    .cookie-btn-decline,
    .cookie-btn-settings {
        border-color: #fff;
        color: #fff;
    }

    .external-content-placeholder {
        background: #000;
        border-color: #fff;
    }

    .placeholder-content h4 {
        color: #fff;
    }
}
