/* ===== MAIN PAGE (Spor Bahisleri) ===== */
/* Light theme - ana sayfa */

body.page-main {
  background: var(--bg-main);
  color: var(--text-dark);
  font-size: 13px;
  padding-bottom: 100px;
}

/* ===== SUB NAV ===== */
.sub-nav {
  background: var(--bg-white);
  padding: 8px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}
.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-main);
  border: 2px solid var(--primary);
  border-radius: 6px;
  padding: 6px 12px;
  width: 180px;
}
.search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 12px;
  color: var(--text-muted);
  flex: 1;
  font-family: inherit;
}
.search-box i { color: var(--primary); font-size: 14px; margin-left: 4px; }
.nav-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-tab {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  color: var(--text-dark);
  transition: all 0.2s;
}
.nav-tab:hover { background: var(--bg-main); }
.nav-tab.active {
  background: var(--accent-green);
  color: var(--text-dark);
}
.nav-tab .dropdown-arrow { margin-left: 4px; font-size: 10px; }
.nav-spacer { flex: 1; }
.nav-grid-btn {
  background: var(--bg-main);
  border: 1px solid var(--border);
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 16px;
}

/* ===== MAIN 3-COLUMN LAYOUT ===== */
.main-layout {
  display: grid;
  grid-template-columns: 175px 1fr 320px;
  gap: 0;
  max-width: 100%;
  min-height: calc(100vh - 140px);
}

/* ===== LEFT SIDEBAR ===== */
.left-sidebar {
  background: var(--bg-white);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  max-height: calc(100vh - 140px);
}
.live-match-info {
  padding: 12px;
  border-bottom: 1px solid var(--border);
}
.live-match-info .league-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.live-match-info .team {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
}
.live-match-info .team-icon {
  width: 20px;
  height: 20px;
  background: var(--bg-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}
.live-match-info .team-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
}
.countdown-row {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}
.countdown-item {
  background: var(--primary);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}
