/* public/css/app.css — BlockRadio EJS app-specific styles */

/* ── Toast animation ───────────────────────────────────────────── */
@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Global player bar ─────────────────────────────────────────── */
.global-player-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  background: rgba(8, 11, 26, 0.97);
  border-top: 1px solid rgba(0, 229, 255, 0.12);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 24px;
  min-height: 64px;
  transition: all 0.3s ease;
}
.global-player-bar.gp-pos-top-left {
  top: 85px;
  left: 20px;
  bottom: auto;
  right: auto;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
  min-width: 320px;
  max-width: 440px;
}
.global-player-bar.gp-pos-top-right {
  top: 85px;
  right: 20px;
  bottom: auto;
  left: auto;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
  min-width: 320px;
  max-width: 440px;
}
.global-player-bar.gp-pos-bottom-left {
  bottom: 20px;
  left: 20px;
  top: auto;
  right: auto;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
  min-width: 320px;
  max-width: 440px;
}
.global-player-bar.gp-pos-bottom-right {
  bottom: 20px;
  right: 20px;
  top: auto;
  left: auto;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
  min-width: 320px;
  max-width: 440px;
}

@media (max-width: 768px) {
  .global-player-bar,
  .global-player-bar.gp-pos-bottom-right,
  .global-player-bar.gp-pos-bottom-left,
  .global-player-bar.gp-pos-top-right,
  .global-player-bar.gp-pos-top-left {
    position: fixed !important;
    bottom: 12px !important;
    left: 12px !important;
    right: 12px !important;
    top: auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: calc(100vw - 24px) !important;
    margin: 0 auto !important;
    padding: 8px 12px !important;
    min-height: 56px !important;
    border-radius: 16px !important;
    background: rgba(14, 14, 18, 0.96) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(139, 92, 246, 0.15) !important;
    z-index: 9000 !important;
    gap: 10px !important;
  }

  .gp-volume-wrap {
    display: none !important;
  }

  .gp-art {
    width: 40px !important;
    height: 40px !important;
    border-radius: 10px !important;
  }

  .gp-title {
    font-size: 0.82rem !important;
    font-weight: 700 !important;
  }

  .gp-artist {
    font-size: 0.72rem !important;
    color: var(--text-secondary) !important;
  }

  .gp-controls {
    gap: 8px !important;
  }

  .gp-play-btn {
    width: 38px !important;
    height: 38px !important;
    background: #00E5FF !important;
    color: #000 !important;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.35) !important;
  }

  .gp-fullscreen {
    width: 32px !important;
    height: 32px !important;
  }
}
.gp-art {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.gp-art img { width: 100%; height: 100%; object-fit: cover; }
.gp-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.gp-title {
  font-size: .85rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gp-artist {
  font-size: .75rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gp-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.gp-play-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cyan);
  border: none;
  cursor: pointer;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s;
}
.gp-play-btn:hover { transform: scale(1.05); }
.gp-volume-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
}
.gp-fullscreen {
  width: 32px;
  height: 32px;
  text-decoration: none;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}
.gp-fullscreen:hover { border-color: var(--cyan); color: var(--cyan); }

/* ── Volume slider ─────────────────────────────────────────────── */
.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 80px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(to right, var(--cyan) var(--v, 80%), var(--border) var(--v, 80%));
  cursor: pointer;
  outline: none;
}
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 0 0 2px var(--cyan);
}
.vol-pct {
  font-size: .72rem;
  color: var(--text-muted);
  min-width: 28px;
}

/* ── Forms ─────────────────────────────────────────────────────── */
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  padding: 12px 14px;
  font-size: .9rem;
  outline: none;
  transition: border-color .2s;
  font-family: inherit;
}
.form-control:focus { border-color: var(--cyan); }
.form-control::placeholder { color: var(--text-muted); }
.alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: .85rem;
  font-weight: 500;
  margin-bottom: 18px;
}
.alert-error { background: rgba(255,82,82,.06); border: 1px solid rgba(255,82,82,.2); color: #ff5252; }
.alert-success { background: rgba(0,229,255,.06); border: 1px solid rgba(0,229,255,.2); color: var(--cyan); }
.alert-info { background: rgba(157,78,255,.06); border: 1px solid rgba(157,78,255,.2); color: var(--purple); }

/* ── Auth pages ────────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px 40px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
}
.auth-logo {
  text-align: center;
  margin-bottom: 28px;
}
.auth-logo img { height: 50px; object-fit: contain; }
.auth-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  text-align: center;
  margin: 0 0 6px;
}
.auth-sub {
  font-size: .85rem;
  color: var(--text-secondary);
  text-align: center;
  margin: 0 0 28px;
}
.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: .82rem;
  color: var(--text-secondary);
}
.auth-footer a { color: var(--cyan); text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }

/* ── Team page ─────────────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  transition: border-color .2s, transform .2s;
}
.team-card:hover { border-color: rgba(0,229,255,.3); transform: translateY(-4px); }
.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-secondary);
  margin: 0 auto 14px;
  overflow: hidden;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--cyan);
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-name { font-weight: 700; font-size: 1rem; color: var(--text-primary); margin-bottom: 4px; }
.team-role { font-size: .78rem; color: var(--cyan); font-weight: 600; }
.team-bio { font-size: .8rem; color: var(--text-secondary); margin-top: 8px; line-height: 1.5; }

/* ── Articles grid ─────────────────────────────────────────────── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  display: block;
  transition: border-color .2s, transform .2s;
}
.article-card:hover { border-color: rgba(0,229,255,.25); transform: translateY(-3px); }
.article-thumb {
  position: relative;
  padding-bottom: 56.25%;
  background: var(--bg-secondary);
  overflow: hidden;
}
.article-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.article-body { padding: 18px; }
.article-category { font-size: .7rem; color: var(--cyan); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; display: block; }
.article-title { font-size: .95rem; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.article-date { font-size: .72rem; color: var(--text-muted); }

/* ── Page content (custom pages) ───────────────────────────────── */
.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px 80px;
}
.page-content h1 { font-size: 2rem; font-weight: 900; margin-bottom: 12px; }
.page-content h2 { font-size: 1.4rem; font-weight: 700; margin: 28px 0 12px; }
.page-content p { color: var(--text-secondary); line-height: 1.8; margin-bottom: 14px; }
.page-content a { color: var(--cyan); text-decoration: none; }
.page-content a:hover { text-decoration: underline; }

/* ── 404 / error pages ─────────────────────────────────────────── */
.error-page {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}
.error-code {
  font-size: clamp(5rem, 15vw, 9rem);
  font-weight: 900;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}
.error-msg { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 28px; }

/* ── Maintenance ───────────────────────────────────────────────── */
.maintenance-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}
.maintenance-icon {
  width: 80px;
  height: 80px;
  background: rgba(139,92,246,.08);
  border: 1px solid rgba(139,92,246,.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--cyan);
}

/* ── Responsive body padding (for mini player) ─────────────────── */
body.has-player { padding-bottom: 96px; }

/* ── Section layout utility ────────────────────────────────────── */
.section-header {
  margin-bottom: 32px;
}
.section-header h1 {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-primary);
  margin: 0 0 6px;
}
.section-header p {
  color: var(--text-secondary);
  font-size: .9rem;
}
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Mouse Trail Particles (définies dans globals.css) ────────── */

