/* Cookie Consent Banner Styles */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
    animation: slideUp 0.5s ease-out forwards;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
    }
}

.cookie-consent-banner.hidden {
    display: none;
}

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

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

.cookie-consent-text h3 {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    font-weight: 600;
}

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

.cookie-consent-text a {
    color: white;
    text-decoration: underline;
    font-weight: 500;
}

.cookie-consent-text a:hover {
    opacity: 0.8;
}

.cookie-consent-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-consent-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-consent-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cookie-consent-btn.accept-all {
    background: white;
    color: #667eea;
}

.cookie-consent-btn.accept-all:hover {
    background: #f0f0f0;
}

.cookie-consent-btn.reject-all {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.cookie-consent-btn.reject-all:hover {
    background: rgba(255, 255, 255, 0.3);
}

.cookie-consent-btn.customize {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cookie-consent-btn.customize:hover {
    background: rgba(255, 255, 255, 0.1);
}

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

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

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

.cookie-settings-header {
    padding: 24px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-settings-header h2 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
}

.cookie-settings-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.cookie-settings-close:hover {
    background: #f0f0f0;
}

.cookie-settings-body {
    padding: 24px;
}

.cookie-category {
    margin-bottom: 24px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

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

.cookie-category-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.1rem;
}

.cookie-toggle {
    position: relative;
    width: 50px;
    height: 26px;
}

.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: 26px;
}

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

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: #667eea;
}

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

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

.cookie-category-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.cookie-list {
    margin-top: 12px;
}

.cookie-list-title {
    font-weight: 600;
    color: #555;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.cookie-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cookie-list li {
    padding: 6px 0;
    color: #666;
    font-size: 0.85rem;
    display: flex;
    align-items: flex-start;
}

.cookie-list li:before {
    content: "•";
    color: #667eea;
    font-weight: bold;
    margin-right: 8px;
}

.cookie-settings-footer {
    padding: 24px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.cookie-settings-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-settings-btn.save {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.cookie-settings-btn.save:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.cookie-settings-btn.cancel {
    background: #f0f0f0;
    color: #333;
}

.cookie-settings-btn.cancel:hover {
    background: #e0e0e0;
}

/* Cookie Settings Link in Footer */
.cookie-settings-link {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-settings-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.cookie-settings-link i {
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cookie-consent-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .cookie-consent-btn {
        width: 100%;
        text-align: center;
    }
    
    .cookie-settings-content {
        margin: 10px;
        max-height: 95vh;
    }
    
    .cookie-settings-footer {
        flex-direction: column;
    }
    
    .cookie-settings-btn {
        width: 100%;
    }
    
    .cookie-settings-link {
        bottom: 10px;
        left: 10px;
        font-size: 0.8rem;
        padding: 8px 12px;
    }
}
