/**
 * Cookie Consent Banner Styles
 */

#cookie-consent-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.cookie-consent-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
}

.cookie-consent-modal {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cookie-consent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.cookie-consent-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.cookie-consent-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.cookie-consent-close:hover {
    background: #f5f5f5;
    color: #666;
}

.cookie-consent-body {
    padding: 0 24px 20px;
}

.cookie-consent-body > p {
    margin: 0 0 24px;
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

.cookie-categories {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cookie-category {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    transition: border-color 0.2s ease;
}

.cookie-category:hover {
    border-color: #ccc;
}

.cookie-category-header {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.cookie-category-header input[type="checkbox"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.cookie-category-header input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.cookie-category-title {
    font-size: 16px;
    font-weight: 600;
}

.cookie-category-description {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-left: 30px;
}

.cookie-consent-footer {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
    padding: 20px 24px 24px;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
}

.cookie-consent-footer button {
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    min-width: 120px;
}

.btn-primary {
    background: var(--primary-color, #007bff);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover, #0056b3);
    transform: translateY(-1px);
}

.btn-secondary {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.btn-secondary:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.privacy-link {
    color: var(--primary-color, #007bff);
    text-decoration: none;
    font-size: 14px;
    margin-right: auto;
}

.privacy-link:hover {
    text-decoration: underline;
}

/* Prevent body scroll when banner is open */
body.cookie-banner-open {
    overflow: hidden;
}

/* Mobile responsive */
@media (max-width: 768px) {
    #cookie-consent-banner {
        padding: 10px;
    }
    
    .cookie-consent-modal {
        max-height: 95vh;
    }
    
    .cookie-consent-header {
        padding: 20px 20px 0;
    }
    
    .cookie-consent-body {
        padding: 0 20px 16px;
    }
    
    .cookie-consent-footer {
        padding: 16px 20px 20px;
        flex-direction: column;
        align-items: stretch;
    }
    
    .cookie-consent-footer button {
        width: 100%;
        margin-bottom: 8px;
    }
    
    .privacy-link {
        text-align: center;
        margin: 8px 0 0 0;
    }
    
    .cookie-category-description {
        margin-left: 0;
        margin-top: 8px;
    }
}

/* Cookie preferences button (for settings page) */
.cookie-preferences-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cookie-preferences-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}
