/* ================================================
   Netizen303.live — Microsite Premium Stylesheet
   Theme: Red, Black, White | Professional & Modern
   ================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* CSS Custom Properties */
:root {
  --red-primary: #DC2626;
  --red-dark: #991B1B;
  --red-accent: #EF4444;
  --red-glow: rgba(220, 38, 38, 0.4);
  --red-subtle: rgba(248, 113, 113, 0.1);
  --black-deep: #0A0A0A;
  --black-primary: #0F0F0F;
  --black-card: #141414;
  --black-surface: #1A1A1A;
  --gray-dark: #1F2937;
  --gray-mid: #374151;
  --gray-text: #9CA3AF;
  --gray-light: #D1D5DB;
  --white: #FFFFFF;
  --white-off: #F3F4F6;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px rgba(220, 38, 38, 0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--black-primary);
  color: var(--white);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ====== HEADER ====== */
header {
  background: linear-gradient(135deg, var(--red-dark) 0%, var(--red-primary) 100%);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  padding: 0.75rem 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
}

.header-logo img {
  height: 38px;
  transition: transform var(--transition-smooth);
}

.header-logo img:hover {
  transform: scale(1.05);
}

nav a img {
  height: 38px;
  vertical-align: middle;
}

/* Navigation */
nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.25rem;
}

nav ul li a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-smooth);
  letter-spacing: 0.01em;
}

nav ul li a:hover {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}

/* Hamburger Menu */
.nav-toggle {
  display: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 110;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--white);
  position: relative;
  transition: all var(--transition-smooth);
}

.nav-toggle span:before,
.nav-toggle span:after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: var(--white);
  transition: all var(--transition-smooth);
}

.nav-toggle span:before { top: -7px; }
.nav-toggle span:after { top: 7px; }

.nav-toggle.active span { background-color: transparent; }
.nav-toggle.active span:before { transform: rotate(45deg); top: 0; }
.nav-toggle.active span:after { transform: rotate(-45deg); top: 0; }

/* Mobile Menu */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  nav ul {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, var(--red-dark) 0%, #7f1d1d 100%);
    flex-direction: column;
    padding: 5rem 1.5rem 2rem;
    transition: right var(--transition-smooth);
    box-shadow: -4px 0 30px rgba(0,0,0,0.5);
    gap: 0.5rem;
  }

  nav ul.active {
    display: flex;
    right: 0;
  }

  nav ul li {
    width: 100%;
  }

  nav ul li a {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: var(--radius-sm);
  }

  nav ul li a:hover {
    background: rgba(255,255,255,0.1);
  }
}

/* ====== HERO / BANNER ====== */
.banner-slider {
  position: relative;
  overflow: hidden;
  height: 28rem;
}

.banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease;
  background-size: cover;
  background-position: center;
}

.banner-slide.active { opacity: 1; }

.hero-overlay {
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.75) 100%);
}

@media (max-width: 768px) {
  .banner-slider { height: 26rem; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .banner-slider { height: 22rem; }
}

/* ====== SECTIONS ====== */
.section-dark { background-color: var(--black-primary); }
.section-darker { background-color: var(--black-deep); }
.section-card-bg { background-color: var(--black-surface); }

/* ====== GAME CARDS ====== */
.game-card {
  background: var(--black-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-smooth);
  position: relative;
}

.game-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  transition: opacity var(--transition-smooth);
  opacity: 0;
  box-shadow: 0 8px 32px var(--red-glow);
  pointer-events: none;
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: rgba(220, 38, 38, 0.3);
}

.game-card:hover::after { opacity: 1; }

.game-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.game-card:hover img {
  transform: scale(1.05);
}

.game-card-body {
  padding: 1.25rem;
}

.game-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.game-card p {
  font-size: 0.875rem;
  color: var(--gray-text);
  line-height: 1.5;
  margin-bottom: 1rem;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--red-primary) 0%, var(--red-accent) 100%);
  color: var(--white);
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all var(--transition-smooth);
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--red-glow);
}

.btn-outline {
  display: inline-block;
  border: 1.5px solid var(--red-primary);
  color: var(--red-accent);
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all var(--transition-smooth);
  background: transparent;
  cursor: pointer;
}

