/* ============================================================
   MISTERI TOGEL — main.css
   Shared styles for index.html & detail.php
   ============================================================ */

/* ── Base & Background ── */
body {
  background: linear-gradient(160deg, #020c1b 0%, #0a1628 35%, #0d2040 60%, #0a2a4a 100%);
  min-height: 100vh;
  font-family: 'Roboto', sans-serif;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse at 15% 15%, rgba(56,189,248,0.13) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 75%, rgba(14,116,144,0.16) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 90%, rgba(2,132,199,0.10) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 10%, rgba(186,230,253,0.06) 0%, transparent 40%);
}

/* ── Floating Orbs ── */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.20;
  pointer-events: none;
  z-index: 0;
  animation: floatOrb 12s ease-in-out infinite;
}
.orb-1 { width:420px; height:420px; background:#38bdf8; top:-120px; left:-100px; animation-delay:0s; }
.orb-2 { width:360px; height:360px; background:#0369a1; top:40%; right:-80px; animation-delay:-4s; }
.orb-3 { width:320px; height:320px; background:#7dd3fc; bottom:-80px; left:30%; animation-delay:-8s; }

@keyframes floatOrb {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(30px,-30px) scale(1.05); }
  66%     { transform: translate(-20px,20px) scale(0.97); }
}

/* ── Glass Utilities ── */
.glass-panel {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.12);
}

.glass-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  overflow: hidden;
}
.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 60%);
  border-radius: inherit;
  pointer-events: none;
}
.glass-card:hover {
  transform: translateY(-6px) scale(1.01);
  background: rgba(56,189,248,0.10);
  border-color: rgba(56,189,248,0.50);
  box-shadow: 0 20px 60px rgba(56,189,248,0.15), 0 8px 32px rgba(0,0,0,0.5);
}

/* ── Marquee ── */
.marquee-outer {
  overflow: hidden;
  width: 100%;
}
.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
}
.marquee-item {
  flex-shrink: 0;
  padding: 0 3rem;
  white-space: nowrap;
}

/* ── Sparkle animation ── */
.sparkle { animation: sparkle 2s ease-in-out infinite; }
@keyframes sparkle {
  0%,100% { opacity: 1; transform: scale(1) rotate(0deg); }
  50%     { opacity: 0.6; transform: scale(1.2) rotate(15deg); }
}

/* ── Shimmer Line ── */
@keyframes shimmerLine {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,0.03); }
::-webkit-scrollbar-thumb { background: rgba(56,189,248,0.4); border-radius: 10px; }

/* ── Buttons ── */
.btn-login {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(10px);
  color: white;
  border-radius: 12px;
  padding: 10px 28px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-login:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.45);
  transform: translateY(-2px);
  color: white;
}

