/* 
 * Cookie Consent and Modal Styles for DysAnnover Website
 * Author: DysAnnover Developer Team
 * Version: 1.0
 */

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 1.5rem;
    display: none;
}

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

.cookie-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.cookie-content p {
    margin-bottom: 0;
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.cookie-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.cookie-btn-primary {
    background-color: #7d6c56;
    color: white;
}

.cookie-btn-primary:hover {
    background-color: #6a5a47;
}

.cookie-btn-secondary {
    background-color: transparent;
    color: #7d6c56;
    border: 1px solid #7d6c56;
}

.cookie-btn-secondary:hover {
    background-color: rgba(125, 108, 86, 0.1);
}

.cookie-btn-tertiary {
    background-color: #f4f4f4;
    color: #333;
}

.cookie-btn-tertiary:hover {
    background-color: #e0e0e0;
}

/* ===== COOKIE SETTINGS MODAL ===== */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.cookie-modal-content {
    background-color: white;
    border-radius: 4px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

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

.cookie-modal-header h3 {
    margin-bottom: 0;
    font-size: 1.3rem;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #7d6c56;
}

.cookie-modal-body {
    padding: 1.5rem;
}

.cookie-option {
    margin-bottom: 1.5rem;
}

.cookie-option:last-child {
    margin-bottom: 0;
}

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

.cookie-option-header h4 {
    margin-bottom: 0;
    font-size: 1.1rem;
}

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

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

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

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .cookie-slider {
    background-color: #7d6c56;
}

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

.cookie-option p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.cookie-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e8e2d9;
    text-align: right;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
    
    .cookie-btn {
        width: 100%;
    }
    
    .cookie-modal-content {
        max-width: 90%;
    }
}

@media (max-width: 576px) {
    .cookie-option-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}
