/* bloodthirsty easter egg — OF-inspired joke theme */
:root {
  --of-blue: #00aff0;
  --of-blue-dark: #0091c7;
  --bg: #0a0a0b;
  --bg-card: #141416;
  --bg-elev: #1c1c1f;
  --text: #f5f5f6;
  --muted: #9a9aa0;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: var(--font); }
a { color: var(--of-blue); text-decoration: none; }
button, input, textarea { font: inherit; }
.hidden { display: none !important; }

.bt-app { min-height: 100vh; padding-bottom: 5rem; }

.bt-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 11, 0.92);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
}
.bt-logo {
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text);
  font-size: 1.15rem;
}
.bt-logo span { color: var(--of-blue); }
.bt-joke-pill {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(0, 175, 240, 0.12);
  color: var(--of-blue);
  border: 1px solid rgba(0, 175, 240, 0.35);
}
.bt-top-actions { margin-left: auto; display: flex; gap: 0.5rem; align-items: center; }
.bt-link { color: var(--muted); font-size: 0.9rem; }
.bt-link:hover { color: var(--text); }

.bt-banner {
  height: 220px;
  background: #111;
  position: relative;
  overflow: hidden;
}
.bt-banner-fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(0, 175, 240, 0.45), transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(180, 0, 40, 0.35), transparent 50%),
    linear-gradient(135deg, #0d1520, #1a0a10 60%, #0a0a0b);
}
.bt-banner.has-img .bt-banner-fallback { opacity: 0.25; }
.bt-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bt-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1rem 2rem;
}

.bt-profile {
  margin-top: -56px;
  position: relative;
  z-index: 2;
}
.bt-avatar-wrap {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  border: 4px solid var(--bg);
  background: var(--bg-elev);
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 0 2px rgba(0, 175, 240, 0.4);
}
.bt-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.bt-avatar.show { display: block; }
.bt-avatar-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2.5rem;
  background: linear-gradient(145deg, #1a2430, #2a1018);
}
.bt-avatar-fallback.hidden { display: none; }

.bt-profile-main { padding: 0.85rem 0 0; }
.bt-name-row { display: flex; align-items: center; gap: 0.4rem; }
.bt-name-row h1 { margin: 0; font-size: 1.55rem; letter-spacing: -0.03em; }
.bt-verified {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--of-blue);
  color: #041018;
  font-size: 0.7rem;
  font-weight: 900;
  display: grid;
  place-items: center;
}
.bt-handle { margin: 0.15rem 0; color: var(--muted); }
.bt-tagline { margin: 0.5rem 0 0; font-weight: 600; color: var(--of-blue); }
.bt-bio { margin: 0.5rem 0 0; line-height: 1.5; color: #d8d8dc; white-space: pre-wrap; }

.bt-stats {
  display: flex;
  gap: 1.5rem;
  margin: 1rem 0;
}
.bt-stats div { display: flex; flex-direction: column; }
.bt-stats strong { font-size: 1.15rem; }
.bt-stats span { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }

.bt-cta-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.bt-btn {
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1.15rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.12s ease;
}
.bt-btn:active { transform: scale(0.98); }
.bt-btn-primary { background: var(--of-blue); color: #041018; }
.bt-btn-primary:hover { background: var(--of-blue-dark); }
.bt-btn-primary.subbed { background: var(--bg-elev); color: var(--text); border: 1px solid var(--border); }
.bt-btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.bt-btn-accent {
  background: linear-gradient(135deg, #ff2d55, #00aff0);
  color: #fff;
}
.bt-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.bt-disclaimer {
  margin-top: 0.85rem;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
}

.bt-feed { margin-top: 1.75rem; }
.bt-feed-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}
.bt-feed-head h2 { margin: 0; font-size: 1.1rem; }
.bt-muted { color: var(--muted); font-size: 0.85rem; }

.bt-feed-list { display: flex; flex-direction: column; gap: 1rem; }
.bt-post {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.bt-post-body { padding: 1rem 1rem 0.75rem; white-space: pre-wrap; line-height: 1.45; }
.bt-post-img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
  background: #000;
}
.bt-post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 1rem 0.9rem;
  color: var(--muted);
  font-size: 0.8rem;
}
.bt-post-lock {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  background: rgba(0, 175, 240, 0.15);
  color: var(--of-blue);
  margin-bottom: 0.4rem;
}
.bt-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

/* Editor bar */
.bt-editor-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(10, 10, 11, 0.95);
  border-top: 1px solid rgba(0, 175, 240, 0.35);
  backdrop-filter: blur(12px);
}

/* Modal */
.bt-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.72);
  display: grid;
  place-items: center;
  padding: 1rem;
  overflow: auto;
}
.bt-modal-card {
  width: min(560px, 100%);
  max-height: min(90vh, 900px);
  overflow: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem 1.25rem 1.5rem;
  position: relative;
}
.bt-modal-close {
  position: absolute;
  top: 0.6rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
}
.bt-modal-card h2 { margin: 0 1.5rem 0.35rem 0; }
.bt-modal-card h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 0.95rem;
  color: var(--of-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bt-form {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.bt-form label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}
.bt-form input,
.bt-form textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: 0.55rem 0.7rem;
}
.bt-check {
  flex-direction: row !important;
  align-items: center;
  gap: 0.45rem !important;
  font-weight: 600 !important;
  color: var(--text) !important;
}
.bt-file-label input[type="file"] { margin-top: 0.25rem; font-weight: 500; }
.bt-image-preview {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  max-height: 180px;
}
.bt-image-preview img { width: 100%; max-height: 180px; object-fit: cover; display: block; }

.bt-editor-posts { margin-top: 0.5rem; }
.bt-editor-post {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.bt-editor-post button {
  margin-left: auto;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid rgba(255, 80, 80, 0.4);
  color: #ff8a8a;
  border-radius: 8px;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
}

.bt-toast {
  position: fixed;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  background: #1e1e22;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.65rem 1rem;
  border-radius: 999px;
  z-index: 50;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

@media (max-width: 560px) {
  .bt-banner { height: 160px; }
  .bt-avatar-wrap { width: 88px; height: 88px; margin-top: -44px; }
  .bt-joke-pill { display: none; }
}