.btn-register {
  background: linear-gradient(135deg, #38bdf8, #0284c7);
  color: #fff;
  border-radius: 12px;
  padding: 10px 28px;
  font-weight: 700;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 18px rgba(56,189,248,0.35);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(56,189,248,0.55);
  color: #fff;
}

.btn-gold {
  background: linear-gradient(135deg, #38bdf8, #0284c7);
  color: #fff;
  font-weight: 700;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 18px rgba(56,189,248,0.35);
  border: none;
  cursor: pointer;
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(56,189,248,0.55);
  background: linear-gradient(135deg, #7dd3fc, #0369a1);
}

.btn-back {
  background: rgba(56,189,248,0.10);
  border: 1px solid rgba(56,189,248,0.30);
  color: #7dd3fc;
  border-radius: 12px;
  padding: 9px 24px;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}
.btn-back:hover {
  background: rgba(56,189,248,0.22);
  border-color: rgba(56,189,248,0.55);
  color: #bae6fd;
  transform: translateY(-2px);
}

.btn-readmore {
  background: linear-gradient(135deg, #38bdf8, #0284c7);
  color: #fff;
  font-weight: 700;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  width: 100%;
  padding: 8px 0;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(56,189,248,0.3);
}
.btn-readmore:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(56,189,248,0.50);
  background: linear-gradient(135deg, #7dd3fc, #0369a1);
}

/* ── Badges ── */
.badge-jackpot {
  background: rgba(56,189,248,0.12);
  border: 1px solid rgba(56,189,248,0.40);
  color: #7dd3fc;
  border-radius: 8px;
  padding: 3px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-sky {
  background: rgba(56,189,248,0.12);
  border: 1px solid rgba(56,189,248,0.35);
  color: #7dd3fc;
  border-radius: 20px;
  padding: 3px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-block;
}

/* ── Timestamp chip ── */
.ts-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(56,189,248,0.08);
  border: 1px solid rgba(56,189,248,0.20);
  border-radius: 20px;
  padding: 4px 14px;
  color: rgba(186,230,253,0.65);
  font-size: 0.78rem;
}

/* ── Pagination ── */
.page-btn {
  background: rgba(56,189,248,0.08);
  border: 1px solid rgba(56,189,248,0.25);
  color: #bae6fd;
  border-radius: 10px;
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 0.85rem;
  font-weight: 600;
}
.page-btn:hover {
  background: rgba(56,189,248,0.20);
  border-color: rgba(56,189,248,0.45);
  transform: translateY(-1px);
}
.page-btn.active {
  background: linear-gradient(135deg, #38bdf8, #0284c7);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(56,189,248,0.45);
}

/* ── Image holders ── */
.img-holder {
  position: relative;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
}
.img-holder img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}
.glass-card:hover .img-holder img { transform: scale(1.05); }
.img-holder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.55));
  pointer-events: none;
}

.card-img { width: 100%; display: block; transition: transform 0.4s ease; }
.glass-card:hover .card-img { transform: scale(1.05); }

.detail-img {
  width: 100%;
  display: block;
  border-radius: 14px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

/* ── Section title line ── */
.section-title-line {
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(56,189,248,0.7), transparent);
  width: 200px;
  margin: 0 auto;
}

/* ── Detail card (detail.php) ── */
.detail-card {
  background: linear-gradient(145deg, rgba(2,132,199,0.12) 0%, rgba(14,116,144,0.07) 100%);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(56,189,248,0.20);
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}
.detail-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #38bdf8, #7dd3fc, #38bdf8, transparent);
  background-size: 200%;
  animation: shimmerLine 4s linear infinite;
}

/* ── Article section (index) ── */
.article-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.article-section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(56,189,248,0.5), transparent);
}
.article-section-line.right {
  background: linear-gradient(to left, rgba(56,189,248,0.5), transparent);
}
.article-featured {
  background: linear-gradient(145deg, rgba(2,132,199,0.14) 0%, rgba(14,116,144,0.08) 100%);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(56,189,248,0.22);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.35s ease;
  position: relative;
}
.article-featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #38bdf8, #0ea5e9, #7dd3fc, #38bdf8);
  background-size: 200%;
  animation: shimmerLine 3s linear infinite;
}
.article-featured:hover {
  border-color: rgba(56,189,248,0.5);
  box-shadow: 0 24px 64px rgba(56,189,248,0.12), 0 8px 32px rgba(0,0,0,0.5);
  transform: translateY(-4px);
}
.article-card {
  background: rgba(14,116,144,0.09);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(56,189,248,0.16);
  border-radius: 18px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}
.article-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(56,189,248,0.05) 0%, transparent 60%);
  border-radius: inherit;
  pointer-events: none;
}
.article-card:hover {
  border-color: rgba(56,189,248,0.40);
  background: rgba(14,116,144,0.16);
  box-shadow: 0 12px 40px rgba(56,189,248,0.12), 0 4px 20px rgba(0,0,0,0.4);
  transform: translateY(-4px);
}
.article-divider {
  border: none;
  border-top: 1px solid rgba(56,189,248,0.12);
  margin: 20px 0;
}