/**
 * Consent & Onboarding CSS
 * Styles for ConsentModal and onboarding components
 */

/* Consent Modal Overlay */
.consent-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    padding: 20px;
}

/* Consent Modal */
.consent-modal {
    background: linear-gradient(180deg, #2A2A2A 0%, #222222 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--ct-radius);
    padding: 32px;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 16px 64px rgba(0, 0, 0, 0.6);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.consent-modal.confirm-decline {
    border-color: rgba(248, 113, 113, 0.3);
}

/* Icon */
.consent-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 16px;
}

.consent-icon.warning {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Headers */
.consent-modal h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin: 0 0 8px 0;
}

.consent-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 24px 0;
}

/* Sections */
.consent-section {
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--ct-radius);
    padding: 16px;
    margin-bottom: 16px;
}

.consent-section h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 12px 0;
}

.consent-section.opt-in {
    border: 1px solid rgba(74, 222, 128, 0.2);
    background: rgba(74, 222, 128, 0.05);
}

.consent-section.opt-out {
    border: 1px solid rgba(251, 191, 36, 0.2);
    background: rgba(251, 191, 36, 0.05);
}

.consent-section.privacy {
    border: 1px solid rgba(96, 165, 250, 0.2);
    background: rgba(96, 165, 250, 0.05);
}

/* Benefits List */
.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.benefits-list li:last-child {
    border-bottom: none;
}

.benefits-list .icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.benefits-list div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.benefits-list strong {
    color: #fff;
    font-size: 0.9rem;
}

.benefits-list span:not(.icon) {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

/* Privacy List */
.privacy-list {
    list-style: none;
    padding: 0;
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.privacy-list li {
    padding: 4px 0;
}

.privacy-note {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

/* Warning Box (decline confirmation) */
.consent-warning-box {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.3);
    border-radius: var(--ct-radius);
    padding: 20px;
    margin: 20px 0;
}

.warning-title {
    color: #f87171;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.warning-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.warning-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.warning-list .icon {
    font-size: 1rem;
}

/* Critical Warning */
.consent-critical-warning {
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.2) 0%, rgba(251, 191, 36, 0.2) 100%);
    border: 2px solid rgba(248, 113, 113, 0.4);
    border-radius: var(--ct-radius);
    padding: 16px;
    margin: 20px 0;
}

.consent-critical-warning p {
    margin: 0;
    color: #fff;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Buttons */
.consent-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.consent-btn {
    padding: 16px 24px;
    border: none;
    border-radius: var(--ct-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.consent-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.consent-btn.primary {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    color: #fff;
}

.consent-btn.primary:hover:not(:disabled) {
    box-shadow: 0 4px 16px rgba(74, 222, 128, 0.25);
    filter: brightness(1.1);
}

.consent-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.consent-btn.secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.15);
}

.consent-btn.danger {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    color: #fff;
}

.consent-btn.danger:hover:not(:disabled) {
    box-shadow: 0 4px 16px rgba(248, 113, 113, 0.25);
    filter: brightness(1.1);
}

/* Skip button */
.consent-skip {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 12px;
    margin-top: 8px;
}

.consent-skip:hover {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 480px) {
    .consent-modal {
        padding: 24px 20px;
        border-radius: var(--ct-radius);
    }

    .consent-modal h2 {
        font-size: 1.25rem;
    }

    .benefits-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .benefits-list .icon {
        font-size: 1rem;
    }
}
