/*
 * Shared look for the Feed and Following pages, matching the main app:
 * Poppins, #f0f2f5 background, one white centred card, YouTube-red accents.
 * (static/styles.css can't be reused: it restyles every <button> and centres
 * <body>, which would fight these pages' own controls.)
 */
:root {
  --red: #cc0000;
  --red-dark: #a30000;
  --red-tint: #fdecea;
  --red-line: #f0b8b8;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e0e0e0;
  --panel: #f9f9f9;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Poppins', 'Roboto', sans-serif;
  background: #f0f2f5;
  color: var(--ink);
  min-height: 100vh;
  padding: 24px 12px 60px;
}

.shell {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

/* ── Top bar: brand + tabs ── */
.shell-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 2px 0 14px;
  border-bottom: 1px solid #e8e8e8;
  margin-bottom: 20px;
}
.shell-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.shell-brand img { width: 32px; height: 32px; border-radius: 6px; object-fit: cover; }
.shell-brand span { font-size: 18px; font-weight: 700; color: #e00; letter-spacing: -0.3px; }
.shell-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab-pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600;
  color: #333; background: #f5f5f5; border: 1px solid #ddd;
  border-radius: 20px; padding: 6px 14px; text-decoration: none; white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.tab-pill:hover { background: var(--red-tint); border-color: var(--red-line); color: var(--red); }
/* Current page */
.tab-pill.active, .tab-pill.active:hover {
  background: var(--red); border-color: var(--red); color: #fff;
}

/* ── Page heading ── */
.page-head { margin-bottom: 18px; }
.page-head h1 { font-size: 22px; font-weight: 700; line-height: 1.25; margin-bottom: 4px; }
.page-head p { font-size: 14px; color: #666; max-width: 560px; }

/* ── Panels, buttons, inputs ── */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
}
.card h2 { font-size: 1rem; font-weight: 600; margin-bottom: 10px; }

.primary-btn {
  display: inline-block;
  background: linear-gradient(135deg, #FF0000, #D40000, #A80000);
  color: #fff; border: none; border-radius: 8px; padding: 10px 20px;
  font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none;
  font-family: inherit; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background 0.2s ease, transform 0.1s ease;
}
.primary-btn:hover { background: linear-gradient(135deg, #FF6666, #FF4D4D, #FF1A1A); }
.primary-btn:disabled { opacity: 0.6; cursor: default; }

.small-note { font-size: 13px; color: var(--muted); margin-top: 10px; }
.hidden { display: none !important; }

@media (max-width: 520px) {
  body { padding: 12px 8px 40px; }
  .shell { padding: 14px; }
}
