/* ======= COOKIE CONSENT STYLES ======= */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--background-dark);
    border-top: 1px solid rgba(255, 0, 255, 0.3);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    padding: 20px 0;
    transform: translateY(100%);
    transition: transform 0.4s ease-out;
}

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

.cookie-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
    margin-right: 30px;
    margin-bottom: 20px;
}

.cookie-text h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
    text-shadow: var(--neon-shadow-cyan);
}

.cookie-text p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    margin: 5px;
    transition: var(--transition);
    border: none;
    font-size: 0.9rem;
}

.cookie-btn.accept-all {
    background-color: var(--primary-color);
    color: var(--background-dark);
    box-shadow: 0 0 10px var(--primary-color);
}

.cookie-btn.accept-all:hover {
    background-color: #ff40ff;
    box-shadow: 0 0 15px var(--primary-color);
}

.cookie-btn.accept-necessary {
    background-color: var(--secondary-color);
    color: var(--background-dark);
    box-shadow: 0 0 10px var(--secondary-color);
}

.cookie-btn.accept-necessary:hover {
    background-color: #40ffff;
    box-shadow: 0 0 15px var(--secondary-color);
}

.cookie-btn.settings {
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid var(--text-light);
}

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

.cookie-btn.save-settings {
    background-color: var(--accent-color);
    color: var(--background-dark);
    box-shadow: 0 0 10px var(--accent-color);
}

.cookie-btn.save-settings:hover {
    background-color: #ffff40;
    box-shadow: 0 0 15px var(--accent-color);
}

/* Cookie Settings Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.cookie-modal-content {
    background-color: var(--background-light);
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    border: 1px solid rgba(255, 0, 255, 0.3);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.cookie-modal-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 0, 255, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-header h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    text-shadow: var(--neon-shadow);
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--primary-color);
}

.cookie-modal-body {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-option:last-child {
    border-bottom: none;
}

.cookie-option h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--text-light);
}

.cookie-option p {
    color: var(--text-dim);
    font-size: 0.9rem;
    max-width: 400px;
}

.cookie-modal-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 0, 255, 0.3);
    text-align: right;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #363649;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--primary-color);
}

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

input:disabled + .slider {
    opacity: 0.7;
    cursor: not-allowed;
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .cookie-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-text {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: space-between;
    }
    
    .cookie-option {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .switch {
        margin-top: 10px;
    }
}
