/* Auto-extracted from page-weekly-report.php (P1-5) */
/* ===== Weekly Report Page Styles ===== */
.abq-wrpt-container {
    max-width: var(--abq-content-narrow);
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Loading & Error */
.abq-wrpt-loading {
    text-align: center;
    padding: 4rem;
    color: var(--abq-text-muted, #888);
}
.abq-wrpt-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid #e5e7eb;
    border-top-color: var(--abq-primary, #22c55e);
    border-radius: 50%;
    animation: wrpt-spin 0.8s linear infinite;
}
@keyframes wrpt-spin { to { transform: rotate(360deg); } }
.abq-wrpt-error {
    text-align: center;
    padding: 3rem;
    color: #dc2626;
}

/* Header */
.abq-wrpt-header {
    text-align: center;
    margin-bottom: 2rem;
}
.abq-wrpt-week {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--abq-primary, #22c55e);
    margin-bottom: 0.5rem;
}
.abq-wrpt-summary {
    font-size: 1rem;
    color: var(--abq-text-muted, #888);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* AI Summary */
.abq-wrpt-ai {
    text-align: center;
    margin: 1.5rem 0;
}
.abq-wrpt-ai-btn {
    border: none;
    border-radius: 14px;
    padding: 0.8rem 1.8rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, opacity 0.15s;
    font-family: inherit;
}
.abq-wrpt-ai-btn:hover {
    transform: translateY(-1px);
    opacity: 0.92;
}
.abq-wrpt-ai-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.abq-wrpt-ai-card {
    margin-top: 1rem;
    text-align: left;
    background: linear-gradient(135deg, #fafaff, #f5f3ff);
    border: 1px solid #e0e7ff;
    border-radius: 18px;
    padding: 1.3rem 1.5rem;
}
.abq-wrpt-ai-loading {
    text-align: center;
    color: #6366f1;
    font-weight: 600;
}
.abq-wrpt-ai-summary {
    font-size: 1rem;
    line-height: 1.75;
    color: #1f2937;
    margin-bottom: 0.9rem;
}
.abq-wrpt-ai-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    font-size: 0.92rem;
    line-height: 1.6;
    color: #374151;
}
.abq-wrpt-ai-hl {
    color: #166534;
}
.abq-wrpt-ai-sg {
    color: #92400e;
}

/* Stats Grid */
.abq-wrpt-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 2rem;
}
@media (max-width: 900px) {
    .abq-wrpt-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .abq-wrpt-grid { grid-template-columns: 1fr; }
}
.abq-wrpt-card {
    background: #fff;
    border-radius: 18px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05), 0 1px 3px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.abq-wrpt-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.abq-wrpt-card-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}
.abq-wrpt-card-value {
    font-size: 1.8rem;
    font-weight: 900;
    color: #1f2937;
    line-height: 1.1;
}
.abq-wrpt-card-label {
    font-size: 0.78rem;
    color: #6b7280;
    font-weight: 600;
    margin-top: 4px;
}

/* Section title */
.abq-wrpt-section-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1f2937;
    margin: 2rem 0 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Quest list */
.abq-wrpt-quest-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.abq-wrpt-quest-item {
    background: #fff;
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.04);
    gap: 12px;
    flex-wrap: wrap;
}
.abq-wrpt-quest-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 200px;
}
.abq-wrpt-quest-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #dbeafe;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.abq-wrpt-quest-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}
.abq-wrpt-quest-date {
    font-size: 0.78rem;
    color: #9ca3af;
}
.abq-wrpt-quest-score {
    background: #f0fdf4;
    color: #16a34a;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

/* Weak areas */
.abq-wrpt-weak {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}
.abq-wrpt-weak-tag {
    background: #fef2f2;
    color: #dc2626;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Fluency stats */
.abq-wrpt-fluency {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.abq-wrpt-fluency-item {
    background: #fff;
    border-radius: 14px;
    padding: 16px 20px;
    flex: 1;
    min-width: 140px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.04);
}
.abq-wrpt-fluency-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: #8b5cf6;
}
.abq-wrpt-fluency-label {
    font-size: 0.78rem;
    color: #6b7280;
    font-weight: 600;
    margin-top: 4px;
}

/* Empty state */
.abq-wrpt-empty {
    text-align: center;
    padding: 4rem 2rem;
}
.abq-wrpt-empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}
.abq-wrpt-empty h2 {
    color: var(--abq-text, #333);
    margin-bottom: 0.5rem;
}
.abq-wrpt-empty p {
    color: var(--abq-text-muted, #888);
}

/* Achievements highlight */
.abq-wrpt-highlight {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 18px;
    padding: 20px 24px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid #fbbf24;
}
.abq-wrpt-highlight-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}
.abq-wrpt-highlight-text {
    font-size: 1rem;
    font-weight: 600;
    color: #92400e;
    line-height: 1.5;
}
