/* =============================================
   REPORT.CSS — Bug report button + modal styles
   Sofia's Game Arcade
   ============================================= */

/* ---- Floating bug button ---- */
.report-btn {
    position: fixed;
    top: var(--space-md);
    right: var(--space-md);
    z-index: 50;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--border-subtle);
    background: var(--bg-card);
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-fast),
                border-color var(--transition-fast),
                box-shadow var(--transition-fast);
}

.report-btn:hover {
    transform: scale(1.1);
    border-color: var(--accent-blue);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.report-btn:active {
    transform: scale(0.95);
}

/* ---- Badge ---- */
.report-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    background: var(--accent-red);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    animation: badgePop 0.3s ease;
}

@keyframes badgePop {
    0%   { transform: scale(0); }
    70%  { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* ---- Overlay ---- */
.report-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.report-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* ---- Modal ---- */
.report-modal {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    width: 90%;
    max-width: 380px;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.25s ease;
}

.report-overlay.open .report-modal {
    transform: translateY(0) scale(1);
}

.report-header {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

.report-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
    line-height: 1.5;
}

/* ---- Textarea ---- */
.report-text {
    width: 100%;
    padding: 0.7rem;
    background: transparent;
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.95rem;
    resize: vertical;
    outline: none;
    transition: border-color var(--transition-med);
    box-sizing: border-box;
}

.report-text:focus {
    border-color: var(--accent-blue);
}

.report-text::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

/* ---- Action buttons ---- */
.report-actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.report-cancel-btn,
.report-send-btn {
    padding: 0.55rem 1.2rem;
    border-radius: var(--radius-full);
    border: none;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform var(--transition-fast),
                background var(--transition-fast);
}

.report-cancel-btn {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}

.report-cancel-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    color: var(--text-primary);
}

.report-send-btn {
    background: var(--accent-blue);
    color: #fff;
}

.report-send-btn:hover {
    background: #38bdf8;
    transform: scale(1.04);
}

.report-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ---- View reports button (Sofia only) ---- */
.report-view-btn {
    position: fixed;
    top: var(--space-md);
    right: calc(var(--space-md) + 52px);
    z-index: 50;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--border-subtle);
    background: var(--bg-card);
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform var(--transition-fast),
                border-color var(--transition-fast),
                box-shadow var(--transition-fast);
}

.report-view-btn:hover {
    transform: scale(1.1);
    border-color: var(--accent-green);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.report-view-btn:active {
    transform: scale(0.95);
}

/* ---- Thanks message ---- */
.report-thanks {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-green);
    padding: var(--space-lg) 0;
}

/* ---- Responsive ---- */
@media (max-width: 420px) {
    .report-btn {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }

    .report-modal {
        padding: var(--space-lg);
    }
}
