/*
Theme Name: Pari Betting Theme
Theme URI: #
Author: Parimatch India
Author URI: #
Description: Sports betting and casino WordPress theme inspired by Parimatch India. Dark theme with yellow accents, featuring sports betting cards, casino games, and news sections.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pari-betting-theme
Tags: gaming, betting, sports, casino, dark, responsive
*/

/* ===== CSS Variables ===== */
:root {
  --pari-black: #060606;
  --pari-yellow: #FFFF00;
  --pari-dark-card: #1a1a2e;
  --pari-border: #2d2d3d;
  --pari-text: #ffffff;
  --pari-text-secondary: #aaaaaa;
  --pari-green: #4caf50;
  --pari-red: #f44336;
  --pari-header-bg: #111111;
  --pari-radius: 12px;
  --pari-radius-sm: 8px;
  --pari-transition: all 0.3s ease;
}

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

body {
  background-color: var(--pari-black);
  color: var(--pari-text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-bottom: 70px;
}

a { color: var(--pari-text); text-decoration: none; transition: var(--pari-transition); }
a:hover { color: var(--pari-yellow); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ===== App Download Banner ===== */
.app-banner {
  background: linear-gradient(90deg, #1a1a2e 0%, #0d0d1a 100%);
  padding: 8px 16px;
  text-align: center;
  position: relative;
  z-index: 1000;
  border-bottom: 1px solid var(--pari-border);
}
.app-banner-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--pari-text);
}
.app-banner-text {
  background: linear-gradient(90deg, var(--pari-yellow), var(--pari-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  font-size: 13px;
}
.app-banner-close {
  background: none;
  border: none;
  color: var(--pari-text-secondary);
  font-size: 20px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

/* ===== Site Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--pari-header-bg);
  border-bottom: 1px solid var(--pari-border);
  padding: 0 16px;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  height: 56px;
}
.header-left { display: flex; align-items: center; }
.site-logo img { height: 40px; width: auto; }
.header-nav { display: none; }
.header-nav .nav-menu { display: flex; gap: 24px; }
.header-nav .nav-menu li a {
  color: var(--pari-text);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 0;
}
.header-nav .nav-menu li a:hover { color: var(--pari-yellow); }
.header-right { display: flex; gap: 8px; align-items: center; }
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--pari-text);
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
}

/* ===== Buttons ===== */
.btn-yellow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--pari-yellow);
  color: #000;
  font-weight: 700;
  border: none;
  border-radius: var(--pari-radius-sm);
  padding: 10px 20px;
  font-size: 14px;
  cursor: pointer;
  transition: var(--pari-transition);
  text-decoration: none;
}
.btn-yellow:hover { background: #e6e600; color: #000; transform: translateY(-1px); }
.btn-yellow.btn-sm { padding: 6px 14px; font-size: 12px; }

.btn-outline-yellow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--pari-yellow);
  font-weight: 700;
  border: 2px solid var(--pari-yellow);
  border-radius: var(--pari-radius-sm);
  padding: 8px 18px;
  font-size: 14px;
  cursor: pointer;
  transition: var(--pari-transition);
  text-decoration: none;
}
.btn-outline-yellow:hover { background: var(--pari-yellow); color: #000; }
.btn-outline-yellow.btn-sm { padding: 4px 12px; font-size: 12px; border-width: 1.5px; }

/* ===== Mobile Menu Overlay ===== */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mobile-menu-overlay.active { display: block; opacity: 1; }
.mobile-menu-content {
  padding: 60px 24px 24px;
  height: 100%;
  overflow-y: auto;
}
.mobile-menu-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--pari-text);
  font-size: 24px;
  cursor: pointer;
}
.mobile-nav { margin-bottom: 32px; }
.mobile-nav li { border-bottom: 1px solid var(--pari-border); }
.mobile-nav li a {
  display: block;
  padding: 16px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--pari-text);
}
.mobile-nav li a:hover { color: var(--pari-yellow); }
.mobile-menu-buttons { display: flex; gap: 12px; }
.mobile-menu-buttons .btn-yellow,
.mobile-menu-buttons .btn-outline-yellow { flex: 1; text-align: center; }

