/* user_report.css — User Analysis & Report Pages */

/* Entry page */
.user-page { padding: 28px 32px 40px; max-width: 1200px; }
.user-page-title { font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.user-page-subtitle { font-size: 14px; color: var(--text-secondary); margin-bottom: 32px; }

/* Guild card grid */
.guild-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.guild-report-card {
    padding: 24px;
    border-radius: 16px;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border, #e2e8f0);
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}
.guild-report-card.available:hover {
    border-color: var(--accent-cyan, #00d166);
    box-shadow: 0 8px 24px rgba(0, 209, 102, 0.08);
    transform: translateY(-2px);
}
.guild-report-card.pending { opacity: 0.7; cursor: default; }
.guild-report-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.guild-report-header h3 { font-size: 18px; font-weight: 600; }
.report-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}
.report-badge.ready { background: rgba(0, 209, 102, 0.12); color: #006d32; }
.report-badge.generating { background: rgba(245, 158, 11, 0.12); color: #92400e; }
.guild-report-stats { display: flex; gap: 24px; margin-bottom: 12px; }
.report-stat-value { font-size: 20px; font-weight: 700; display: block; }
.report-stat-label { font-size: 11px; color: var(--text-secondary); text-transform: uppercase; }
.guild-report-desc { font-size: 13px; color: var(--text-secondary); }

/* Report page */
.report-page { padding: 28px 32px 60px; max-width: 1100px; }
.report-header { margin-bottom: 32px; }
.report-header h1 { font-size: 28px; font-weight: 700; margin-bottom: 4px; }
.report-header .report-meta { font-size: 13px; color: var(--text-secondary); }
.report-header .report-meta span { margin-right: 16px; }

/* Stat cards */
.stat-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}
.stat-overview-card {
    padding: 20px;
    border-radius: 14px;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border, #e2e8f0);
    text-align: center;
}
.stat-overview-card .big-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.stat-overview-card .stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* Chart sections */
.chart-section {
    margin-bottom: 36px;
    padding: 24px;
    border-radius: 16px;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border, #e2e8f0);
}
.chart-section h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}
.chart-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}
.chart-container.wide { max-width: 100%; }

/* Insight cards */
.insight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}
.insight-card {
    padding: 16px;
    border-radius: 12px;
    background: rgba(0, 209, 102, 0.04);
    border: 1px solid rgba(0, 209, 102, 0.15);
    font-size: 13px;
    line-height: 1.5;
}
.insight-card strong {
    display: block;
    margin-bottom: 4px;
    color: #006d32;
}

/* User persona cards */
.persona-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
.persona-card {
    padding: 16px;
    border-radius: 12px;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border);
}
.persona-card .persona-icon { font-size: 24px; margin-bottom: 8px; }
.persona-card .persona-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.persona-card .persona-pct { font-size: 20px; font-weight: 700; color: var(--accent-cyan); }
.persona-card .persona-desc { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }

/* Back link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 20px;
}
.back-link:hover { color: var(--accent-cyan); }
