/* Weekly MindCare Report — Styles */

#weeklyReportSection {
    padding: 0 16px 6px;
    animation: wrFadeIn 0.5s ease both;
}

@keyframes wrFadeIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.wr-section-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--text-secondary, #64748B);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    font-family: 'Outfit', sans-serif;
}

.wr-section-heading i {
    color: #22c55e;
    font-size: 0.8rem;
}

.weekly-report-card {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid #f1f5f9;
    padding: 22px 20px 18px;
    box-shadow:
        0 4px 16px -4px rgba(0, 0, 0, 0.06),
        0 2px 6px -2px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    animation: wrCardIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes wrCardIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    60%  { transform: translateY(-3px) scale(1.008); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Green accent top bar */
.weekly-report-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #86efac, #22c55e, #16a34a);
    border-radius: 24px 24px 0 0;
}

body.theme-charcoal .weekly-report-card {
    background: #1e1e1e;
    border-color: #2d2d2d;
}

.wr-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.wr-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(34,197,94,0.12), rgba(22,163,74,0.18));
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(34,197,94,0.15);
}

body.theme-charcoal .wr-card-icon {
    background: rgba(34,197,94,0.15);
}

.wr-card-heading {
    flex: 1;
    min-width: 0;
}

.wr-card-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    color: #16a34a;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-family: 'Outfit', sans-serif;
}

.wr-card-label i {
    font-size: 0.72rem;
}

body.theme-charcoal .wr-card-label {
    color: #86efac;
}

.wr-card-date {
    font-size: 0.72rem;
    font-weight: 500;
    color: #94a3b8;
    margin-top: 3px;
    font-family: 'Outfit', sans-serif;
}

body.theme-charcoal .wr-card-date {
    color: #64748b;
}

.wr-refresh-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: none;
    background: rgba(34,197,94,0.1);
    color: #16a34a;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.22s ease;
    -webkit-tap-highlight-color: transparent;
}

.wr-refresh-btn:hover {
    background: rgba(34,197,94,0.2);
    transform: rotate(20deg);
}

.wr-refresh-btn:active {
    transform: scale(0.9);
}

.wr-refresh-btn.wr-spinning i {
    animation: wrSpin 0.7s linear infinite;
}

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

body.theme-charcoal .wr-refresh-btn {
    background: rgba(34,197,94,0.12);
    color: #86efac;
}

.wr-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

@media (max-width: 500px) {
    .wr-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.wr-stat-pill {
    background: #f8fafc;
    border-radius: 16px;
    padding: 14px 10px 12px;
    text-align: center;
    border: 1px solid #f1f5f9;
    transition: transform 0.2s ease;
}

.wr-stat-pill:active {
    transform: scale(0.97);
}

body.theme-charcoal .wr-stat-pill {
    background: #252525;
    border-color: #333333;
}

.wr-stat-top {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

.wr-stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.wr-stat-value {
    font-size: 0.85rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.1;
    margin-bottom: 3px;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
}

body.theme-charcoal .wr-stat-value {
    color: #f1f5f9;
}

.wr-stat-label {
    font-size: 0.62rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Outfit', sans-serif;
}

.wr-details-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.wr-detail-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Outfit', sans-serif;
}

.wr-detail-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
}

body.theme-charcoal .wr-detail-label {
    color: #94a3b8;
}

.wr-detail-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 100px;
    font-family: 'Outfit', sans-serif;
}

.wr-ai-suggestion {
    background: linear-gradient(135deg, rgba(139,92,246,0.05) 0%, rgba(99,102,241,0.08) 100%);
    border-left: 3px solid #8b5cf6;
    border-radius: 0 14px 14px 0;
    padding: 14px 16px;
    margin-bottom: 14px;
    animation: wrFadeIn 0.4s ease 0.3s both;
}

body.theme-charcoal .wr-ai-suggestion {
    background: linear-gradient(135deg, rgba(139,92,246,0.08), rgba(99,102,241,0.12));
    border-left-color: #a594f9;
}

.wr-ai-suggestion-header {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.7rem;
    font-weight: 800;
    color: #7c3aed;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-family: 'Outfit', sans-serif;
}

.wr-ai-suggestion-header i {
    font-size: 0.75rem;
}

body.theme-charcoal .wr-ai-suggestion-header {
    color: #a594f9;
}

.wr-ai-quote {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    line-height: 1.65;
    font-style: italic;
    font-family: 'Outfit', sans-serif;
    border: none;
    padding: 0;
}

body.theme-charcoal .wr-ai-quote {
    color: #cbd5e1;
}

.wr-card-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.68rem;
    color: #94a3b8;
    font-weight: 500;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    font-family: 'Outfit', sans-serif;
}

body.theme-charcoal .wr-card-footer {
    border-top-color: #2d2d2d;
    color: #64748b;
}

.weekly-report-empty {
    text-align: center;
}

.wr-empty-body {
    padding: 24px 0 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.wr-empty-icon {
    font-size: 2.2rem;
    color: #cbd5e1;
    animation: wrEmptyPulse 2.5s ease-in-out infinite;
}

@keyframes wrEmptyPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50%       { opacity: 0.45; transform: scale(1.06); }
}

body.theme-charcoal .wr-empty-icon {
    color: #475569;
}

.wr-empty-text {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.65;
    max-width: 340px;
    margin: 0;
    font-family: 'Outfit', sans-serif;
}

body.theme-charcoal .wr-empty-text {
    color: #94a3b8;
}

.wr-empty-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 11px 22px;
    border-radius: 14px;
    background: linear-gradient(135deg, #86efac, #22c55e);
    color: #064e3b;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    box-shadow: 0 4px 14px rgba(34,197,94,0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.wr-empty-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34,197,94,0.38);
}

.wr-empty-cta:active {
    transform: scale(0.97);
}

.wr-skeleton {
    background: #ffffff !important;
    pointer-events: none;
    min-height: 220px;
}

body.theme-charcoal .wr-skeleton {
    background: #1e1e1e !important;
}

/* Shared skeleton shimmer */
@keyframes wrShimmer {
    0%   { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}

.wr-skel-circle,
.wr-skel-line,
.wr-skel-pill,
.wr-skel-block {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 800px 100%;
    animation: wrShimmer 1.5s infinite linear;
    border-radius: 8px;
}

body.theme-charcoal .wr-skel-circle,
body.theme-charcoal .wr-skel-line,
body.theme-charcoal .wr-skel-pill,
body.theme-charcoal .wr-skel-block {
    background: linear-gradient(90deg, #252525 25%, #2d2d2d 50%, #252525 75%);
    background-size: 800px 100%;
}

.wr-skeleton-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.wr-skel-circle {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    flex-shrink: 0;
}

.wr-skel-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wr-skel-line {
    height: 12px;
    border-radius: 6px;
}

.wr-skeleton-pills {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

@media (max-width: 500px) {
    .wr-skeleton-pills {
        grid-template-columns: repeat(2, 1fr);
    }
}

.wr-skel-pill {
    height: 90px;
    border-radius: 16px;
}

.wr-skel-block {
    height: 72px;
    border-radius: 14px;
    width: 100%;
}

@media (min-width: 768px) {
    #weeklyReportSection {
        padding: 0 20px 8px;
    }

    .weekly-report-card {
        padding: 26px 24px 20px;
    }

    .wr-stat-value {
        font-size: 0.95rem;
    }

    .wr-ai-quote {
        font-size: 0.92rem;
    }
}

@media (min-width: 1024px) {
    .wr-stats-grid {
        gap: 12px;
    }
}