/* ===== Hero Slider ===== */
.hero-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 1600 / 512;
  min-height: 150px;
  max-height: 420px;
  overflow: hidden;
  border-radius: 0 0 var(--pari-radius) var(--pari-radius);
  margin-bottom: 16px;
}
.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 1;
}
.hero-slide.active {
  opacity: 1;
  z-index: 2;
}
.hero-slide::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(to top, rgba(6,6,6,0.9), transparent);
}
.hero-slide-content {
  position: absolute;
  bottom: 24px;
  left: 24px;
  z-index: 2;
  color: var(--pari-text);
}
.hero-slide-content h2 { font-size: 20px; margin-bottom: 8px; }
.hero-slide-content p { font-size: 13px; color: var(--pari-text-secondary); margin-bottom: 12px; }
.slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 3;
}
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pari-text-secondary);
  cursor: pointer;
  transition: var(--pari-transition);
}
.slider-dot.active { background: var(--pari-yellow); width: 20px; border-radius: 4px; }

/* ===== Category Icons ===== */
.category-icons {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.category-icons::-webkit-scrollbar { display: none; }
.category-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 72px;
  scroll-snap-align: start;
  cursor: pointer;
  transition: var(--pari-transition);
  text-decoration: none;
}
.category-icon-item:hover { transform: translateY(-2px); }
.category-icon-item .icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--pari-dark-card);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--pari-border);
  overflow: hidden;
}
.category-icon-item .icon-circle img { width: 28px; height: 28px; object-fit: contain; }
.category-icon-item span {
  font-size: 11px;
  color: var(--pari-text-secondary);
  text-align: center;
  white-space: nowrap;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Section Titles ===== */
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  margin-bottom: 0;
}
.section-title h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--pari-text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title .view-all {
  font-size: 12px;
  color: var(--pari-yellow);
  font-weight: 600;
}

