/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #ffffff;
  color: #333333;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #0d6efd;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  border-bottom: 1px solid #eaeaea;
  padding: 15px 0;
  background: #ffffff;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 0 20px;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none !important;
  color: #000;
}

.logo-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.logo-sub {
  font-size: 11px;
  color: #666;
}

.main-nav {
  display: flex;
  gap: 30px;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none !important;
  color: #000;
}

.nav-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}

.nav-title:hover {
  color: #000;
}

.nav-sub {
  font-size: 11px;
  color: #666;
}

/* ============================================
   LAYOUT
   ============================================ */
.main-container {
  max-width: 1260px;
  margin: 30px auto;
  display: flex;
  gap: 20px;
  padding: 0 20px;
}

.ad-sidebar {
  width: 160px;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .ad-sidebar {
    display: none;
  }
}

.ad-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  transition: opacity 0.2s;
}

.ad-link:hover {
  opacity: 0.9;
}

.ad-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sidebar-ad-img {
  width: 160px;
  height: 450px;
  /* Changed back to auto to show the full image without cropping */
}

.bottom-ad-img {
  max-width: 728px;
  width: 100%;
  height: auto;
  /* Changed back to auto to show the full image without cropping */
  margin: 0 auto;
}


.content {
  flex: 1;
  min-width: 0;
}

.ad-label {
  font-size: 11px;
  color: #888;
  margin-bottom: 5px;
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  font-size: 14px;
  color: #555;
  margin-bottom: 8px;
}

.form-group label strong {
  color: #000;
  margin-right: 5px;
}

textarea {
  width: 100%;
  height: 150px;
  border: 1px solid #cccccc;
  border-radius: 4px;
  padding: 12px;
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  outline: none;
}

textarea:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

textarea[readonly] {
  background-color: #f8f9fa;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s;
}

.btn-blue {
  background-color: #007bff;
  color: #fff;
}

.btn-blue:hover {
  background-color: #0056b3;
}

/* ============================================
   FOOTER / BOTTOM SECTION
   ============================================ */
.ad-bottom {
  margin-top: 40px;
  margin-bottom: 40px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  border-top: 1px solid #eee;
  padding-top: 30px;
  margin-top: 40px;
}

.footer-col {
  flex: 1;
  min-width: 280px;
  font-size: 13px;
  color: #555;
  margin-bottom: 30px;
}

.footer-col p {
  margin-bottom: 5px;
}

/* ============================================
   TOAST
   ============================================ */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #28a745;
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 14px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s;
  pointer-events: none;
  z-index: 1000;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.error {
  background: #dc3545;
}

/* ============================================
   CHECKER TABS & CARDS (For checker.html)
   ============================================ */
.hero {
  text-align: center;
  margin-bottom: 30px;
}

.hero-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
}

.hero-sub {
  font-size: 15px;
  color: #666;
}

.platform-tabs-wrap {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.platform-tabs {
  display: flex;
  gap: 10px;
}

.ptab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  transition: all 0.2s;
}

.ptab:hover {
  background: #f8f9fa;
}

.ptab.active {
  border-color: #0d6efd;
  color: #fff;
  background: #0d6efd;
}

.card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  background: #fff;
  margin-bottom: 20px;
}

.card-header {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.progress-info {
  display: flex;
  gap: 20px;
  font-size: 14px;
  margin-bottom: 10px;
}

.live-text {
  color: #28a745;
}

.die-text {
  color: #dc3545;
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .results-grid {
    grid-template-columns: 1fr;
  }
}

.result-card {
  padding: 15px;
}

.result-card-header {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 10px;
}

.result-card-header.live {
  color: #28a745;
}

.result-card-header.die {
  color: #dc3545;
}

.result-area {
  height: 200px;
  margin-bottom: 10px;
}

.btn-primary {
  background: #007bff;
  color: #fff;
}

.btn-primary:hover {
  background: #0056b3;
}

.btn-ghost {
  background: transparent;
  border: 1px solid #ccc;
  color: #333;
}

.btn-ghost:hover {
  background: #f0f0f0;
}

.btn-success-sm {
  background: #28a745;
  color: #fff;
  padding: 6px 12px;
}

.btn-success-sm:hover {
  background: #218838;
}

.btn-danger-sm {
  background: #dc3545;
  color: #fff;
  padding: 6px 12px;
}

.btn-danger-sm:hover {
  background: #c82333;
}

.btn-row {
  display: flex;
  gap: 10px;
}

.nav-item.active {
  color: #0d6efd !important;
}

.mobile-nav-item.active {
  background: #0d6efd !important;
  color: #fff !important;
}

.mobile-nav-item.active .mobile-nav-sub {
  color: rgba(255, 255, 255, 0.8) !important;
}

.hidden {
  display: none !important;
}


/* ============================================
   MOBILE NAVIGATION
   ============================================ */
.mobile-nav-toggle {
  display: none;
  background: #f8f9fa;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  cursor: pointer;
  padding: 8px 10px;
  z-index: 1001;
  transition: all 0.2s;
}

.mobile-nav-toggle:hover {
  background: #e9ecef;
  border-color: #d1d1d1;
}

.mobile-nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: #000;
  margin: 5px 0;
  transition: 0.3s;
}

/* Overlay Menu */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100%;
  background: #ffffff;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  z-index: 1002;
  transition: 0.3s ease-in-out;
  padding: 80px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.mobile-menu-overlay.open {
  right: 0;
}

.mobile-menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1001;
  display: none;
  backdrop-filter: blur(2px);
}

.mobile-menu-backdrop.show {
  display: block;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  padding: 15px 20px;
  border-radius: 12px;
  background: #f8f9fa;
  border: 1px solid #eee;
  color: #333;
  text-decoration: none !important;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.mobile-nav-item::after {
  content: '→';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #ccc;
  transition: all 0.2s ease;
}

.mobile-nav-item:hover,
.mobile-nav-item:active {
  background: #fff;
  border-color: #0d6efd;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.08);
  transform: translateY(-2px);
}

.mobile-nav-item:hover::after,
.mobile-nav-item:active::after {
  color: #0d6efd;
  right: 15px;
}


.mobile-nav-title {
  font-size: 16px;
  font-weight: 700;
}

.mobile-nav-sub {
  font-size: 12px;
  color: #666;
}

.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
}

.mobile-menu-brand {
  margin-bottom: 20px;
  padding: 0 10px;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}

.brand-title {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: #000;
  line-height: 1.2;
}

.brand-sub {
  display: block;
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 900px) {

  .header-inner {
    justify-content: space-between;
  }

  .main-nav {
    display: none;
  }

  .mobile-nav-toggle {
    display: block;
  }
}