/**
 * Cookie Consent Popup Styles
 * GDPR Compliant Cookie Banner
 */

#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1A3C73 0%, #247BA0 100%);
    color: white;
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    border-top: 3px solid #FFC300;
}

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

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

.cookie-banner-text {
    flex: 1;
    min-width: 300px;
}

.cookie-banner-text h4 {
    color: #FFC300;
    margin-bottom: 8px;
    font-size: 1.1rem;
    font-weight: 600;
}

.cookie-banner-text p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.95;
}

.cookie-banner-text a {
    color: #FFC300;
    text-decoration: underline;
    font-weight: 500;
}

.cookie-banner-text a:hover {
    color: #FFE066;
    text-decoration: none;
}

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

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cookie-btn-accept {
    background-color: #FFC300;
    color: #1A3C73;
}

.cookie-btn-accept:hover {
    background-color: #FFE066;
    transform: translateY(-1px);
}

.cookie-btn-decline {
    background-color: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

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

.cookie-btn-settings {
    background-color: transparent;
    color: white;
    border: 2px solid rgba(255, 195, 0, 0.4);
    font-size: 0.85rem;
    padding: 8px 16px;
}

.cookie-btn-settings:hover {
    background-color: rgba(255, 195, 0, 0.1);
    border-color: #FFC300;
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

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

.cookie-settings-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cookie-settings-header {
    padding: 25px 30px 20px;
    border-bottom: 1px solid #E5E5E5;
    background: linear-gradient(135deg, #1A3C73 0%, #247BA0 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.cookie-settings-header h3 {
    margin: 0;
    font-size: 1.4rem;
    color: #FFC300;
}

.cookie-settings-header p {
    margin: 8px 0 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

.cookie-settings-body {
    padding: 25px 30px;
}

.cookie-category {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #F0F0F0;
}

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

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

.cookie-category h4 {
    margin: 0;
    color: #1A3C73;
    font-size: 1.1rem;
}

.cookie-category p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

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

.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: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: #247BA0;
}

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

.cookie-toggle.disabled .cookie-toggle-slider {
    background-color: #28a745;
    cursor: not-allowed;
}

.cookie-toggle.disabled .cookie-toggle-slider:before {
    transform: translateX(26px);
}

.cookie-settings-footer {
    padding: 20px 30px;
    border-top: 1px solid #E5E5E5;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    background-color: #F8F9FA;
    border-radius: 0 0 12px 12px;
}

.cookie-settings-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
    opacity: 0.8;
    line-height: 1;
}

.cookie-settings-close:hover {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .cookie-banner-actions {
        justify-content: center;
        width: 100%;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: 120px;
    }
    
    .cookie-settings-modal {
        padding: 10px;
    }
    
    .cookie-settings-content {
        margin: 0;
    }
    
    .cookie-settings-header,
    .cookie-settings-body,
    .cookie-settings-footer {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .cookie-banner-actions {
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
    }
}
