/* Cookie Consent Banner Styles */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1f36 0%, #2d3748 100%);
    color: white;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-consent-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cookie-consent-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    gap: 24px;
}

.cookie-consent-text {
    flex: 1;
    max-width: 70%;
}

.cookie-consent-text h3 {
    margin: 0 0 8px 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
}

.cookie-consent-text p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
}

.cookie-consent-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-consent-actions .btn {
    font-size: 0.875rem;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cookie-consent-actions .btn-primary {
    background: linear-gradient(135deg, #635bff, #4c44db);
    color: white;
}

.cookie-consent-actions .btn-primary:hover {
    background: linear-gradient(135deg, #4c44db, #3730a3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 91, 255, 0.3);
}

.cookie-consent-actions .btn-outline {
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-consent-actions .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.cookie-consent-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-consent-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Cookie Preferences Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-modal.open {
    opacity: 1;
    visibility: visible;
}

.cookie-modal-content {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(30px) scale(0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-modal.open .cookie-modal-content {
    transform: translateY(0) scale(1);
}

.cookie-modal-header {
    padding: 24px;
    border-bottom: 1px solid #e6ebf1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1f36;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #8792a2;
    cursor: pointer;
    padding: 4px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.cookie-modal-close:hover {
    color: #1a1f36;
    background: #f6f9fc;
}

.cookie-modal-body {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
}

.cookie-category {
    padding: 20px 0;
    border-bottom: 1px solid #e6ebf1;
}

.cookie-category:last-child {
    border-bottom: none;
}

.cookie-category-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.cookie-category-info {
    flex: 1;
}

.cookie-category-info h4 {
    margin: 0 0 8px 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1f36;
}

.cookie-category-info p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #425466;
}

/* Cookie Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    cursor: pointer;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccd5e0;
    border-radius: 28px;
    transition: all 0.2s ease;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    border-radius: 50%;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-toggle input:checked + .cookie-slider {
    background-color: #635bff;
}

.cookie-toggle input:checked + .cookie-slider:before {
    transform: translateX(24px);
}

.cookie-toggle input:disabled + .cookie-slider {
    background-color: #e6ebf1;
    cursor: not-allowed;
}

.cookie-toggle input:disabled + .cookie-slider:before {
    background-color: #8792a2;
}

.cookie-modal-footer {
    padding: 24px;
    border-top: 1px solid #e6ebf1;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.cookie-modal-footer .btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.cookie-modal-footer .btn-primary {
    background: linear-gradient(135deg, #635bff, #4c44db);
    color: white;
}

.cookie-modal-footer .btn-primary:hover {
    background: linear-gradient(135deg, #4c44db, #3730a3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 91, 255, 0.3);
}

.cookie-modal-footer .btn-outline {
    background: white;
    color: #425466;
    border: 1px solid #e6ebf1;
}

.cookie-modal-footer .btn-outline:hover {
    background: #f6f9fc;
    border-color: #c7d2fe;
    color: #1a1f36;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .cookie-consent-text {
        max-width: 100%;
    }
    
    .cookie-consent-actions {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .cookie-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding: 20px;
    }
    
    .cookie-category-header {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .cookie-consent-actions .btn {
        min-width: 120px;
    }
    
    .cookie-modal-footer {
        flex-direction: column;
    }
    
    .cookie-modal-footer .btn {
        width: 100%;
    }
}

/* Cookie Settings Link (for header/footer) */
.cookie-settings-link {
    color: #8792a2;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.cookie-settings-link:hover {
    color: #635bff;
    text-decoration: underline;
}

/* Loading state */
.cookie-loading {
    position: relative;
    opacity: 0.7;
    pointer-events: none;
}

.cookie-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #635bff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { 
        transform: rotate(360deg); 
    }
}