/* Cookie Consent Banner - GDPR Compliant */
.cookie-consent-overlay {
    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;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cookie-consent-overlay.show {
    opacity: 1;
    visibility: visible;
}

.cookie-consent-banner {
    background: white;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

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

.cookie-consent-header {
    background: var(--primary-color);
    color: white;
    padding: 20px;
    border-radius: 12px 12px 0 0;
}

.cookie-consent-header h3 {
    margin: 0;
    font-size: 1.4em;
    font-weight: bold;
}

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

.cookie-consent-body p {
    margin: 0 0 15px 0;
    line-height: 1.6;
    color: #333;
}

.cookie-categories {
    margin: 20px 0;
}

.cookie-category {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

.cookie-category-header {
    background: #f8f9fa;
    padding: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
}

.cookie-category-header:hover {
    background: #e9ecef;
}

.cookie-category-title {
    font-weight: bold;
    color: #333;
}

.cookie-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 25px;
    background: #ccc;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s;
}

.toggle-switch.active {
    background: var(--primary-color);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 21px;
    height: 21px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.toggle-switch.active::after {
    transform: translateX(25px);
}

.cookie-category-content {
    padding: 15px;
    display: none;
    background: white;
}

.cookie-category.expanded .cookie-category-content {
    display: block;
}

.cookie-category-content p {
    margin: 0;
    font-size: 0.9em;
    color: #666;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 120px;
}

.cookie-btn-accept {
    background: #28a745;
    color: white;
}

.cookie-btn-accept:hover {
    background: #218838;
}

.cookie-btn-reject {
    background: #dc3545;
    color: white;
}

.cookie-btn-reject:hover {
    background: #c82333;
}

.cookie-btn-settings {
    background: #6c757d;
    color: white;
}

.cookie-btn-settings:hover {
    background: #5a6268;
}

.cookie-btn-save {
    background: var(--primary-color);
    color: white;
}

.cookie-btn-save:hover {
    background: var(--accent-color);
}

.cookie-policy-link {
    color: var(--primary-color);
    text-decoration: underline;
}

.cookie-policy-link:hover {
    color: var(--accent-color);
}

/* Settings View */
.cookie-settings-view {
    display: none;
}

.cookie-settings-view.active {
    display: block;
}

.cookie-main-view.hide {
    display: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cookie-consent-banner {
        width: 95%;
        margin: 10px;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .cookie-consent-header h3 {
        font-size: 1.2em;
    }
}

/* Cookie Preferences Link in Footer */
.cookie-preferences-link {
    color: var(--primary-color);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9em;
}

.cookie-preferences-link:hover {
    color: var(--accent-color);
} 