/* ===== PAGE HOME — Superbet Brasil ===== */

/* Main layout wrapper */
.page-wrapper {
  margin-top: var(--header-height);
  display: flex;
  min-height: calc(100vh - var(--header-height));
}

/* Sidebar esquerda */
.sidebar-left {
  display: none;
  width: var(--sidebar-width);
  background: var(--color-bg);
  border-right: 1px solid var(--color-surface-border);
  padding: 1rem 0.75rem;
  overflow-y: auto;
  flex-shrink: 0;
  position: sticky;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
}
.sidebar-left h3 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
  margin-top: 0;
}
.sidebar-left .sport-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.5rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text);
  border-radius: var(--border-radius-sm);
  transition: all var(--transition);
}
.sidebar-left .sport-links a:hover,
.sidebar-left .sport-links a.active {
  background: var(--color-surface);
  color: var(--color-primary);
}
.sidebar-left .sport-links a .sport-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  flex-shrink: 0;
}
.sidebar-left .sport-links a.more-link {
  font-size: 0.8rem;
  color: var(--color-primary);
  font-weight: 600;
  margin-top: 0.25rem;
}

/* Main content area */
.main-content {
  flex: 1;
  min-width: 0;
  padding: 0.75rem;
  background: var(--color-surface);
}

/* Betslip direita */
.betslip-right {
  display: none;
  width: var(--betslip-width);
  background: var(--color-bg);
  border-left: 1px solid var(--color-surface-border);
  padding: 0.75rem;
  flex-shrink: 0;
  position: sticky;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  overflow-y: auto;
}
.betslip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-primary);
  margin-bottom: 0.75rem;
}
.betslip-header h4 { font-size: 0.9rem; margin: 0; }
.betslip-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--color-muted);
}
.betslip-empty svg { margin: 0 auto 0.75rem; opacity: 0.4; }
.betslip-empty p { font-size: 0.85rem; margin-bottom: 0.75rem; }

/* Tabs */
.tabs-row {
  display: flex;
  gap: 0;
  margin-bottom: 0.75rem;
  background: var(--color-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.tab-item {
  flex: 1;
  padding: 0.6rem 0.5rem;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all var(--transition);
}
.tab-item.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  background: #fff5f5;
}

/* Promo carousel */
.promo-carousel {
  margin-bottom: 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  display: flex;
  gap: 0.75rem;
  padding-bottom: 0.5rem;
}
.promo-card {
  min-width: 280px;
  max-width: 320px;
  flex-shrink: 0;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  scroll-snap-align: start;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.promo-card .promo-bg {
  padding: 1.25rem;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.promo-card.superodds .promo-bg {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
}
.promo-card .promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(255,255,255,0.2);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  width: fit-content;
}
.promo-card .promo-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.promo-card .promo-odds {
  font-size: 1.3rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
}
.promo-card .promo-odds .odds-boost {
  font-size: 0.85rem;
  text-decoration: line-through;
  opacity: 0.7;
  margin-right: 0.4rem;
  font-weight: 600;
}
.promo-card .promo-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Quick actions grid */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.quick-action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.6rem 0.25rem;
  text-align: center;
  cursor: pointer;
  border-radius: var(--border-radius);
  transition: background var(--transition);
}
.quick-action-item:hover { background: var(--color-bg); }
.quick-action-item .qa-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.quick-action-item span {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
}

/* Match cards */
.match-cards-section h3 {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}
.match-cards-section h3 .live-dot {
  width: 8px; height: 8px;
  background: var(--color-live);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.match-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.match-card {
  background: var(--color-bg);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--border-radius);
  padding: 0.75rem;
  transition: box-shadow var(--transition);
}
.match-card:hover { box-shadow: var(--shadow-md); }
.match-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.match-card-head .league { font-size: 0.7rem; color: var(--color-muted); font-weight: 600; }
.match-card-head .time { font-size: 0.7rem; color: var(--color-live); font-weight: 700; }
.match-card-teams { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.match-card-teams .team { font-size: 0.85rem; font-weight: 600; flex: 1; }
.match-card-teams .vs { font-size: 0.7rem; color: var(--color-muted); padding: 0 0.5rem; }
.match-card-odds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}
.odds-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.4rem;
  background: var(--color-surface);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--border-radius-sm);
  font-size: 0.7rem;
  transition: border-color var(--transition);
}
.odds-chip:hover { border-color: var(--color-primary); }
.odds-chip .label { color: var(--color-muted); font-weight: 500; margin-bottom: 0.15rem; font-size: 0.65rem; }
.odds-chip .value { font-weight: 800; color: var(--color-odds); font-size: 0.85rem; }
.odds-chip .value.boost { color: var(--color-primary); }
.odds-disclaimer { font-size: 0.65rem; color: var(--color-muted); text-align: center; margin-bottom: 1rem; font-style: italic; }

