/* ========================
   Newsletter Issue Page
   newsletter.rayo.gg
   ======================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,600;12..96,700;12..96,800&display=swap');

.issue-nav {
    font-family: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #111112;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.issue-nav a { font-size: 13px; color: #888; text-decoration: none; transition: color 0.15s; }
.issue-nav a:hover { color: #16EAE3; }
.issue-nav .issue-num { font-size: 12px; color: #555; font-family: 'DM Mono', 'Courier New', monospace; }

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #e8e8e8;
    background-color: #181819;
    padding: 20px;
}
.container { max-width: 600px; margin: 0 auto; background-color: #181819; }
.header { background: linear-gradient(135deg, #1e1e1f 0%, #22262e 100%); color: #e8e8e8; padding: 40px 30px; text-align: center; border-radius: 8px 8px 0 0; }
.header h1 { font-size: 28px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.5px; }
.header p { font-size: 14px; color: #999999; font-weight: 400; }
.content { padding: 40px 30px; background-color: #181819; }
.greeting { font-size: 16px; color: #e8e8e8; margin-bottom: 30px; line-height: 1.7; }
.section { margin-bottom: 40px; }
.section-title { font-size: 20px; font-weight: 700; color: #ffffff; margin-bottom: 20px; letter-spacing: -0.3px; }
.section-title .emoji { margin-right: 8px; }
.highlight-box { background-color: rgba(255,255,255,0.04); border-left: 4px solid #16EAE3; padding: 24px; border-radius: 4px; margin-bottom: 20px; }
.highlight-box p { color: #cccccc; font-size: 15px; line-height: 1.7; margin-bottom: 0; }
.project-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09); border-radius: 8px; padding: 20px; margin-bottom: 16px; display: flex; align-items: flex-start; gap: 16px; }
.project-logo { width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; object-fit: cover; border: 1px solid rgba(255,255,255,0.1); }
.project-content { flex: 1; }
.project-card:hover { border-color: #16EAE3; box-shadow: 0 2px 8px rgba(22, 234, 227, 0.15); }
.project-name { font-size: 18px; font-weight: 700; color: #ffffff; margin-bottom: 8px; letter-spacing: -0.3px; }
.project-description { font-size: 14px; color: #999999; margin-bottom: 12px; line-height: 1.6; }
.project-link { display: inline-block; color: #16EAE3; text-decoration: none; font-size: 14px; font-weight: 600; }
.contributor-card { background: linear-gradient(135deg, #181819 0%, #2a2a2b 100%); color: white; border-radius: 8px; padding: 32px; text-align: center; }
.contributor-photo { width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 16px; object-fit: cover; border: 3px solid rgba(255,255,255,0.2); display: block; }
.contributor-name { font-size: 24px; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.5px; }
.contributor-stats { font-size: 14px; color: #999999; margin-bottom: 20px; }
.contributor-link { display: inline-block; background: #F52D9E; color: white; padding: 12px 24px; border-radius: 6px; text-decoration: none; font-weight: 600; font-size: 14px; margin-top: 8px; }
.divider { height: 1px; background: rgba(255,255,255,0.08); margin: 30px 0; }
.kpi-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 20px; }
.kpi-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09); border-radius: 8px; padding: 20px; text-align: center; }
.kpi-card.pink { background: linear-gradient(135deg, rgba(245,45,158,0.08) 0%, rgba(245,45,158,0.12) 100%); border-color: rgba(245,45,158,0.2); }
.kpi-label { font-size: 12px; color: #888; font-weight: 600; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.kpi-value { font-size: clamp(20px, 6vw, 28px); font-weight: 700; color: #ffffff; margin-bottom: 6px; letter-spacing: -0.5px; }
.kpi-growth { font-size: 14px; font-weight: 600; color: #16EAE3; margin-bottom: 4px; }
.kpi-prev { font-size: 11px; color: #999; }
.chart-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09); border-radius: 8px; padding: 20px; margin-bottom: 20px; }
.chart-card-title { font-size: 14px; font-weight: 600; color: #cccccc; margin-bottom: 16px; }
.chart-wrap { position: relative; height: 220px; }
.channel-item { margin-bottom: 20px; }
.ch-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.ch-name { font-size: 14px; font-weight: 600; color: #cccccc; }
.ch-meta { font-size: 12px; color: #888; display: flex; gap: 12px; align-items: center; }
.ch-meta .cur { font-weight: 600; color: #ffffff; }
.ch-meta .growth { color: #16EAE3; font-weight: 600; }
.ch-track { height: 8px; background: rgba(255,255,255,0.1); border-radius: 4px; overflow: hidden; }
.ch-fill { height: 100%; background: #16EAE3; border-radius: 4px; }
.country-table { width: 100%; border-collapse: collapse; }
.country-table th { text-align: left; font-size: 12px; font-weight: 600; color: #888; padding: 12px 8px; border-bottom: 2px solid rgba(255,255,255,0.1); text-transform: uppercase; letter-spacing: 0.5px; }
.country-table td { padding: 14px 8px; font-size: 14px; color: #cccccc; border-bottom: 1px solid rgba(255,255,255,0.06); }
.country-flag-name { display: flex; align-items: center; gap: 8px; }
.mini-bar { height: 4px; background: #16EAE3; border-radius: 2px; display: inline-block; }
.growth-td { color: #16EAE3; font-weight: 600; }
@media only screen and (max-width: 600px) {
    body { padding: 10px; }
    .content { padding: 30px 20px; }
    .header { padding: 30px 20px; }
    .header h1 { font-size: 24px; }
    .kpi-strip { grid-template-columns: 1fr; }
}