/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2B373B 0%, #1a2529 100%);
    color: white;
    padding: 20px 0;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(0);
    transition: all 0.3s ease;
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.cookie-banner-text {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.cookie-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.cookie-message h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #60C5D1;
}

.cookie-message p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.9;
}

.cookie-link {
    color: #60C5D1;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s ease;
}

.cookie-link:hover {
    color: #4db5c1;
}

.cookie-banner-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.cookie-btn-primary {
    background: #60C5D1;
    color: white;
}

.cookie-btn-primary:hover {
    background: #4db5c1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(96, 197, 209, 0.3);
}

.cookie-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Cookie Settings Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.cookie-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.cookie-modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.cookie-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.cookie-modal-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #2d3748;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #718096;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color 0.3s ease;
}

.cookie-modal-close:hover {
    color: #2d3748;
}

.cookie-modal-body {
    padding: 24px;
}

.cookie-info {
    margin-bottom: 24px;
}

.cookie-info p {
    margin: 0;
    color: #4a5568;
    line-height: 1.6;
}

.cookie-categories {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cookie-category {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    transition: border-color 0.3s ease;
}

.cookie-category:hover {
    border-color: #cbd5e0;
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.category-info h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
}

.category-info p {
    margin: 0;
    font-size: 14px;
    color: #718096;
    line-height: 1.5;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e0;
    transition: 0.4s;
    border-radius: 28px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .slider {
    background-color: #60C5D1;
}

input:focus + .slider {
    box-shadow: 0 0 0 3px rgba(96, 197, 209, 0.1);
}

input:checked + .slider:before {
    transform: translateX(22px);
}

input:disabled + .slider {
    background-color: #48bb78;
    cursor: not-allowed;
}

input:disabled + .slider:before {
    transform: translateX(22px);
}

.cookie-modal-footer {
    padding: 20px 24px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 0 0 16px 16px;
}

.cookie-modal-footer .cookie-btn {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    font-size: 16px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .cookie-banner-text {
        flex-direction: column;
        gap: 12px;
    }
    
    .cookie-icon {
        font-size: 28px;
    }
    
    .cookie-message h4 {
        font-size: 16px;
    }
    
    .cookie-message p {
        font-size: 13px;
    }
    
    .cookie-banner-actions {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-btn {
        flex: 1;
        justify-content: center;
    }
    
    .cookie-modal-content {
        width: 95%;
        margin: 20px;
        max-height: 90vh;
    }
    
    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .switch {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 16px 0;
    }
    
    .cookie-banner-content {
        padding: 0 16px;
        gap: 16px;
    }
    
    .cookie-message h4 {
        font-size: 15px;
    }
    
    .cookie-message p {
        font-size: 12px;
    }
    
    .cookie-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .cookie-modal-header {
        padding: 20px;
    }
    
    .cookie-modal-header h3 {
        font-size: 20px;
    }
    
    .cookie-modal-body {
        padding: 20px;
    }
    
    .cookie-category {
        padding: 16px;
    }
    
    .category-info h4 {
        font-size: 15px;
    }
    
    .category-info p {
        font-size: 13px;
    }
}
