/* 🍪 Cookie Consent Panel Styles */

#cookie-consent-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    z-index: 10000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 -4px 40px rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(26, 111, 214, 0.2);
    transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#cookie-consent-banner.visible {
    bottom: 0;
}

.cookie-consent-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 25px 30px;
    display: flex;
    align-items: center;
    gap: 25px;
}

.cookie-icon {
    font-size: 48px;
    flex-shrink: 0;
    animation: cookieBounce 2s infinite;
}

@keyframes cookieBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.cookie-text {
    flex: 1;
}

.cookie-text h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 700;
    color: #1a6fd6;
}

.cookie-text p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-buttons .btn {
    white-space: nowrap;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
}

.cookie-buttons .btn.text {
    background: transparent;
    border: none;
    color: #1a6fd6;
    text-decoration: underline;
}

/* Cookie Settings Modal */
#cookie-settings-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#cookie-settings-modal.visible {
    opacity: 1;
}

.cookie-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
}

.cookie-modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.cookie-modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #1a6fd6 0%, #53d8f7 100%);
}

.cookie-modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.cookie-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 24px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.cookie-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.cookie-modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

.cookie-category {
    margin-bottom: 25px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.cookie-category:last-child {
    margin-bottom: 0;
}

.cookie-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.cookie-category h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.cookie-category p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    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: #cbd5e1;
    transition: 0.3s;
    border-radius: 26px;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background: linear-gradient(135deg, #1a6fd6 0%, #53d8f7 100%);
}

.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-modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    background: #f9fafb;
}

.cookie-modal-footer .btn {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }
    
    .cookie-icon {
        font-size: 36px;
    }
    
    .cookie-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .cookie-buttons .btn {
        width: 100%;
    }
    
    .cookie-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding: 20px;
    }
    
    .cookie-modal-footer {
        flex-direction: column;
    }
    
    .cookie-modal-footer .btn {
        width: 100%;
    }
}
