/* Pokeforecast Beta — modal + floating button styles.
 *
 * Navy/gold to match the site (OC247's palette of #1c2340 + #d4a820 is
 * familiar to you; we use a similar pairing here so it reads as Pokeforecast
 * branding rather than generic plugin chrome).
 *
 * Everything is namespaced with .pfbeta-* so it can't collide with theme
 * styles. The modal layer sits at z-index 99999 to stay above sticky
 * headers, cookie banners, and chat widgets a typical site might run.
 */

.pfbeta-modal[hidden] { display: none !important; }

.pfbeta-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.pfbeta-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(28, 35, 64, 0.55);
    backdrop-filter: blur(2px);
    animation: pfbeta-fade-in .18s ease;
}

.pfbeta-modal-card {
    position: relative;
    max-width: 480px;
    width: 100%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    padding: 32px 28px 24px;
    animation: pfbeta-pop-in .22s cubic-bezier(.18, .89, .32, 1.28);
    max-height: calc(100vh - 32px);
    overflow-y: auto;
}

.pfbeta-modal-card-form { max-width: 520px; }

.pfbeta-modal-x {
    position: absolute;
    top: 10px;
    right: 14px;
    background: transparent;
    border: 0;
    font-size: 28px;
    line-height: 1;
    color: #888;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
}
.pfbeta-modal-x:hover { background: #f0f0f0; color: #333; }

.pfbeta-modal-badge {
    display: inline-block;
    background: #d4a820;
    color: #1c2340;
    font-weight: 700;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 4px;
    letter-spacing: 1.2px;
    margin-bottom: 14px;
}

.pfbeta-modal-title {
    margin: 0 0 12px;
    color: #1c2340;
    font-size: 22px;
    line-height: 1.25;
}

.pfbeta-modal-body {
    color: #333;
    line-height: 1.55;
    font-size: 15px;
    margin-bottom: 22px;
}

.pfbeta-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

/* Buttons */
.pfbeta-btn {
    border: 0;
    border-radius: 6px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease, transform .05s ease;
    font-family: inherit;
}
.pfbeta-btn:active { transform: translateY(1px); }
.pfbeta-btn-primary {
    background: #1c2340;
    color: #fff;
}
.pfbeta-btn-primary:hover { background: #2a3358; }
.pfbeta-btn-secondary {
    background: #eee;
    color: #333;
}
.pfbeta-btn-secondary:hover { background: #ddd; }

/* Floating bug-report button */
.pfbeta-fab {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 99998;
    background: #1c2340;
    color: #fff;
    border: 2px solid #d4a820;
    border-radius: 28px;
    padding: 10px 18px 10px 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    transition: background .15s ease, transform .1s ease;
}
.pfbeta-fab:hover {
    background: #2a3358;
    transform: translateY(-1px);
}
.pfbeta-fab-icon { font-size: 18px; line-height: 1; }
.pfbeta-fab-label { white-space: nowrap; }

/* Compact on small screens — icon-only */
@media (max-width: 480px) {
    .pfbeta-fab { padding: 12px; border-radius: 50%; }
    .pfbeta-fab-label { display: none; }
}

/* Form */
.pfbeta-form-intro {
    color: #555;
    margin: 0 0 18px;
    line-height: 1.45;
}

.pfbeta-field {
    display: block;
    margin-bottom: 14px;
}
.pfbeta-field-label {
    display: block;
    font-weight: 600;
    color: #1c2340;
    font-size: 13px;
    margin-bottom: 6px;
}
.pfbeta-required { color: #c00; }
.pfbeta-field-hint {
    color: #888;
    font-weight: 400;
    font-size: 12px;
}
.pfbeta-field textarea,
.pfbeta-field input[type="email"],
.pfbeta-field input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
}
.pfbeta-field input[type="file"] {
    font-size: 13px;
    width: 100%;
}
.pfbeta-field textarea:focus,
.pfbeta-field input:focus {
    outline: 0;
    border-color: #d4a820;
    box-shadow: 0 0 0 3px rgba(212, 168, 32, 0.15);
}
.pfbeta-field textarea { resize: vertical; min-height: 100px; }

.pfbeta-form-meta {
    color: #888;
    font-size: 12px;
    margin: 4px 0 16px;
}
.pfbeta-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
}
.pfbeta-form-status {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    display: none;
}
.pfbeta-form-status.success {
    background: #e6f5e6;
    color: #1a6b1a;
    border: 1px solid #b6e0b6;
    display: block;
}
.pfbeta-form-status.error {
    background: #ffe5e5;
    color: #8a1a1a;
    border: 1px solid #f0b6b6;
    display: block;
}

@keyframes pfbeta-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes pfbeta-pop-in {
    from { opacity: 0; transform: scale(0.94); }
    to   { opacity: 1; transform: scale(1); }
}
