/* =====================================================
   Weekly Report Popup — popup.css  (v1.2)
   Matches: clean light design with photo left panel
   ===================================================== */

/* ── Overlay ─────────────────────────────────────── */
.wrp-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}
.wrp-overlay.wrp-open {
    display: flex;
    animation: wrpFadeIn .2s ease both;
}
@keyframes wrpFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── Modal shell ─────────────────────────────────── */
.wrp-modal {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    max-width: 820px;
    max-height: 95vh;
    overflow-y: auto;
    box-shadow: 0 24px 60px rgba(0,0,0,.25), 0 4px 16px rgba(0,0,0,.1);
    animation: wrpSlideUp .28s cubic-bezier(.22,.61,.36,1) both;
}
@keyframes wrpSlideUp {
    from { transform: translateY(20px) scale(.98); opacity: 0; }
    to   { transform: translateY(0)    scale(1);   opacity: 1; }
}

/* ── Close button ────────────────────────────────── */
.wrp-close {
    position: absolute;
    top: 14px;
    right: 16px;
    z-index: 10;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.9);
    color: #555;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, color .15s;
    box-shadow: 0 1px 4px rgba(0,0,0,.12);
    font-family: sans-serif;
    padding: 0;
}
.wrp-close:hover {
    background: #1a1a1a;
    color: #fff;
}

/* ── Two-column layout ───────────────────────────── */
.wrp-modal-inner {
    display: flex;
    min-height: 460px;
}

/* ── Left: photo panel ───────────────────────────── */
.wrp-image-panel {
    width: 280px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    background: #1a1200;
}
.wrp-image-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Fallback graphic when no real image is used */
.wrp-img-graphic {
    width: 100%;
    height: 100%;
    min-height: 460px;
    background: linear-gradient(160deg, #2b1f06 0%, #1a1200 55%, #0d0900 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    position: relative;
}
.wrp-img-graphic::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 40% 30%, rgba(201,152,42,.20) 0%, transparent 65%);
}
.wrp-chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 90px;
    justify-content: center;
    position: relative;
    z-index: 1;
    margin-bottom: 10px;
}
.wrp-chart-bars span {
    width: 16px;
    border-radius: 3px 3px 0 0;
    display: block;
    animation: wrpBarGrow .55s ease both;
}
.wrp-chart-bars span:nth-child(odd)  { background: linear-gradient(180deg, #e8b84b, #c9982a); }
.wrp-chart-bars span:nth-child(even) { background: linear-gradient(180deg, #8b7a5a, #5a4e32); }
.wrp-chart-bars span:nth-child(1) { animation-delay: .05s; }
.wrp-chart-bars span:nth-child(2) { animation-delay: .12s; }
.wrp-chart-bars span:nth-child(3) { animation-delay: .18s; }
.wrp-chart-bars span:nth-child(4) { animation-delay: .24s; }
.wrp-chart-bars span:nth-child(5) { animation-delay: .30s; }
.wrp-chart-bars span:nth-child(6) { animation-delay: .36s; }
@keyframes wrpBarGrow {
    from { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
    to   { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
}
.wrp-chart-line {
    width: 80%;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, rgba(201,152,42,.5), transparent);
    border-radius: 2px;
    position: relative;
    z-index: 1;
    margin-bottom: 14px;
}
.wrp-img-label {
    font-family: Georgia, serif;
    font-size: 9px;
    letter-spacing: 2.5px;
    color: rgba(201,152,42,.55);
    text-transform: uppercase;
    position: relative;
    z-index: 1;
    text-align: center;
}

/* ── Right: content panel ────────────────────────── */
.wrp-content-panel {
    flex: 1;
    padding: 32px 36px 28px;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    min-width: 0;
}

/* Badge */
.wrp-badge-pill {
    display: inline-block;
    background: #b8860b;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    padding: 5px 14px;
    border-radius: 999px;
    letter-spacing: .3px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin-bottom: 16px;
    width: fit-content;
}

/* Title */
.wrp-title {
    font-family: "Roboto", sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #171D26;
    line-height: 1.18;
    margin: 0 0 10px;
    letter-spacing: -.3px;
}

/* Subtitle */
.wrp-subtitle {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #6b7280;
    margin: 0 0 20px;
}

/* Bullets */
.wrp-bullets {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.wrp-bullets li {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    color: #1f2937;
    line-height: 1.45;
    display: flex;
    align-items: center;
    gap: 0;
}

/* Form fields */
.wrp-form-group {
    margin-bottom: 10px;
}
.wrp-form-group input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 16px;
    border: 1.5px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #111827;
    background: #f9fafb;
    transition: border-color .18s, box-shadow .18s, background .18s;
    outline: none;
}
.wrp-form-group input:focus {
    border-color: #b8860b;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(184,134,11,.14);
}
.wrp-form-group input::placeholder {
    color: #9ca3af;
}

/* Submit button */
.wrp-submit-btn {
    width: 100%;
    margin-top: 2px;
    padding: 12px 24px;
    background: #b8860b;
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    cursor: pointer;
    letter-spacing: .1px;
    transition: opacity .15s, transform .15s;
}
.wrp-submit-btn:hover    { opacity: .88; }
.wrp-submit-btn:active   { transform: scale(.99); }
.wrp-submit-btn:disabled { opacity: .65; cursor: not-allowed; }

/* Message */
.wrp-msg {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 13px;
    margin-top: 8px;
    min-height: 16px;
    text-align: center;
    border-radius: 5px;
    transition: all .2s;
}
.wrp-msg.wrp-success { color: #15803d; background: #dcfce7; padding: 7px 12px; }
.wrp-msg.wrp-error   { color: #b91c1c; background: #fee2e2; padding: 7px 12px; }

/* Footer note */
.wrp-footer-note {
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 11px;
    color: #9ca3af;
    margin: 8px 0 0;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 620px) {
    .wrp-image-panel {
        display: none;
    }
    .wrp-content-panel {
        padding: 28px 22px 22px;
    }
    .wrp-title {
        font-size: 22px;
    }
    .wrp-modal {
        border-radius: 10px;
    }
}

@media (max-width: 380px) {
    .wrp-content-panel { padding: 22px 16px 18px; }
    .wrp-title          { font-size: 19px; }
}
