/* 
* Motachurle Center - Cookie Consent Stylesheet
* Author: Motachurle Center
* Version: 1.0
*/

/* Cookie Consent
-------------------------------------------------- */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 2rem;
    display: none;
}

.cookie-consent.active {
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.cookie-content h3 {
    margin-bottom: 1.5rem;
}

.cookie-content p {
    margin-bottom: 2.5rem;
    max-width: 800px;
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

/* Cookie Settings Panel
-------------------------------------------------- */
.cookie-settings-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    display: none;
}

.cookie-settings-panel.active {
    display: flex;
}

.settings-content {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    padding: 3rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.settings-content h3 {
    margin-bottom: 2.5rem;
    text-align: center;
}

.settings-options {
    margin-bottom: 3rem;
}

.setting-option {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-color);
}

.setting-option:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

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

.setting-header h4 {
    margin-bottom: 0;
}

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

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

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

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

input:checked + .slider {
    background-color: var(--success-color);
}

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

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

input:disabled + .slider {
    background-color: var(--accent-color);
    cursor: not-allowed;
}

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

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

.settings-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* Responsive styles
-------------------------------------------------- */
@media screen and (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
    }
    
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-buttons button {
        margin: 0.5rem 0;
    }
    
    .settings-content {
        padding: 2rem;
    }
}
