/* Cookie Management CSS - GDPR Compliance and Cookie Consent */

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 25px;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.2);
}

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

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.cookie-text {
    flex: 1;
}

.cookie-content h3 {
    color: white;
    margin-bottom: 10px;
    font-size: 1.3rem;
    font-weight: 600;
}

.cookie-content p {
    color: #bdc3c7;
    margin-bottom: 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: #2ecc71;
    color: white;
}

.cookie-btn-accept:hover {
    background: #27ae60;
    transform: translateY(-2px);
}

.cookie-btn-necessary {
    background: #95a5a6;
    color: white;
}

.cookie-btn-necessary:hover {
    background: #7f8c8d;
    transform: translateY(-2px);
}

.cookie-btn-customize {
    background: transparent;
    color: #3498db;
    border: 2px solid #3498db;
}

.cookie-btn-customize:hover {
    background: #3498db;
    color: white;
}

.cookie-btn-link {
    background: transparent;
    color: #bdc3c7;
    border: 1px solid #bdc3c7;
    font-size: 0.85rem;
}

.cookie-btn-link:hover {
    background: #bdc3c7;
    color: #2c3e50;
}

/* Cookie Modal */
.cookie-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.cookie-modal.show {
    display: flex;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.modal-title {
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    color: #bdc3c7;
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f0f0f0;
    color: #2c3e50;
}

.modal-body {
    margin-bottom: 30px;
}

.cookie-intro {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #3498db;
}

.cookie-intro p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Cookie Categories */
.cookie-category {
    margin-bottom: 30px;
    padding: 25px;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    transition: box-shadow 0.3s ease;
}

.cookie-category:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.cookie-category h3 {
    color: #2c3e50;
    margin-bottom: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.cookie-category p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.cookie-details {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.cookie-details h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1rem;
}

.cookie-details ul {
    margin-bottom: 0;
    padding-left: 20px;
}

.cookie-details li {
    color: #666;
    margin-bottom: 5px;
    line-height: 1.5;
}

/* 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: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

input:checked + .slider {
    background-color: #2ecc71;
}

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

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

input:disabled + .slider:before {
    opacity: 0.7;
}

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

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

/* Always On Badge */
.always-on {
    background: #e8f5e8;
    color: #2ecc71;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 10px;
}

/* Modal Footer */
.modal-footer {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.modal-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.modal-btn-primary {
    background: #3498db;
    color: white;
}

.modal-btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.modal-btn-secondary {
    background: #95a5a6;
    color: white;
}

.modal-btn-secondary:hover {
    background: #7f8c8d;
    transform: translateY(-2px);
}

.modal-btn-success {
    background: #2ecc71;
    color: white;
}

.modal-btn-success:hover {
    background: #27ae60;
    transform: translateY(-2px);
}

/* Consent Status */
.consent-status {
    position: fixed;
    top: 100px;
    right: 20px;
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    z-index: 1000;
    display: none;
}

.consent-status.show {
    display: block;
}

.consent-status h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1rem;
}

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

/* Cookie Settings Button */
.cookie-settings-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #3498db;
    color: white;
    padding: 12px 16px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    display: none;
}

.cookie-settings-btn.show {
    display: block;
}

.cookie-settings-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .modal-content {
        padding: 25px;
        margin: 20px;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .modal-footer {
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-btn {
        width: 100%;
    }
    
    .cookie-category {
        padding: 20px;
    }
    
    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .switch {
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 20px 15px;
    }
    
    .cookie-content h3 {
        font-size: 1.1rem;
    }
    
    .cookie-content p {
        font-size: 0.9rem;
    }
    
    .cookie-btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
    
    .modal-content {
        padding: 20px;
        margin: 15px;
    }
    
    .cookie-settings-btn {
        bottom: 15px;
        right: 15px;
        padding: 10px 14px;
        font-size: 0.8rem;
    }
}

/* Animation for showing/hiding elements */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

.fade-out {
    animation: fadeOut 0.3s ease-out;
}

/* Cookie Policy Link in Footer */
.cookie-policy-link {
    color: #bdc3c7;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.cookie-policy-link:hover {
    color: #3498db;
}

/* Legal Page Enhancements */
.legal-highlight {
    background: #f0f8ff;
    border-left: 4px solid #3498db;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 5px;
}

.legal-highlight h4 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.legal-highlight p {
    color: #555;
    margin-bottom: 0;
    line-height: 1.6;
}