.countdown-item small {
  font-size: 8px;
  font-weight: 400;
  opacity: 0.7;
}
.sidebar-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
}
.sidebar-tab {
  flex: 1;
  padding: 10px 8px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s;
  cursor: pointer;
}
.sidebar-tab.active {
  background: var(--primary);
  color: white;
}
.sidebar-tab .badge {
  background: var(--accent-green);
  color: var(--text-dark);
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: 4px;
}
.sidebar-filter {
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-muted);
}
.sidebar-filter .toggle {
  width: 36px;
  height: 18px;
  background: var(--accent-green);
  border-radius: 10px;
  position: relative;
}
.sidebar-filter .toggle::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  background: white;
  border-radius: 50%;
  top: 2px;
  right: 2px;
}
.league-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid #f3f4f6;
}
.league-item:hover { background: #f8f9ff; }
.league-item.active { background: var(--primary); color: white; }
.league-icon {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.league-name-text {
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== CENTER CONTENT ===== */
.center-content {
  padding: 12px;
  overflow-y: auto;
  max-height: calc(100vh - 140px);
}

/* Banner Slider */
.banner-slider {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
  height: 120px;
  background: linear-gradient(135deg, var(--primary) 0%, #6c63ff 50%, var(--accent-green) 100%);
}
.banner-slide {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.banner-slide .banner-text {
  color: white;
  text-align: center;
}
.banner-slide .banner-text h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.banner-slide .banner-text p {
  font-size: 12px;
  opacity: 0.9;
}
.banner-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
}
.banner-dot.active { background: white; }

/* Section titles */
.section-title {
  font-size: 13px;
  font-weight: 700;
  color: #e53935;
  margin-bottom: 10px;
  text-transform: uppercase;
}

/* Kombine Boost */
.kombine-section {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.kombine-section h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}
.kombine-match {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.kombine-match:last-child { border-bottom: none; }
.kombine-match .live-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  flex-shrink: 0;
  animation: livePulse 1.5s infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.kombine-match .match-time {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  width: 40px;
}
.kombine-match .match-teams {
  flex: 1;
  font-size: 12px;
  font-weight: 500;
}
.kombine-match .match-markets {
  font-size: 11px;
  color: var(--text-muted);
}
.kombine-live-score {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: #f0fdf4;
  border-radius: 6px;
  margin-top: 8px;
}
.kombine-live-score .wifi-icon { color: var(--accent-green); }
.kombine-live-score .score-text {
  font-size: 14px;
  font-weight: 700;
}

/* ===== CANLI BAHIS TABLE ===== */
.canli-bahis-section {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.canli-bahis-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-main);
  border-bottom: 1px solid var(--border);
}
.canli-bahis-header .sport-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}
.canli-bahis-header .sport-tag i { font-size: 14px; }
.canli-bahis-header .sport-count {
  background: var(--primary);
  color: white;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}
.canli-bahis-header .settings-btn {
  background: none;
  color: var(--text-muted);
  font-size: 16px;
}
.odds-table-header {
  display: grid;
  grid-template-columns: 1fr 60px 60px 60px 80px;
  padding: 6px 14px;
  background: #f9fafb;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.match-row {
  display: grid;
  grid-template-columns: 1fr 60px 60px 60px 80px;
  padding: 10px 14px;
  align-items: center;
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.15s;
}
.match-row:hover { background: #fafbff; }
.match-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.match-info .match-league-sm {
  font-size: 10px;
  color: var(--text-muted);
}
.match-info .match-teams-row {
  font-size: 12px;
  font-weight: 500;
}
.match-info .match-minute {
  font-size: 10px;
  color: #e53935;
  font-weight: 600;
}
.odd-btn {
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 4px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.15s;
  margin: 0 2px;
}
.odd-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.odd-btn.up { color: #16a34a; }
.odd-btn.down { color: #e53935; }
.more-markets {
  font-size: 11px;
  color: var(--primary);
  font-weight: 600;
  text-align: center;
}
.match-stats-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #fafbff;
  border-top: 1px solid var(--border);
}
.stat-icon {
  background: var(--bg-main);
  border: 1px solid var(--border);
  width: 28px;
  height: 28px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
}
.stat-icon:hover { border-color: var(--primary); color: var(--primary); }
.stat-odd-preview {
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
}
.stat-more {
  background: var(--primary);
  color: white;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
}

/* ===== RIGHT SIDEBAR ===== */
.right-sidebar {
  background: var(--bg-white);
  border-left: 1px solid var(--border);
  overflow-y: auto;
  max-height: calc(100vh - 140px);
}
.right-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
}
.right-tab {
  flex: 1;
  padding: 12px 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.2s;
  cursor: pointer;
}
.right-tab.active {
  color: var(--text-dark);
  border-bottom: 2px solid var(--primary);
}
.right-tab .count { font-weight: 700; margin-left: 4px; }
.right-tab .count-green {
  background: var(--accent-green);
  color: var(--text-dark);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  margin-left: 4px;
}

/* Live Match Right */
.live-match-right {
  padding: 12px;
  border-bottom: 1px solid var(--border);
}
.live-match-right .match-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.live-match-right .match-header-row .teams-text {
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}
.live-match-right .match-header-row .teams-text .dot {
  width: 6px;
  height: 6px;
  background: var(--accent-green);
  border-radius: 50%;
}

/* Live TV Placeholder */
.live-tv-placeholder {
  background: linear-gradient(135deg, #1a1a2e 0%, #2d2d6e 100%);
  margin: 12px;
  border-radius: var(--radius);
  padding: 40px 20px;
  text-align: center;
  color: var(--text-white);
}
.live-tv-placeholder .tv-icon {
  font-size: 48px;
  opacity: 0.3;
  margin-bottom: 12px;
}
.live-tv-placeholder h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}
.live-tv-placeholder p {
  font-size: 11px;
  opacity: 0.6;
  margin-bottom: 12px;
  line-height: 1.5;
}
.live-tv-placeholder .btn-giris {
  display: inline-block;
  background: transparent;
  border: 1px solid var(--accent-green);
  color: var(--accent-green);
  padding: 6px 20px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

/* Winners Section */
.winners-section {
  padding: 12px;
}
.winners-section h4 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}
.winners-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.winners-scroll::-webkit-scrollbar { height: 4px; }
.winners-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.winner-card {
  min-width: 160px;
  background: var(--bg-main);
  border-radius: var(--radius);
  padding: 12px;
  border: 1px solid var(--border);
}
.winner-card .winner-type {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--primary);
}
.winner-card .winner-type i { font-size: 14px; }
.winner-card .winner-amount {
  font-size: 16px;
  font-weight: 800;
  color: #16a34a;
  margin-bottom: 4px;
}
.winner-card .winner-label {
  font-size: 10px;
  color: var(--text-muted);
}
.winner-card .winner-stake {
  font-size: 11px;
  font-weight: 500;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--border);
}

/* Bahis Yaratici */
.bahis-yaratici {
  padding: 12px;
  border-top: 1px solid var(--border);
}
.bahis-yaratici h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.bahis-yaratici-card {
  background: linear-gradient(135deg, var(--primary) 0%, #6c63ff 100%);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  color: white;
}
.bahis-yaratici-card .by-icons {
  font-size: 32px;
  margin-bottom: 10px;
}
.bahis-yaratici-card h5 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}
.bahis-yaratici-card p {
  font-size: 11px;
  opacity: 0.8;
  margin-bottom: 12px;
}
.bahis-yaratici-card .by-btn {
  background: var(--accent-green);
  color: var(--text-dark);
  padding: 8px 24px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  display: inline-block;
}

/* ===== FLOATING BUTTONS ===== */
.floating-btns {
  position: fixed;
  right: 20px;
  bottom: 100px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 900;
  transition: bottom 0.3s ease;
}
.float-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: var(--shadow-md);
}
.float-btn.scroll-top { background: var(--primary); color: white; }
.float-btn.live-support {
  background: linear-gradient(135deg, #00e676, #00c853);
  color: #1a1a2e;
  width: auto;
  border-radius: 24px;
  padding: 0 18px;
  gap: 8px;
  display: flex;
  align-items: center;
  height: 48px;
  font-size: 16px;
  box-shadow: 0 4px 20px rgba(0,230,118,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.float-btn.live-support:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 28px rgba(0,230,118,0.5);
}
.float-btn.live-support .support-label {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

/* ===== MAIN PAGE FOOTER (Light Theme) ===== */
.page-main .footer {
  background: var(--bg-white);
}
.page-main .footer-col h5 { color: var(--text-dark); }
.page-main .footer-col a:hover { color: var(--primary); }
.page-main .license-info { background: var(--bg-main); }
.page-main .age-text { color: var(--text-dark); }

/* Sponsor Section */
.sponsor-section { padding: 12px 0; }
.sponsor-section h6 {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.sponsor-logos {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.sponsor-logo {
  width: 60px;
  height: 60px;
  background: var(--bg-main);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
  padding: 4px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .main-layout { grid-template-columns: 160px 1fr 280px; }
}
@media (max-width: 768px) {
  .main-layout { grid-template-columns: 1fr; }
  .left-sidebar, .right-sidebar { display: none; }
  .center-content { max-height: none; padding: 10px; }
  .sub-nav { padding: 6px 10px; gap: 6px; overflow-x: auto; flex-wrap: nowrap; }
  .search-box { width: 120px; min-width: 120px; padding: 5px 8px; }
  .search-box input { font-size: 11px; }
  .nav-tab { font-size: 12px; padding: 6px 10px; white-space: nowrap; }
  .banner-slider { height: 100px; }
  .banner-slide .banner-text h3 { font-size: 14px; }
  .banner-slide .banner-text p { font-size: 11px; }
  .kombine-section { padding: 10px; }
  .kombine-match { flex-wrap: wrap; gap: 4px; padding: 6px 0; }
  .kombine-match .match-teams { font-size: 11px; flex-basis: calc(100% - 60px); }
  .kombine-match .match-markets { font-size: 10px; margin-left: auto; }
  .odds-table-header { grid-template-columns: 1fr 50px 50px 50px 50px; padding: 6px 10px; font-size: 10px; }
  .match-row { grid-template-columns: 1fr 50px 50px 50px 50px; padding: 8px 10px; gap: 2px; }
  .match-info .match-league-sm { font-size: 9px; }
  .match-info .match-teams-row { font-size: 11px; }
  .match-info .match-minute { font-size: 9px; }
  .odd-btn { font-size: 11px; padding: 5px 2px; margin: 0 1px; }
  .more-markets { font-size: 10px; }
  .match-stats-bar { overflow-x: auto; gap: 4px; padding: 6px 10px; }
  .payment-methods { gap: 12px; flex-wrap: wrap; }
  .license-info { flex-direction: column; text-align: center; padding: 12px; }
  .license-text { text-align: center; }
  .footer-disclaimer { font-size: 9px; }
  .floating-btns { bottom: 70px; right: 12px; }
  .float-btn { width: 38px; height: 38px; font-size: 16px; }
}
@media (max-width: 380px) {
  .search-box { width: 100px; min-width: 100px; }
  .odds-table-header, .match-row { grid-template-columns: 1fr 44px 44px 44px 44px; font-size: 10px; }
  .odd-btn { font-size: 10px; padding: 4px 1px; }
}
