/**
 * Trevor Decker News — feedback prompt styles
 */
.tdn-feedback-card {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    width: 320px;
    max-width: calc(100vw - 32px);
    background: #ffffff;
    color: #1f2933;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.08);
    padding: 18px 20px 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 15px;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.tdn-feedback-card.tdn-feedback-visible {
    opacity: 1;
    transform: translateY(0);
}

.tdn-feedback-close {
    position: absolute;
    top: 6px;
    right: 8px;
    background: transparent;
    border: 0;
    font-size: 22px;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
}

.tdn-feedback-close:hover,
.tdn-feedback-close:focus {
    color: #1f2933;
    background: #f3f4f6;
    outline: none;
}

.tdn-feedback-question {
    margin: 0 0 14px;
    font-weight: 600;
    padding-right: 16px;
}

.tdn-feedback-actions {
    display: flex;
    gap: 8px;
}

.tdn-feedback-btn {
    flex: 1;
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.tdn-feedback-btn-yes {
    background: #2563eb;
    color: #ffffff;
}

.tdn-feedback-btn-yes:hover,
.tdn-feedback-btn-yes:focus {
    background: #1d4ed8;
    outline: none;
}

.tdn-feedback-btn-no {
    background: #f3f4f6;
    color: #1f2933;
    border-color: #d1d5db;
}

.tdn-feedback-btn-no:hover,
.tdn-feedback-btn-no:focus {
    background: #e5e7eb;
    outline: none;
}

.tdn-feedback-btn:active {
    transform: translateY(1px);
}

.tdn-feedback-thanks {
    margin: 0;
    text-align: center;
    font-weight: 600;
    color: #047857;
}

@media (prefers-color-scheme: dark) {
    .tdn-feedback-card {
        background: #1f2937;
        color: #f3f4f6;
    }
    .tdn-feedback-close {
        color: #9ca3af;
    }
    .tdn-feedback-close:hover {
        background: #374151;
        color: #f3f4f6;
    }
    .tdn-feedback-btn-no {
        background: #374151;
        color: #f3f4f6;
        border-color: #4b5563;
    }
    .tdn-feedback-btn-no:hover {
        background: #4b5563;
    }
}

/* Test-mode visual treatment so the admin can tell test vs real. */
.tdn-feedback-card-test {
    border: 2px solid #f59e0b;
    box-shadow: 0 12px 32px rgba(245, 158, 11, 0.25), 0 2px 6px rgba(0, 0, 0, 0.08);
}

.tdn-feedback-test-badge-floating {
    position: absolute;
    top: -10px;
    left: 16px;
    background: #f59e0b;
    color: #1f2933;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}
