/* ============ VARIÁVEIS ============ */
:root {
  --bg-0: #05060a;
  --bg-1: #0b0d16;
  --bg-2: #12162a;
  --accent: #6d5cff;
  --accent-2: #ff3f8a;
  --accent-3: #22d3ee;
  --text: #eef1ff;
  --text-muted: #9aa3c7;
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.55);
  --radius: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  background: var(--bg-0);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: 140px;
  line-height: 1.6;
  position: relative;
}

/* Fundo animado com blobs */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(109, 92, 255, 0.35), transparent 45%),
    radial-gradient(circle at 85% 10%, rgba(255, 63, 138, 0.28), transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(34, 211, 238, 0.22), transparent 45%),
    linear-gradient(180deg, #05060a 0%, #0b0d16 50%, #05060a 100%);
  z-index: -2;
  animation: bgShift 18s ease infinite;
}
@keyframes bgShift {
  0%, 100% { filter: hue-rotate(0deg); }
  50% { filter: hue-rotate(25deg); }
}

/* Estrelas */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, #fff, transparent),
    radial-gradient(1px 1px at 60% 70%, #fff, transparent),
    radial-gradient(1px 1px at 80% 15%, #fff, transparent),
    radial-gradient(1px 1px at 30% 85%, #fff, transparent);
  opacity: 0.35;
  z-index: -1;
  pointer-events: none;
}

/* ============ GLASSMORPHISM ============ */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: var(--shadow-lg);
}

/* ============ PLAYER FIXO ============ */
.radio-player {
  position: fixed;
  top: 0; left: 0; right: 0;
  width: 100%;
  z-index: 1080;
  padding: 8px 0 0;
  border-radius: 0;
  border-top: 0;
  border-left: 0;
  border-right: 0;
}
.rp-inner {
  min-height: 60px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 6px 20px;
}
.rp-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rp-logo {
  width: 44px; height: 44px; border-radius: 12px; object-fit: cover;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.08), 0 8px 20px rgba(109,92,255,0.4);
}
.rp-name { font-weight: 700; font-size: 14px; line-height: 1.1; }
.rp-status { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #22d3ee; font-weight: 600; }
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e; box-shadow: 0 0 12px #22c55e;
  animation: livePulse 1.4s infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

.rp-controls { display: flex; align-items: center; gap: 12px; justify-self: center; }
.rp-btn {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  border: 0; color: #fff; font-size: 15px;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(109,92,255,0.55);
  transition: transform .2s ease;
}
.rp-btn:hover { transform: scale(1.08); }
.rp-btn:active { transform: scale(0.95); }

.rp-volume { display: flex; align-items: center; gap: 8px; color: #eef1ff; }
.rp-volume input[type=range] {
  -webkit-appearance: none; appearance: none;
  width: 100px; height: 4px; border-radius: 4px;
  background: rgba(255,255,255,0.2);
  outline: none;
}
.rp-volume input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  cursor: pointer; border: 2px solid #fff;
}
.rp-volume input[type=range]::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  cursor: pointer; border: 2px solid #fff;
}

