/* TU Notifications - Soft Prompt Modal */

:root {
    --tun-primary: #ca4f2e;
    --tun-primary-hover: #b04528;
    --tun-primary-light: rgba(202, 79, 46, 0.1);
    --tun-bg: #ffffff;
    --tun-text: #1F2937;
    --tun-text-muted: #6B7280;
    --tun-text-light: #9CA3AF;
    --tun-border: #E5E7EB;
    --tun-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    --tun-radius: 16px;
    --tun-transition: 0.3s ease;
}

/* Overlay */
.tun-prompt-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--tun-transition), visibility var(--tun-transition);
}

.tun-prompt-overlay--visible {
    opacity: 1;
    visibility: visible;
}

/* Modal */
.tun-prompt {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: calc(100% - 32px);
    max-width: 400px;
    background: var(--tun-bg);
    border-radius: var(--tun-radius);
    box-shadow: var(--tun-shadow);
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--tun-transition), visibility var(--tun-transition), transform var(--tun-transition);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.tun-prompt--visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.tun-prompt__inner {
    padding: 32px 28px 28px;
    text-align: center;
}

/* Icon */
.tun-prompt__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: var(--tun-primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tun-prompt__icon svg {
    width: 32px;
    height: 32px;
}

/* Title */
.tun-prompt__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--tun-text);
    margin: 0 0 12px 0;
    line-height: 1.3;
}

/* Body */
.tun-prompt__body {
    font-size: 15px;
    color: var(--tun-text-muted);
    line-height: 1.6;
    margin: 0 0 24px 0;
}

/* Buttons */
.tun-prompt__buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tun-prompt__btn {
    width: 100%;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--tun-transition);
    border: none;
    -webkit-tap-highlight-color: transparent;
}

.tun-prompt__btn--primary {
    background: var(--tun-primary);
    color: white;
}

.tun-prompt__btn--primary:hover {
    background: var(--tun-primary-hover);
    transform: translateY(-1px);
}

.tun-prompt__btn--primary:active {
    transform: translateY(0);
}

.tun-prompt__btn--secondary {
    background: transparent;
    color: var(--tun-text-muted);
    border: 1px solid var(--tun-border);
}

.tun-prompt__btn--secondary:hover {
    background: var(--tun-bg);
    border-color: var(--tun-text-light);
    color: var(--tun-text);
}

/* Footer */
.tun-prompt__footer {
    font-size: 12px;
    color: var(--tun-text-light);
    margin-top: 16px;
}

/* Close button */
.tun-prompt__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--tun-text-light);
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--tun-transition);
    -webkit-tap-highlight-color: transparent;
}

.tun-prompt__close:hover {
    background: var(--tun-border);
    color: var(--tun-text);
}

.tun-prompt__close svg {
    width: 18px;
    height: 18px;
}

/* State visibility */
.tun-prompt__state--hidden {
    display: none !important;
}

/* Spinner for loading state */
.tun-prompt__spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--tun-border);
    border-top-color: var(--tun-primary);
    border-radius: 50%;
    animation: tunPromptSpin 0.8s linear infinite;
}

@keyframes tunPromptSpin {
    to { transform: rotate(360deg); }
}

/* Success icon */
.tun-prompt__icon--success {
    background: #d1fae5;
}

.tun-prompt__icon--success svg {
    width: 36px;
    height: 36px;
}

/* Blocked icon */
.tun-prompt__icon--blocked {
    background: #fef3c7;
}

/* Text link style */
.tun-prompt__link {
    display: inline-block;
    margin-top: 16px;
    font-size: 14px;
    color: var(--tun-text-muted);
    text-decoration: none;
    cursor: pointer;
    transition: color var(--tun-transition);
    -webkit-tap-highlight-color: transparent;
}

.tun-prompt__link:hover {
    color: var(--tun-text);
    text-decoration: underline;
}

/* Single button layout */
.tun-prompt__buttons--single {
    justify-content: center;
}

.tun-prompt__buttons--single .tun-prompt__btn {
    min-width: 120px;
}

/* Desktop - side by side buttons */
@media (min-width: 400px) {
    .tun-prompt__buttons {
        flex-direction: row;
        gap: 12px;
    }

    .tun-prompt__btn {
        flex: 1;
    }

    .tun-prompt__btn--primary {
        order: 2;
    }

    .tun-prompt__btn--secondary {
        order: 1;
    }
}