/* ===== Hot Matches ===== */
.hot-matches { padding: 0 0 16px; }
.hot-matches .matches-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 16px 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.hot-matches .matches-scroll::-webkit-scrollbar { display: none; }
.match-card {
  background: var(--pari-dark-card);
  border-radius: var(--pari-radius);
  padding: 16px;
  min-width: 280px;
  scroll-snap-align: start;
  border: 1px solid var(--pari-border);
  transition: var(--pari-transition);
}
.match-card:hover { border-color: var(--pari-yellow); transform: translateY(-2px); }
.match-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.match-card-league {
  font-size: 11px;
  color: var(--pari-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.match-card-live {
  font-size: 10px;
  color: var(--pari-green);
  font-weight: 700;
  background: rgba(76,175,80,0.1);
  padding: 2px 8px;
  border-radius: 4px;
}
.match-card-teams {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.match-card-team {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}
.match-card-team img { width: 20px; height: 20px; border-radius: 50%; }
.match-card-odds {
  display: flex;
  gap: 8px;
}
.odds-btn {
  flex: 1;
  background: var(--pari-border);
  color: var(--pari-green);
  border: none;
  border-radius: var(--pari-radius-sm);
  padding: 8px 4px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  min-width: 60px;
  cursor: pointer;
  transition: var(--pari-transition);
}
.odds-btn:hover { background: rgba(76,175,80,0.2); }
.odds-btn .odds-label {
  display: block;
  font-size: 9px;
  color: var(--pari-text-secondary);
  font-weight: 400;
  margin-bottom: 2px;
}

/* ===== Casino Games ===== */
.casino-games { padding: 0 16px 16px; }
.casino-games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.game-card {
  border-radius: var(--pari-radius);
  overflow: hidden;
  aspect-ratio: 1/1;
  position: relative;
  background: var(--pari-dark-card);
  border: 1px solid var(--pari-border);
  transition: var(--pari-transition);
  cursor: pointer;
}
.game-card:hover { transform: scale(1.03); border-color: var(--pari-yellow); }
.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.game-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
}
.game-card-overlay span {
  font-size: 11px;
  font-weight: 600;
  color: var(--pari-text);
}

/* ===== News Section ===== */
.news-section { padding: 0 16px 24px; }
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.news-card {
  background: var(--pari-dark-card);
  border-radius: var(--pari-radius);
  overflow: hidden;
  border: 1px solid var(--pari-border);
  transition: var(--pari-transition);
}
.news-card:hover { border-color: var(--pari-yellow); transform: translateY(-2px); }
.news-card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.news-card-body { padding: 16px; }
.news-card-category {
  font-size: 11px;
  color: var(--pari-yellow);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.news-card-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
  color: var(--pari-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-title a { color: inherit; }
.news-card-title a:hover { color: var(--pari-yellow); }
.news-card-meta {
  font-size: 12px;
  color: var(--pari-text-secondary);
}

/* ===== Bottom Tab Bar ===== */
.bottom-tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--pari-header-bg);
  border-top: 1px solid var(--pari-border);
  display: flex;
  z-index: 998;
  padding: 6px 0 env(safe-area-inset-bottom, 6px);
}
.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 4px;
  color: var(--pari-text-secondary);
  font-size: 10px;
  text-decoration: none;
  transition: var(--pari-transition);
}
.tab-item i { font-size: 20px; }
.tab-item.active { color: var(--pari-yellow); }
.tab-item:hover { color: var(--pari-yellow); }

/* ===== Site Footer ===== */
.site-footer {
  background: var(--pari-header-bg);
  border-top: 1px solid var(--pari-border);
  padding: 40px 16px 100px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-top {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-brand img { height: 32px; margin-bottom: 12px; }
.footer-desc {
  color: var(--pari-text-secondary);
  font-size: 13px;
  line-height: 1.6;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.footer-col h5 {
  font-size: 14px;
  font-weight: 700;
  color: var(--pari-text);
  margin-bottom: 12px;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  font-size: 13px;
  color: var(--pari-text-secondary);
}
.footer-col ul li a:hover { color: var(--pari-yellow); }
.footer-bottom {
  border-top: 1px solid var(--pari-border);
  padding-top: 20px;
  text-align: center;
}
.footer-bottom p {
  font-size: 12px;
  color: var(--pari-text-secondary);
}

/* ===== Breadcrumb ===== */
.pari-breadcrumb {
  padding: 12px 16px;
  font-size: 12px;
  color: var(--pari-text-secondary);
}
.pari-breadcrumb a { color: var(--pari-text-secondary); }
.pari-breadcrumb a:hover { color: var(--pari-yellow); }
.pari-breadcrumb span { margin: 0 4px; }

/* ===== Single Post ===== */
.single-post-header { padding: 24px 16px 16px; }
.single-post-header h1 { font-size: 22px; font-weight: 700; margin-bottom: 12px; line-height: 1.3; }
.single-post-meta { font-size: 12px; color: var(--pari-text-secondary); margin-bottom: 16px; }
.single-post-content {
  padding: 0 16px 32px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--pari-text);
}
.single-post-content p { margin-bottom: 16px; }
.single-post-content h2, .single-post-content h3 { margin: 24px 0 12px; font-weight: 700; }
.single-post-content h2 { font-size: 20px; }
.single-post-content h3 { font-size: 17px; }
.single-post-content img { border-radius: var(--pari-radius); margin: 16px 0; }
.single-post-content a { color: var(--pari-yellow); text-decoration: underline; }
.single-post-content ul, .single-post-content ol { padding-left: 24px; margin-bottom: 16px; }
.single-post-content ul { list-style: disc; }
.single-post-content ol { list-style: decimal; }
.single-post-content li { margin-bottom: 8px; }

/* ===== Pagination ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 24px 16px;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--pari-radius-sm);
  background: var(--pari-dark-card);
  color: var(--pari-text);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--pari-border);
}
.pagination .page-numbers.current {
  background: var(--pari-yellow);
  color: #000;
  border-color: var(--pari-yellow);
}

/* ===== Animations ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.5s ease forwards; }

@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ===== Utility Classes ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.text-yellow { color: var(--pari-yellow); }
.text-green { color: var(--pari-green); }
.text-red { color: var(--pari-red); }
.bg-dark-card { background: var(--pari-dark-card); }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }
.p-16 { padding: 16px; }

/* ===== Desktop Styles ===== */
@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .header-nav { display: block; }
  .mobile-menu-toggle { display: none; }
  .bottom-tab-bar { display: none; }
  .site-footer { padding-bottom: 40px; }
  .hero-slider { min-height: 350px; border-radius: var(--pari-radius); margin: 16px; }
  .casino-games-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { flex-direction: row; justify-content: space-between; }
  .footer-brand { max-width: 300px; }
  .match-card { min-width: 300px; }
}

@media (min-width: 1024px) {
  .casino-games-grid { grid-template-columns: repeat(6, 1fr); }
  .news-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-slider { min-height: 400px; }
  .hero-slide-content h2 { font-size: 28px; }
}
