/* ============================================
   SEALM TOPUP - Panduan Top Up Game Seal Mobile
   ============================================ */

:root {
  --primary: #1a73e8;
  --primary-dark: #1557b0;
  --secondary: #ff6d00;
  --accent: #00c853;
  --dark: #1a1a2e;
  --dark2: #16213e;
  --light: #f8f9fa;
  --gray: #6c757d;
  --gray-light: #e9ecef;
  --white: #ffffff;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s ease;
  --max-width: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.7;
  color: #333;
  background: var(--light);
}

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

a {
  text-decoration: none;
  color: var(--primary);
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== HEADER ========== */
.header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
}

.logo span {
  color: var(--primary);
}

.logo .logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  color: var(--dark);
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

.nav a:hover, .nav a.active {
  background: var(--primary);
  color: white;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--dark);
  border-radius: 3px;
  transition: var(--transition);
}

/* ========== HERO ========== */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(26,115,232,0.15) 0%, transparent 50%);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 30px;
  position: relative;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--secondary);
  color: white;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: var(--transition);
  position: relative;
}

.hero-cta:hover {
  background: #e65100;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255,109,0,0.4);
  color: white;
}

/* ========== SECTION ========== */
.section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 10px;
}

.section-title p {
  color: var(--gray);
  font-size: 1.05rem;
}

/* ========== CARDS GRID ========== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-img {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--primary), var(--dark2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
}

.card-body {
  padding: 20px;
}

.card-body .tag {
  display: inline-block;
  background: rgba(26,115,232,0.1);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.card-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark);
}

.card-body h3 a {
  color: var(--dark);
}

.card-body h3 a:hover {
  color: var(--primary);
}

.card-body p {
  color: var(--gray);
  font-size: 0.92rem;
  line-height: 1.6;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--gray);
}

/* ========== ARTICLE ========== */
.article-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.article-page .breadcrumb {
  font-size: 0.88rem;
  color: var(--gray);
  margin-bottom: 24px;
}

.article-page .breadcrumb a {
  color: var(--primary);
}

.article-page h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
  line-height: 1.3;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-light);
}

.article-content {
  font-size: 1.05rem;
  line-height: 1.8;
}

.article-content h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 36px 0 16px;
  color: var(--dark);
}

.article-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 28px 0 12px;
  color: var(--dark);
}

.article-content p {
  margin-bottom: 16px;
  color: #444;
}

.article-content ul, .article-content ol {
  margin: 16px 0;
  padding-left: 24px;
}

.article-content li {
  margin-bottom: 8px;
  color: #444;
}

.article-content blockquote {
  border-left: 4px solid var(--primary);
  background: rgba(26,115,232,0.05);
  padding: 16px 20px;
  margin: 20px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: #555;
}

.article-content img {
  border-radius: var(--radius);
  margin: 20px 0;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.article-content th, .article-content td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--gray-light);
}

.article-content th {
  background: var(--primary);
  color: white;
  font-weight: 600;
}

.article-content tr:nth-child(even) {
  background: rgba(0,0,0,0.02);
}

/* ========== INFO BOX ========== */
.info-box {
  background: linear-gradient(135deg, rgba(26,115,232,0.05), rgba(0,200,83,0.05));
  border: 1px solid rgba(26,115,232,0.2);
  border-radius: var(--radius);
  padding: 24px;
  margin: 24px 0;
}

.info-box h4 {
  color: var(--primary);
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.warning-box {
  background: linear-gradient(135deg, rgba(255,109,0,0.05), rgba(255,152,0,0.05));
  border: 1px solid rgba(255,109,0,0.2);
  border-radius: var(--radius);
  padding: 24px;
  margin: 24px 0;
}

.warning-box h4 {
  color: var(--secondary);
  margin-bottom: 8px;
}

/* ========== SIDEBAR ========== */
.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 30px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 20px;
}

.sidebar {
  position: sticky;
  top: 90px;
  align-self: start;
}

.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.sidebar-widget h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
  color: var(--dark);
}

.sidebar-widget ul {
  list-style: none;
}

.sidebar-widget ul li {
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-light);
}

.sidebar-widget ul li:last-child {
  border-bottom: none;
}

.sidebar-widget ul li a {
  color: #444;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-widget ul li a:hover {
  color: var(--primary);
}

/* ========== FEATURES ========== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.8rem;
  color: white;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark);
}

.feature-card p {
  color: var(--gray);
  font-size: 0.92rem;
}

/* ========== STEPS ========== */
.steps {
  counter-reset: step;
}

.step {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  align-items: flex-start;
}

.step-number {
  counter-increment: step;
  min-width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.3rem;
}

.step-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--dark);
}

.step-content p {
  color: var(--gray);
  font-size: 0.95rem;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.8);
  padding: 50px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-col h4 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.footer-col ul li a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* ========== PAGINATION ========== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.pagination a, .pagination span {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
}

.pagination a {
  background: var(--white);
  color: var(--dark);
  box-shadow: var(--shadow);
}

.pagination a:hover {
  background: var(--primary);
  color: white;
}

.pagination span.current {
  background: var(--primary);
  color: white;
}

/* ========== BREADCRUMB ========== */
.breadcrumb-bar {
  background: var(--white);
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-light);
  font-size: 0.88rem;
}

.breadcrumb-bar a {
  color: var(--primary);
}

.breadcrumb-bar span {
  color: var(--gray);
  margin: 0 8px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
  .content-wrapper {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
  }
  .hero h1 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow-lg);
  }

  .nav.active {
    display: flex;
  }

  .hero {
    padding: 50px 0;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section {
    padding: 40px 0;
  }

  .section-title h2 {
    font-size: 1.5rem;
  }

  .article-page h1 {
    font-size: 1.6rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
}
