* { margin:0; padding:0; box-sizing:border-box; }
:root {
  --primary: #3B82F6;
  --primary-dark: #2563EB;
  --primary-light: #60A5FA;
  --bg-main: #0F172A;
  --bg-card: #1E293B;
  --bg-alt: #334155;
  --text-main: #FFFFFF;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* Header Banner */
.header-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  padding: 10px 16px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.header-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(59,130,246,0.1), transparent);
  animation: shimmer 3s infinite;
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.header-banner img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}
.header-banner .text {
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 600;
}
.header-banner .highlight {
  color: #fbbf24;
  font-weight: 700;
}

/* Search/Filter Bar */
.filter-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 10px 16px;
}
.filter-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tab {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent;
  color: var(--text-muted);
  transition: all 0.2s;
  white-space: nowrap;
}
.filter-tab.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(59,130,246,0.3);
}
.search-box {
  position: relative;
}
.search-box input {
  width: 100%;
  padding: 8px 12px 8px 36px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.05);
  color: var(--text-main);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}
.search-box input:focus {
  border-color: var(--primary);
}
.search-box svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

/* Premium Section */
.section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}
.section-header .line {
  flex: 1;
  height: 1px;
}
.section-header .line.gold { background: linear-gradient(to right, transparent, rgba(234,179,8,0.4)); }
.section-header .line.gold-r { background: linear-gradient(to left, transparent, rgba(234,179,8,0.4)); }
.section-header .line.blue { background: linear-gradient(to right, transparent, rgba(59,130,246,0.4)); }
.section-header .line.blue-r { background: linear-gradient(to left, transparent, rgba(59,130,246,0.4)); }
.section-header span {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.section-header .gold-text { color: rgba(250,204,21,0.9); }
.section-header .blue-text { color: rgba(96,165,250,0.9); }

/* GIF Banners */
.gif-banner {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  height: 105px;
  transition: transform 0.3s;
}
.gif-banner:active { transform: scale(0.98); }
.gif-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
}
.gif-banner.border-gold { border: 2px solid rgba(234,179,8,0.6); }
.gif-banner.border-slate { border: 2px solid rgba(148,163,184,0.6); }
.gif-banner.border-orange { border: 2px solid rgba(251,146,60,0.6); }
.gif-banner.border-blue { border: 2px solid rgba(59,130,246,0.5); }

/* Company Cards Container */
.companies-container {
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* Company Card (Row) */
.company-card {
  display: flex;
  align-items: center;
  padding: 6px 8px;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
  border-top: 1px solid rgba(255,255,255,0.04);
  position: relative;
}
.company-card:first-child { border-top: none; }
.company-card:active {
  background: rgba(59,130,246,0.1);
}
.company-card .hover-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary-light), var(--primary));
  opacity: 0;
  transition: opacity 0.2s;
}
.company-card:hover .hover-bar,
.company-card:active .hover-bar { opacity: 1; }

/* Logo */
.logo-wrap {
  width: 120px;
  flex-shrink: 0;
}
.logo-box {
  height: 40px;
  width: 120px;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Bonus Info */
.bonus-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  min-width: 0;
}
.bonus-amount {
  font-size: 11px;
  font-weight: 700;
  background: linear-gradient(to right, #fff, var(--primary-light), #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}
.bonus-desc {
  font-size: 9px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

/* CTA Button */
.cta-btn {
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  white-space: nowrap;
  letter-spacing: 0.3px;
}
.cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,0.1));
  opacity: 0;
  transition: opacity 0.2s;
}

/* Bottom Nav */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-around;
  padding: 6px 0 max(6px, env(safe-area-inset-bottom));
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  padding: 4px 8px;
  transition: transform 0.2s;
}
.nav-item:active { transform: scale(0.9); }
.nav-item img {
  width: 22px;
  height: 22px;
  opacity: 0.6;
}
.nav-item.active img { opacity: 1; }
.nav-item span {
  font-size: 9px;
  color: var(--text-muted);
}
.nav-item.active span { color: var(--primary-light); }

/* Main content area */
.main-content {
  max-width: 768px;
  margin: 0 auto;
  padding: 0 16px 100px;
}
.content-section {
  margin-top: 8px;
}

/* Popup Overlay */
.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.popup-overlay.hidden { display: none; }
.popup-content {
  position: relative;
  max-width: 280px;
  width: 100%;
}
.popup-content img {
  width: 100%;
  border-radius: 16px;
}
.popup-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.8);
  border: 2px solid rgba(255,255,255,0.3);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  z-index: 10;
}

/* Footer Banner */
.footer-banner {
  display: block;
  margin: 12px 0;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(251,146,60,0.4);
}
.footer-banner img {
  width: 100%;
  height: 105px;
  object-fit: cover;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in {
  animation: fadeInUp 0.3s ease forwards;
}

/* No results */
.no-results {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}
.no-results svg {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  opacity: 0.5;
}

/* MarsBahis VIP Card */
.company-card.vip-card {
  background: linear-gradient(135deg, rgba(220,38,38,0.15), rgba(220,38,38,0.05));
  border: 1px solid rgba(220,38,38,0.3);
  border-radius: 12px;
  margin: 4px;
  padding: 10px 8px;
  position: relative;
  overflow: hidden;
}
.company-card.vip-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(220,38,38,0.05), transparent);
  animation: shimmer 3s infinite;
}
.company-card.vip-card .hover-bar {
  background: linear-gradient(to bottom, #dc2626, #991b1b);
  opacity: 1;
  width: 3px;
}
.company-card.vip-card .bonus-amount {
  background: linear-gradient(to right, #fca5a5, #fff, #fca5a5);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 13px;
}
.company-card.vip-card .cta-btn {
  background: linear-gradient(135deg, #dc2626, #991b1b);
}
.vip-badge {
  position: absolute;
  top: 4px;
  right: 8px;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #fbbf24;
  text-transform: uppercase;
}

/* ==========================================================================
   Makale sayfaları (single / archive)
   ========================================================================== */
.post-single {
  background: var(--bg-card);
  border-radius: 14px;
  padding: 18px 16px 20px;
  margin-top: 10px;
}
.post-title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 8px;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--bg-alt);
}
.post-cat {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}
.post-body { font-size: 15px; line-height: 1.7; color: var(--text-secondary); }
.post-body h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  margin: 22px 0 8px;
}
.post-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin: 18px 0 6px;
}
.post-body p { margin-bottom: 12px; }
.post-body ul, .post-body ol { margin: 0 0 12px 20px; }
.post-body li { margin-bottom: 6px; list-style: disc; }
.post-body ol li { list-style: decimal; }
.post-body a { color: var(--primary-light); text-decoration: underline; }
.post-body img { max-width: 100%; height: auto; border-radius: 10px; }
.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 12px;
  font-size: 13px;
}
.post-body th, .post-body td {
  padding: 8px;
  border: 1px solid var(--bg-alt);
  text-align: left;
}
.post-cta {
  display: block;
  margin-top: 20px;
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}
.post-list { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.post-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.35;
}
.post-link-date { font-size: 11px; color: var(--text-muted); white-space: nowrap; flex: none; }
.post-pager { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.post-pager .page-numbers {
  min-width: 34px;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 13px;
  text-align: center;
  text-decoration: none;
}
.post-pager .page-numbers.current { background: var(--primary); color: #fff; font-weight: 700; }