.rp-now { display: flex; align-items: center; gap: 12px; min-width: 0; max-width: 320px; }
.rp-art {
  width: 42px; height: 42px; border-radius: 10px; object-fit: cover;
  animation: spin 20s linear infinite;
  animation-play-state: paused;
  border: 2px solid rgba(255,255,255,0.15);
}
body.playing .rp-art { animation-play-state: running; }
@keyframes spin { to { transform: rotate(360deg); } }
.rp-text { min-width: 0; }
.rp-track { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.rp-artist { font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }

/* Marquee */
.rp-marquee {
  overflow: hidden;
  border-top: 1px solid var(--glass-border);
  padding: 6px 0;
  background: rgba(0,0,0,0.25);
}
.rp-marquee-inner {
  display: flex; gap: 60px;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
  color: var(--accent-3); font-size: 12px; font-weight: 500;
}
.rp-marquee-inner span i { margin-right: 6px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============ NAVBAR ============ */
.fixed-nav {
  position: fixed; top: 100px; left: 0; right: 0; z-index: 1050;
  padding: 6px 0;
}
.glass-nav {
  background: rgba(11, 13, 22, 0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}
.navbar-brand {
  color: #fff !important; font-weight: 700; display: flex; align-items: center; gap: 10px;
}
.navbar-brand img { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; }
.nav-link {
  color: rgba(255,255,255,0.75) !important;
  font-weight: 500; font-size: 14px;
  padding: 8px 14px !important;
  border-radius: 10px; transition: all .3s;
}
.nav-link:hover, .nav-link.active {
  color: #fff !important;
  background: rgba(255,255,255,0.08);
}
.nav-link.btn-admin {
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff !important;
}

/* ============ HERO / SLIDER ============ */
.hero-slider {
  margin-top: 20px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.hero-slide {
  position: relative;
  height: 460px;
  background-size: cover;
  background-position: center;
  display: flex; align-items: center;
}
.hero-slide::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(5,6,10,0.9) 0%, rgba(5,6,10,0.6) 40%, transparent 100%);
}
.hero-slide-content {
  position: relative; z-index: 2; padding: 40px 50px; max-width: 620px;
}
.hero-slide h1 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800; margin: 0 0 12px;
  background: linear-gradient(90deg, #fff, #22d3ee);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp .8s ease;
}
.hero-slide p { font-size: 18px; color: rgba(255,255,255,0.85); margin-bottom: 22px; animation: fadeInUp 1s ease; }
.hero-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 50px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff !important; font-weight: 600; text-decoration: none;
  box-shadow: 0 12px 28px rgba(109,92,255,0.5);
  transition: transform .3s;
  animation: fadeInUp 1.2s ease;
}
.hero-btn:hover { transform: translateY(-3px); color:#fff; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.carousel-indicators [data-bs-target] {
  width: 10px; height: 10px; border-radius: 50%; opacity: 0.5;
}
.carousel-indicators .active { opacity: 1; background: var(--accent-3); }

/* ============ SEÇÕES ============ */
section { padding: 70px 0; }
.section-title {
  font-size: 32px; font-weight: 800; margin-bottom: 8px;
  background: linear-gradient(90deg, #fff, #6d5cff);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-subtitle { color: var(--text-muted); margin-bottom: 40px; }

/* ============ CARDS ============ */
.card-glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease;
  height: 100%;
}
.card-glass:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(109,92,255,0.35);
  border-color: rgba(109,92,255,0.5);
}
.card-glass img {
  width: 100%; height: 200px; object-fit: cover;
  transition: transform .5s;
}
.card-glass:hover img { transform: scale(1.06); }
.card-body { padding: 20px; }
.card-title { font-weight: 700; font-size: 18px; margin-bottom: 6px; color:#fff;}
.card-text { color: var(--text-muted); font-size: 14px; }

.badge-time {
  display: inline-block; padding: 4px 12px; border-radius: 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  font-size: 12px; font-weight: 600; color: #fff; margin-bottom: 8px;
}

/* ============ EQUIPE ============ */
.team-card { text-align: center; padding: 24px 20px; }
.team-avatar {
  width: 130px; height: 130px; border-radius: 50%; object-fit: cover;
  border: 3px solid transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)) border-box;
  padding: 4px;
  margin: 0 auto 14px;
}
.team-name { font-weight: 700; margin-bottom: 4px; color:#fff;}
.team-role { color: var(--text-muted); font-size: 13px; }

/* ============ GALERIA ============ */
.gallery-item {
  border-radius: var(--radius); overflow: hidden;
  position: relative; cursor: pointer;
}
.gallery-item img {
  width: 100%; height: 220px; object-fit: cover;
  transition: transform .5s;
}
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.7));
  opacity: 0; transition: opacity .3s;
}
.gallery-item:hover::after { opacity: 1; }
.gallery-label {
  position: absolute; bottom: 12px; left: 16px; z-index: 2;
  color: #fff; font-weight: 600; opacity: 0;
  transition: opacity .3s, transform .3s;
  transform: translateY(10px);
}
.gallery-item:hover .gallery-label { opacity: 1; transform: translateY(0); }

/* ============ FORMS ============ */
.form-glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 32px;
  backdrop-filter: blur(14px);
}
.form-control, .form-select {
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid var(--glass-border) !important;
  color: #fff !important;
  border-radius: 10px !important;
  padding: 12px 16px !important;
}
.form-control:focus, .form-select:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(109,92,255,0.25) !important;
  background: rgba(255,255,255,0.06) !important;
}
.form-control::placeholder { color: rgba(255,255,255,0.35); }
.form-label { color: var(--text-muted); font-weight: 500; margin-bottom: 6px; font-size: 14px; }

.btn-primary-gradient {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: 0; color: #fff; font-weight: 600;
  padding: 12px 28px; border-radius: 50px;
  box-shadow: 0 12px 28px rgba(109,92,255,0.5);
  transition: transform .3s;
}
.btn-primary-gradient:hover { transform: translateY(-2px); color:#fff; }

/* ============ DOAÇÃO ============ */
.donation-box {
  text-align: center; padding: 40px;
  background: linear-gradient(135deg, rgba(109,92,255,0.2), rgba(255,63,138,0.15));
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
}
.qr-code {
  width: 220px; height: 220px;
  border-radius: 16px; background: #fff; padding: 10px;
  margin: 20px auto;
}
.pix-key-box {
  background: rgba(0,0,0,0.3); padding: 14px 20px; border-radius: 12px;
  font-family: monospace; font-size: 16px; word-break: break-all;
  border: 1px dashed var(--accent);
}

/* ============ RODAPÉ ============ */
.site-footer {
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  padding: 60px 0 30px;
  margin-top: 80px;
}
.footer-title {
  color: #fff; font-weight: 700; margin-bottom: 18px;
  position: relative; padding-bottom: 8px;
}
.footer-title::after {
  content: ""; position: absolute; bottom: 0; left: 0;
  width: 40px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; color: var(--text-muted); }
.footer-links a { color: var(--text-muted); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--accent-3); }
.footer-links i { color: var(--accent); margin-right: 8px; }
.footer-hr { border-color: var(--glass-border); margin: 30px 0 20px; }