/* Badges strip */
.badges-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

/* Content section - article area */
.content-area {
  background: var(--color-bg);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.25rem;
}
.content-area h1 {
  font-size: 1.6rem;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.content-area .article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-surface-border);
}

/* Author block */
.author-block {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--color-surface);
  border-radius: var(--border-radius-lg);
  border-left: 4px solid var(--color-primary);
  margin: 2rem 0;
}
.author-block img {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.author-info h4 { margin: 0 0 0.2rem; font-size: 1rem; }
.author-info .author-role { color: var(--color-primary); font-size: 0.82rem; font-weight: 600; margin-bottom: 0.3rem; }
.author-info p { font-size: 0.85rem; color: var(--color-muted); margin: 0; line-height: 1.5; }

/* FAQ */
.faq-item {
  border: 1px solid var(--color-surface-border);
  border-radius: var(--border-radius);
  margin-bottom: 0.5rem;
  overflow: hidden;
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--color-bg);
  transition: background var(--transition);
  min-height: 44px;
}
.faq-question:hover { background: var(--color-surface); }
.faq-question .faq-toggle {
  font-size: 1.2rem;
  transition: transform var(--transition);
  color: var(--color-primary);
  font-weight: 700;
}
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-answer {
  padding: 0 1rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 0.88rem;
  color: var(--color-text);
  line-height: 1.7;
}
.faq-item.open .faq-answer {
  max-height: 600px;
  padding: 0.75rem 1rem 1rem;
}

/* Pros / Cons */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}
.pros-box, .cons-box {
  background: var(--color-surface);
  border-radius: var(--border-radius-lg);
  padding: 1rem;
}
.pros-box { border-left: 4px solid var(--color-live); }
.cons-box { border-left: 4px solid var(--color-primary); }
.pros-box h4, .cons-box h4 {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
.pros-box li, .cons-box li {
  list-style: none;
  padding: 0.3rem 0;
  font-size: 0.88rem;
}
.pros-box li::before { content: "✓ "; color: var(--color-live); font-weight: 700; }
.cons-box li::before { content: "✗ "; color: var(--color-primary); font-weight: 700; }

/* Bottom bar mobile */
.bottom-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--mobile-bar-height);
  background: var(--color-bg);
  border-top: 1px solid var(--color-surface-border);
  display: flex;
  z-index: 950;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
}
.bottom-bar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--color-muted);
  transition: color var(--transition);
  min-height: var(--mobile-bar-height);
}
.bottom-bar-item .bar-icon { font-size: 1.1rem; }
.bottom-bar-item.active { color: var(--color-primary); }

@media (min-width: 601px) {
  .bottom-bar { display: none; }
}
@media (min-width: 1025px) {
  .sidebar-left { display: block; }
  .betslip-right { display: block; }
  .main-content { padding: 1rem 1.25rem; }
  .quick-actions {
    grid-template-columns: repeat(8, 1fr);
  }
  .match-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .promo-carousel { flex-wrap: nowrap; }
  .pros-cons { grid-template-columns: 1fr 1fr; }
  .content-area h1 { font-size: 1.9rem; }
  .content-area { padding: 2rem; }
}
@media (min-width: 601px) and (max-width: 1024px) {
  .quick-actions {
    grid-template-columns: repeat(4, 1fr);
  }
  .match-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}