/* Cookie Banner Styles */
#cookieBanner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(30, 30, 50, 0.98) 0%, rgba(20, 20, 40, 0.98) 100%);
    backdrop-filter: blur(10px);
    padding: 25px 20px;
    box-shadow: 0 -5px 30px rgba(139, 92, 246, 0.3);
    z-index: 10000;
    border-top: 2px solid rgba(139, 92, 246, 0.5);
    animation: slideUp 0.4s ease-out;
    display: none;
}

#cookieBanner.show {
    display: block;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.cookie-content {
    flex: 1;
}

.cookie-content h3 {
    color: #8B5CF6;
    font-size: 1.3em;
    margin-bottom: 10px;
    font-weight: 600;
}

.cookie-content p {
    color: #d0d0d0;
    line-height: 1.6;
    margin-bottom: 8px;
}

.cookie-content a {
    color: #8B5CF6;
    text-decoration: underline;
    transition: color 0.3s;
}

.cookie-content a:hover {
    color: #a78bfa;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #8B5CF6 0%, #6366f1 100%);
    color: white;
}

.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.5);
}

.cookie-btn-essential {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
    border: 2px solid rgba(139, 92, 246, 0.5);
}

.cookie-btn-essential:hover {
    background: rgba(139, 92, 246, 0.3);
    border-color: #8B5CF6;
}

.cookie-settings-link {
    color: #8B5CF6;
    text-decoration: none;
    font-size: 0.95em;
    transition: color 0.3s;
    cursor: pointer;
}

.cookie-settings-link:hover {
    color: #a78bfa;
    text-decoration: underline;
}

/* Cookie Settings Button (floating) */
.cookie-settings-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #8B5CF6 0%, #6366f1 100%);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
    z-index: 9999;
    transition: all 0.3s;
}

.cookie-settings-float.show {
    display: flex;
}

.cookie-settings-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.6);
}

.cookie-settings-float svg {
    width: 24px;
    height: 24px;
    fill: white;
}

/* Cookie Settings Modal */
#cookieSettingsModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    padding: 20px;
    animation: fadeIn 0.3s ease-out;
}

#cookieSettingsModal.show {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.cookie-modal-content {
    background: linear-gradient(135deg, rgba(30, 30, 50, 0.98) 0%, rgba(20, 20, 40, 0.98) 100%);
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 50px rgba(139, 92, 246, 0.5);
    border: 2px solid rgba(139, 92, 246, 0.5);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-modal-header {
    padding: 25px 30px;
    border-bottom: 2px solid rgba(139, 92, 246, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-header h2 {
    color: #8B5CF6;
    font-size: 1.5em;
    margin: 0;
}

.cookie-modal-close {
    background: none;
    border: none;
    color: #a78bfa;
    font-size: 1.8em;
    cursor: pointer;
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.cookie-modal-close:hover {
    background: rgba(139, 92, 246, 0.2);
    color: #8B5CF6;
    transform: rotate(90deg);
}

.cookie-modal-body {
    padding: 30px;
}

.cookie-category {
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.cookie-category-header h3 {
    color: #8B5CF6;
    font-size: 1.2em;
    margin: 0;
}

.cookie-toggle {
    position: relative;
    width: 50px;
    height: 26px;
}

.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: rgba(139, 92, 246, 0.3);
    transition: 0.3s;
    border-radius: 26px;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background: linear-gradient(135deg, #8B5CF6 0%, #6366f1 100%);
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
    transform: translateX(24px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
    cursor: not-allowed;
    opacity: 0.6;
}

.cookie-category-desc {
    color: #d0d0d0;
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 10px;
}

.cookie-category-items {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
}

.cookie-item {
    color: #a78bfa;
    font-size: 0.9em;
    margin: 6px 0;
    padding-left: 15px;
    position: relative;
}

.cookie-item:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #8B5CF6;
}

.cookie-modal-footer {
    padding: 20px 30px;
    border-top: 2px solid rgba(139, 92, 246, 0.3);
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.cookie-modal-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.cookie-modal-btn-save {
    background: linear-gradient(135deg, #8B5CF6 0%, #6366f1 100%);
    color: white;
}

.cookie-modal-btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.5);
}

.cookie-modal-btn-cancel {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
    border: 2px solid rgba(139, 92, 246, 0.5);
}

.cookie-modal-btn-cancel:hover {
    background: rgba(139, 92, 246, 0.3);
    border-color: #8B5CF6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: stretch;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: 120px;
    }
    
    #cookieBanner {
        padding: 20px 15px;
    }
    
    .cookie-content h3 {
        font-size: 1.1em;
    }
    
    .cookie-content p {
        font-size: 0.9em;
    }
    
    .cookie-modal-content {
        max-height: 95vh;
    }
    
    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding: 20px;
    }
    
    .cookie-modal-footer {
        flex-direction: column;
    }
    
    .cookie-modal-btn {
        width: 100%;
    }
}