.social-links a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,0.06); color: #fff;
  margin-right: 8px; text-decoration: none;
  transition: transform .3s, background .3s;
}
.social-links a:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

/* ============ SCROLL TOP ============ */
.scroll-top {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; box-shadow: 0 10px 25px rgba(109,92,255,0.6);
  opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s;
}
.scroll-top.show { opacity: 1; pointer-events: auto; }
.scroll-top:hover { transform: translateY(-4px); }

/* ============ RESPONSIVO ============ */
@media (max-width: 992px) {
  body { padding-top: 180px; }
  .rp-inner { grid-template-columns: 1fr; gap: 8px; padding: 8px 12px; }
  .rp-brand { justify-content: center; }
  .rp-controls { justify-self: center; }
  .rp-now { justify-self: center; max-width: 100%; }
  .fixed-nav { top: 155px; }
}
@media (max-width: 576px) {
  body { padding-top: 200px; }
  .hero-slide { height: 380px; }
  .hero-slide-content { padding: 24px 20px; }
  .section-title { font-size: 24px; }
  section { padding: 50px 0; }
  .fixed-nav { top: 175px; }
  .rp-name { font-size: 12px; }
  .rp-volume input[type=range] { width: 70px; }
}

/* ============ ADMIN ============ */
.admin-wrapper { display: flex; min-height: 100vh; padding-top: 0; }
.admin-sidebar {
  width: 260px; background: rgba(11,13,22,0.85);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--glass-border);
  padding: 30px 20px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-sidebar h4 { color: #fff; margin-bottom: 30px; text-align: center; }
.admin-menu { list-style: none; padding: 0; margin: 0; }
.admin-menu li { margin-bottom: 4px; }
.admin-menu a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 10px;
  color: rgba(255,255,255,0.75); text-decoration: none;
  transition: all .25s;
}
.admin-menu a:hover, .admin-menu a.active {
  background: linear-gradient(135deg, rgba(109,92,255,0.3), rgba(255,63,138,0.15));
  color: #fff;
}
.admin-menu a i { width: 18px; text-align: center; }
.admin-main { flex: 1; padding: 30px 40px; }
.admin-title { font-size: 26px; font-weight: 700; margin-bottom: 24px; }

.stat-card {
  padding: 24px; border-radius: 14px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  display: flex; align-items: center; gap: 16px;
}
.stat-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.stat-value { font-size: 26px; font-weight: 700; }
.stat-label { color: var(--text-muted); font-size: 13px; }

.admin-table {
  width: 100%; border-collapse: collapse;
  background: var(--glass-bg); border-radius: 12px; overflow: hidden;
}
.admin-table th, .admin-table td {
  padding: 12px 14px; border-bottom: 1px solid var(--glass-border);
  text-align: left; font-size: 14px;
}
.admin-table th { background: rgba(0,0,0,0.3); color: var(--text-muted); font-weight: 600; }
.admin-table img { width: 60px; height: 40px; object-fit: cover; border-radius: 6px; }
.btn-sm-icon {
  padding: 6px 10px; border-radius: 8px; border: 0;
  background: rgba(255,255,255,0.1); color: #fff; text-decoration: none;
  display: inline-block; font-size: 13px;
}
.btn-sm-icon.danger { background: rgba(255,63,90,0.25); color: #ff9db1; }
.btn-sm-icon:hover { background: rgba(255,255,255,0.2); }

.alert {
  border-radius: 12px; border: 1px solid var(--glass-border);
  padding: 14px 18px;
}
.alert-success { background: rgba(34,197,94,0.15); color: #86efac; border-color: rgba(34,197,94,0.3); }
.alert-danger { background: rgba(239,68,68,0.15); color: #fca5a5; border-color: rgba(239,68,68,0.3); }

/* Login */
.login-box {
  max-width: 420px; margin: 100px auto;
  padding: 40px; border-radius: 20px;
}
.login-box h2 { text-align: center; margin-bottom: 24px; font-weight: 700; }

/* Animações de scroll */
.reveal { opacity: 0; transform: translateY(30px); transition: all .8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Skeleton pulse */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}
.skeleton { animation: pulse 1.5s ease-in-out infinite; background: rgba(255,255,255,0.06); }
