
/* Cookie Consent Banner Styles */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-top: 3px solid #8464dd;
    padding: 20px;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

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

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 768px) {
    .cookie-consent-content {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        gap: 30px;
    }
}

.cookie-consent-text {
    flex: 1;
    color: #e2e8f0;
}

.cookie-consent-text h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-consent-text p {
    margin: 0 0 12px 0;
    line-height: 1.5;
    color: #cbd5e1;
}

.cookie-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-links a {
    color: #8464dd;
    text-decoration: underline;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.cookie-links a:hover {
    color: #a78bfa;
}

.cookie-consent-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 200px;
}

@media (min-width: 480px) {
    .cookie-consent-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media (min-width: 768px) {
    .cookie-consent-actions {
        flex-direction: column;
        flex-shrink: 0;
    }
}

.cookie-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-align: center;
}

.cookie-btn-primary {
    background: linear-gradient(135deg, #8464dd, #3b82f6);
    color: white;
    box-shadow: 0 2px 8px rgba(132, 100, 221, 0.3);
}

.cookie-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(132, 100, 221, 0.4);
}

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

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

/* Cookie Consent Modal Styles */
.cookie-consent-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cookie-consent-modal.show {
    opacity: 1;
    visibility: visible;
}

.cookie-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.cookie-modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    border: 2px solid #8464dd;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.cookie-consent-modal.show .cookie-modal-content {
    transform: scale(1);
}

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

.cookie-modal-header h2 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.cookie-modal-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 24px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.cookie-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.cookie-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.cookie-modal-body > p {
    color: #cbd5e1;
    margin: 0 0 24px 0;
    line-height: 1.6;
}

.cookie-category {
    margin-bottom: 24px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-category-header {
    margin-bottom: 12px;
}

.cookie-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.cookie-toggle input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: relative;
    width: 44px;
    height: 24px;
    background: #4a5568;
    border-radius: 24px;
    transition: background 0.2s;
    flex-shrink: 0;
}

.toggle-slider:before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s;
}

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

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

.cookie-toggle input:disabled + .toggle-slider {
    background: #68748a;
    opacity: 0.7;
}

.cookie-toggle strong {
    color: white;
    font-weight: 600;
    flex: 1;
}

.required-badge {
    background: #059669;
    color: white;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
}

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

.cookie-category details {
    margin-top: 12px;
}

.cookie-category summary {
    color: #8464dd;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 4px 0;
}

.cookie-category summary:hover {
    color: #a78bfa;
}

.cookie-category ul {
    margin: 8px 0 0 20px;
    padding: 0;
}

.cookie-category li {
    color: #94a3b8;
    font-size: 0.875rem;
    margin-bottom: 4px;
}

.cookie-category li strong {
    color: #e2e8f0;
}

.cookie-modal-footer {
    padding: 24px;
    border-top: 1px solid #334155;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .cookie-consent-banner {
        padding: 16px;
    }
    
    .cookie-consent-content {
        gap: 16px;
    }
    
    .cookie-consent-actions {
        min-width: auto;
    }
    
    .cookie-btn {
        padding: 10px 16px;
        font-size: 0.8125rem;
    }
    
    .cookie-modal-content {
        margin: 10px;
        max-height: 95vh;
    }
    
    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding: 20px;
    }
    
    .cookie-modal-footer {
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
    }
}

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

/* Animation for smooth interactions */
.cookie-category {
    transition: background 0.2s ease;
}

.cookie-category:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .cookie-consent-banner {
        border-top-width: 4px;
    }
    
    .cookie-btn-secondary {
        border-width: 2px;
    }
    
    .cookie-modal-content {
        border-width: 3px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .cookie-consent-banner,
    .cookie-consent-modal,
    .cookie-modal-content,
    .cookie-btn,
    .toggle-slider,
    .toggle-slider:before {
        transition: none;
    }
}
