/* Cookie Banner and Modal Styles */

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    border-top: 3px solid var(--primary-color);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-banner-text h3 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.cookie-banner-text p {
    color: var(--gray-dark);
    margin: 0;
    font-size: 0.95rem;
}

.cookie-banner-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

/* Cookie Buttons */
.btn-cookie {
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    white-space: nowrap;
}

.btn-cookie-accept {
    background: linear-gradient(135deg, #EC4899, #F472B6);
    color: white;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

.btn-cookie-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.4);
}

.btn-cookie-reject {
    background: transparent;
    color: var(--gray-dark);
    border: 2px solid var(--gray-medium);
}

.btn-cookie-reject:hover {
    background: var(--gray-light);
    border-color: var(--gray-dark);
}

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

.btn-cookie-settings:hover {
    background: #7C3AED;
    transform: translateY(-2px);
}

.btn-cookie-primary {
    background: linear-gradient(135deg, #EC4899, #F472B6);
    color: white;
}

.btn-cookie-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

.btn-cookie-secondary {
    background: transparent;
    color: var(--gray-dark);
    border: 2px solid var(--gray-light);
}

.btn-cookie-secondary:hover {
    background: var(--gray-light);
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cookie-modal.show {
    opacity: 1;
}

.cookie-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 700px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.cookie-modal.show .cookie-modal-content {
    transform: scale(1);
}

.cookie-modal-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--gray-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-header h2 {
    color: var(--primary-color);
    margin: 0;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--gray-medium);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cookie-modal-close:hover {
    background: var(--gray-light);
    color: var(--dark-color);
}

.cookie-modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.cookie-info {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(236, 72, 153, 0.05));
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.cookie-info p {
    margin: 0;
    color: var(--gray-dark);
    line-height: 1.6;
}

.cookie-category {
    background: var(--gray-light);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.cookie-category-info h3 {
    color: var(--dark-color);
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.cookie-category-info p {
    color: var(--gray-dark);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.cookie-details p {
    color: var(--gray-medium);
    font-size: 0.85rem;
    margin: 0;
}

/* Toggle Switch */
.cookie-toggle {
    flex-shrink: 0;
}

.cookie-toggle input[type="checkbox"] {
    display: none;
}

.toggle-label {
    display: block;
    width: 50px;
    height: 26px;
    background: var(--gray-medium);
    border-radius: 13px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s ease;
}

.toggle-label.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.toggle-label::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input[type="checkbox"]:checked + .toggle-label {
    background: linear-gradient(135deg, #EC4899, #F472B6);
}

input[type="checkbox"]:checked + .toggle-label::after {
    transform: translateX(24px);
}

.cookie-modal-footer {
    padding: 1rem 2rem 2rem;
    border-top: 1px solid var(--gray-light);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Cookie Notification */
.cookie-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: linear-gradient(135deg, #EC4899, #F472B6);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(236, 72, 153, 0.3);
    z-index: 10002;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    font-weight: 500;
}

.cookie-notification.show {
    transform: translateX(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .cookie-banner-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .btn-cookie {
        width: 100%;
    }
    
    .cookie-modal-content {
        margin: 1rem;
        max-height: 90vh;
    }
    
    .cookie-modal-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .cookie-modal-body {
        padding: 1.5rem;
    }
    
    .cookie-category-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cookie-toggle {
        align-self: flex-start;
    }
    
    .cookie-modal-footer {
        flex-direction: column;
        padding: 1rem 1.5rem 1.5rem;
    }
    
    .btn-cookie-secondary,
    .btn-cookie-primary {
        width: 100%;
    }
    
    .cookie-notification {
        right: 10px;
        left: 10px;
        transform: translateY(-100px);
    }
    
    .cookie-notification.show {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .cookie-banner-text h3 {
        font-size: 1.1rem;
    }
    
    .cookie-banner-text p {
        font-size: 0.9rem;
    }
    
    .btn-cookie {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}