.btn-outline:hover {
  background: var(--red-primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--red-glow);
}

.game-button {
  display: inline-block;
  color: var(--red-accent);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border: 1.5px solid var(--red-primary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-smooth);
}

.game-button:hover {
  background: var(--red-primary);
  color: var(--white);
  transform: translateY(-1px);
}

/* ====== GAME IFRAME ====== */
.game-iframe {
  width: 100%;
  height: 600px;
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

@media (max-width: 640px) {
  .game-iframe { height: 380px; }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .game-iframe { height: 480px; }
}

/* ====== FOOTER ====== */
footer {
  background: linear-gradient(135deg, var(--red-dark) 0%, #7f1d1d 100%);
  padding: 2.5rem 0;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
}

footer a:hover {
  color: var(--white-off);
}

/* ====== MICROSITE BADGE ====== */
.microsite-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: var(--red-subtle);
  border: 1px solid rgba(220, 38, 38, 0.25);
  color: var(--red-accent);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ====== TYPOGRAPHY ====== */
h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.3;
}

@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
}

@media (max-width: 640px) {
  h1 { font-size: 1.5rem !important; }
  p { font-size: 0.875rem !important; }
}

/* ====== BREADCRUMB ====== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--gray-text);
}

.breadcrumb a {
  color: var(--gray-text);
  transition: color var(--transition-fast);
}

.breadcrumb a:hover { color: var(--red-accent); }

.breadcrumb .current { color: var(--white); }

/* ====== CTA BANNER ====== */
.cta-banner {
  background: linear-gradient(135deg, var(--red-dark) 0%, var(--red-primary) 50%, #b91c1c 100%);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  animation: ctaShimmer 8s ease-in-out infinite;
}

@keyframes ctaShimmer {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(180deg); }
}

/* ====== ANIMATIONS ====== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* ====== SCROLLBAR ====== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--black-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-mid);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--red-primary);
}

/* ====== UTILITY ====== */
.text-gradient {
  background: linear-gradient(135deg, var(--white) 0%, var(--gray-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.red-gradient-text {
  background: linear-gradient(135deg, var(--red-accent) 0%, #fb7185 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--red-primary), var(--red-accent));
  border-radius: 3px;
  margin: 0 auto 2rem;
}

/* ====== BREADCRUMB ====== */
.breadcrumb {
  display: flex;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.8rem;
}
.breadcrumb li { color: var(--gray-light); }
.breadcrumb a { color: var(--gray-light); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--red-accent); }
.breadcrumb .current { color: var(--red-accent); font-weight: 600; }

/* ====== TICKER MARQUEE ====== */
.ticker-wrapper {
  background: linear-gradient(90deg, #1a0000 0%, #2a0a0a 50%, #1a0000 100%);
  border-top: 1px solid rgba(220, 38, 38, 0.2);
  border-bottom: 1px solid rgba(220, 38, 38, 0.2);
  overflow: hidden;
  padding: 10px 0;
  position: relative;
}
.ticker-wrapper::before,
.ticker-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  z-index: 2;
}
.ticker-wrapper::before { left: 0; background: linear-gradient(90deg, #1a0000, transparent); }
.ticker-wrapper::after { right: 0; background: linear-gradient(270deg, #1a0000, transparent); }

.ticker-content {
  display: flex;
  animation: tickerScroll 35s linear infinite;
  white-space: nowrap;
  gap: 3rem;
}
.ticker-content span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fca5a5;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ====== BIJAK CARDS ====== */
.bijak-card {
  background: linear-gradient(145deg, #1A1A1A 0%, #141414 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}
.bijak-card:hover {
  border-color: rgba(220, 38, 38, 0.3);
  transform: translateY(-3px);
}
.bijak-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  display: block;
}

/* ====== RTP BADGE ====== */
.rtp-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--red-primary), var(--red-accent));
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.03em;
}

/* ====== EVENT CARD ====== */
.event-card {
  background: linear-gradient(145deg, #1A1A1A 0%, #141414 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.event-card:hover {
  border-color: rgba(220, 38, 38, 0.3);
  transform: translateY(-3px);
}
.event-card .event-date {
  display: inline-block;
  background: rgba(220, 38, 38, 0.15);
  color: var(--red-accent);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}