/**
 * Consent Banner & Modal Styles
 * Banner pentru cookies, geolocation, notifications
 */

/* Consent Banner */
.consent-banner {
    position: fixed;
    bottom: -500px;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 99999;
    transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 3px solid var(--primary-color);
}

.consent-banner.show {
    bottom: 0;
}

.consent-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.consent-icon {
    font-size: 3rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.consent-text {
    flex: 1;
    min-width: 300px;
}

.consent-text h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    color: var(--text-color);
}

.consent-text p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.consent-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-consent-reject {
    background: #6b7280;
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-consent-reject:hover {
    background: #4b5563;
    transform: translateY(-2px);
}

.btn-consent-customize {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-consent-customize:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-consent-accept {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-consent-accept:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Consent Modal */
.consent-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}

.consent-modal.show {
    opacity: 1;
}

.consent-modal-content {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.consent-modal.show .consent-modal-content {
    transform: translateY(0);
}

.consent-modal-header {
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.consent-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.close-modal {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.3);
}

.consent-modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.consent-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    background: #f9fafb;
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.consent-option:hover {
    background: #f3f4f6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.consent-option-info {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex: 1;
}

.consent-option-info i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.2rem;
}

.consent-option-info strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-color);
    font-size: 1rem;
}

.consent-option-info p {
    margin: 0;
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 26px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--secondary-color);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

.switch.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.switch.disabled .slider {
    cursor: not-allowed;
    background-color: var(--primary-color);
}

.consent-modal-footer {
    padding: 1.5rem 2rem;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.consent-modal-footer .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .consent-content {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem 1rem;
    }
    
    .consent-icon {
        font-size: 2.5rem;
    }
    
    .consent-text {
        min-width: auto;
        text-align: center;
    }
    
    .consent-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .consent-buttons button {
        width: 100%;
        justify-content: center;
    }
    
    .consent-modal-content {
        width: 95%;
    }
    
    .consent-modal-header {
        padding: 1rem 1.5rem;
    }
    
    .consent-modal-header h2 {
        font-size: 1.2rem;
    }
    
    .consent-modal-body {
        padding: 1.5rem 1rem;
    }
    
    .consent-option {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .consent-modal-footer {
        flex-direction: column;
        padding: 1rem 1.5rem;
    }
    
    .consent-modal-footer .btn {
        width: 100%;
        justify-content: center;
    }
}
