/* ===============================
   BASE STYLE — 2Babak.com
   Struktur global + tema warna
=============================== */

/* --- Reset & Base Typography --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", "Segoe UI", sans-serif;
  background: #0b0f17;
  color: #e4e6eb;
  line-height: 1.6;
  font-size: 15px;
}

/* --- Global Link Style --- */
a {
  color: #00ff88;
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: #48ffb3;
  text-shadow: 0 0 6px #00ff88;
}

/* --- Headings --- */
h1, h2, h3, h4, h5, h6 {
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
}
h1 { font-size: 26px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
h4 { font-size: 16px; }
h5 { font-size: 14px; }
h6 { font-size: 13px; }

/* --- Paragraphs --- */
p {
  color: #ccc;
  margin-bottom: 12px;
}

/* --- Buttons --- */
button {
  background: #00ff88;
  border: none;
  color: #0b0f17;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
button:hover {
  background: #48ffb3;
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.6);
}

/* ===============================
/* ===============================
   HEADER (Logo + Menu Sejajar + Title di Bawah)
=============================== */
header {
  background: linear-gradient(180deg, #101522 0%, #0c111b 100%);
  border-bottom: 1px solid #1f2638;
  padding: 20px 30px 15px;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* --- Baris Atas: Logo + Menu --- */
.header-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  width: 100%;
  max-width: 1000px;
  margin-bottom: 8px;
}

/* --- Logo --- */
.logo-title {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-title .logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  background: linear-gradient(135deg, #d4af37, #ffcc70);
  border-radius: 50%;
  padding: 10px;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.logo-title .logo:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 230, 120, 0.6);
}

/* --- NAV MENU --- */
nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

nav a {
  position: relative;
  color: #ccc;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 8px 4px;
  transition: color 0.3s ease;
}
nav a:hover,
nav a.active {
  color: #00ff88;
}
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: #00ff88;
  transition: width 0.3s ease;
  box-shadow: 0 0 8px #00ff88;
}
nav a:hover::after,
nav a.active::after {
  width: 100%;
}

/* --- Title di bawah --- */
header h1 {
  margin-top: 5px;
  font-size: 22px;
  font-weight: 700;
  color: #00ff88;
  text-align: center;
  text-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
}
header h1 a {
  color: #00ff88;
  text-decoration: none;
}

/* Responsif */
@media (max-width: 768px) {
  .header-top {
    flex-direction: column;
    gap: 15px;
  }
  nav {
    gap: 25px;
  }
}

/* ===============================
   FOOTER
=============================== */
footer {
  background: #0d111a;
  color: #888;
  font-size: 13px;
  text-align: center;
  padding: 20px;
  border-top: 1px solid #1a1f2d;
}
footer a {
  color: #00ff88;
}
footer a:hover {
  text-decoration: underline;
}

/* ===============================
   MAIN & CONTENT AREA
=============================== */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}
section.content {
  margin-top: 20px;
}
.text-center { text-align: center; }
.text-muted { color: #999; }

/* ===============================
   FORM & FILTER (untuk index)
=============================== */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #111720;
  border-radius: 8px;
  padding: 12px 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.filter-bar label {
  font-size: 14px;
  color: #ccc;
}
.filter-bar input[type="text"] {
  background: #0c1018;
  border: 1px solid #1e2432;
  color: #fff;
  padding: 6px 10px;
  border-radius: 5px;
  outline: none;
  min-width: 150px;
}
.filter-bar input::placeholder {
  color: #666;
}
.filter-bar button {
  background: #00ff88;
  border: none;
  color: #0b0f17;
  padding: 7px 14px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}
.filter-bar button:hover {
  background: #48ffb3;
}

/* ===============================
   RESPONSIVE
=============================== */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    min-height: unset;
  }

  .logo-title {
    position: static;
    justify-content: center;
  }

  .logo-title .logo {
    width: 65px;
    height: 65px;
    padding: 7px;
  }

  nav {
    gap: 22px;
    flex-wrap: wrap;
  }

  nav a {
    font-size: 14px;
  }

  main {
    padding: 15px;
  }
}
