/*
Theme Name: Vorbat Mania
Theme URI: https://pelaut.net
Author: Vorbat Developer
Author URI: https://pelaut.net
Description: Tema WordPress Premium untuk Klub Bola Voli - Header Inline & Fully Responsive.
Version: 1.1.1
License: GNU General Public License v2 or later
Text Domain: vorbat-mania
*/

:root {
  --bg-outer: #0a0d14;
  --bg-canvas: #ffffff;
  --bg-card: #f8f9fa;
  --text-dark: #1a1a1a;
  --text-muted: #666666;
  --primary-color: #007a87;
  --primary-hover: #005662;
  --border-color: #e2e8f0;
  --max-width: 800px;
}

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

html, body {
  background-color: var(--bg-outer);
  color: var(--text-dark);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

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

/* CONTAINER APP CANVAS (800PX DITENGAH LAYAR) */
#page-site-wrapper {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  background-color: var(--bg-canvas);
  min-height: 100vh;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  position: relative;
  padding-bottom: 60px;
}

.vorbat-container {
  width: 100%;
  padding: 0 12px;
}

/* HEADER & MENU STICKY DIBAGIAN ATAS */
.top-sticky-wrapper {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--bg-canvas);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  width: 100%;
}

/* HEADER INLINE (Judul & Menu Dalam 1 Baris Sejajar) */
.site-header-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  background: var(--bg-canvas);
  border-bottom: 1px solid var(--border-color);
  min-height: 50px;
}

.header-brand .site-title {
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
}

.header-brand .site-title a {
  color: var(--primary-color);
}

.header-nav-inline {
  display: flex;
  align-items: center;
}

.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 15px;
}

.main-navigation a {
  color: var(--text-dark);
  font-size: 0.85rem;
  font-weight: 700;
}

.main-navigation a:hover {
  color: var(--primary-color);
}

/* Hamburger Toggle Menu */
.hamburger-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--primary-color);
  font-size: 1.35rem;
  cursor: pointer;
  padding: 4px;
}

/* Half-Width Overlay Mobile Menu Transparan */
.mobile-overlay-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 65%;
  max-width: 300px;
  height: 100vh;
  background: rgba(10, 13, 20, 0.94);
  backdrop-filter: blur(10px);
  border-right: 2px solid var(--primary-color);
  z-index: 100000;
  padding: 20px;
  transition: left 0.3s ease;
  box-shadow: 5px 0 15px rgba(0,0,0,0.5);
}

.mobile-overlay-menu.active {
  left: 0;
}

.mobile-overlay-menu .mobile-menu-close {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.6rem;
  float: right;
  cursor: pointer;
}

.mobile-overlay-menu ul {
  list-style: none;
  margin-top: 40px;
}

.mobile-overlay-menu li {
  margin-bottom: 12px;
}

.mobile-overlay-menu a {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  display: block;
}

/* RUNNING TEXT TICKER (Satu Baris di Bawah Header) */
.ticker-wrapper {
  background: var(--bg-outer);
  color: #ffffff;
  width: 100%;
  overflow: hidden;
}

.ticker-inner {
  display: flex;
  align-items: center;
  height: 32px;
  width: 100%;
  overflow: hidden;
}

.ticker-badge {
  background: #e63946;
  color: #ffffff;
  font-weight: 800;
  padding: 0 10px;
  height: 100%;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.ticker-content {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.ticker-text {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation-name: vorbatTicker;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  font-size: 0.8rem;
  color: #ffffff;
}

@keyframes vorbatTicker {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

/* AREA KONTEN UTAMA */
.main-content-area {
  flex: 1;
  padding: 15px 12px;
  background: var(--bg-canvas);
  width: 100%;
}

/* POST CARD (Desktop & Tablet) */
.post-card {
  display: flex;
  gap: 12px;
  background: #f8f9fa;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 12px;
  padding: 10px;
  overflow: hidden;
  width: 100%;
}

.post-card-thumb {
  flex: 0 0 160px;
  height: 110px;
  overflow: hidden;
  border-radius: 6px;
}

.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.post-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

.post-card-title a {
  color: var(--text-dark);
}

.post-card-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 3px 0;
}

.post-card-excerpt {
  color: #4a5568;
  font-size: 0.82rem;
  margin-bottom: 8px;
}

.btn-read-more {
  display: inline-block;
  padding: 4px 10px;
  background: var(--primary-color);
  color: #ffffff;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* STICKY FOOTER NAVBAR */
.sticky-footer-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-width);
  background: var(--bg-outer);
  border-top: 2px solid var(--primary-color);
  z-index: 99999;
  height: 52px;
}

.sticky-footer-nav ul {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 100%;
  list-style: none;
  padding: 0 5px;
}

.sticky-footer-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #a0aec0;
  font-size: 0.7rem;
}

.sticky-footer-nav a i {
  font-size: 1rem;
  margin-bottom: 2px;
  color: var(--primary-color);
}

.site-footer-bottom {
  background: var(--bg-outer);
  color: #a0aec0;
  padding: 12px 0;
  text-align: center;
  font-size: 0.75rem;
}

/* ATURAN RESPONSIVE MOBILE (< 600PX) */
@media screen and (max-width: 600px) {
  .main-navigation {
    display: none;
  }

  .hamburger-toggle {
    display: block;
  }

  .site-header-inline {
    padding: 8px 12px;
  }

  .header-brand .site-title {
    font-size: 1.1rem;
  }

  .post-card {
    display: flex;
    flex-direction: row;
    gap: 10px;
    padding: 8px;
  }

  .post-card-thumb {
    flex: 0 0 100px;
    height: 90px;
  }

  .post-card-title {
    font-size: 0.92rem;
    line-height: 1.25;
  }

  .post-card-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.78rem;
    margin-bottom: 4px;
  }

  .btn-read-more {
    padding: 3px 8px;
    font-size: 0.7rem;
  }
}