/*
Theme Name: India Emerald SEO
Theme URI: #
Author: EmeraldWin India
Author URI: #
Description: EmeraldWin luxury gaming theme with split-screen layout, zigzag game sections, and vertical timeline news.
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: india-emerald-seo
Tags: gaming, casino, responsive, bootstrap, india, luxury
*/

:root {
  --em-deep: #071a0e;
  --em-dark: #0a2414;
  --em-mid: #0d3320;
  --emerald: #00e676;
  --emerald-light: #69f0ae;
  --gold: #d4af37;
  --gold-light: #f5d76e;
  --text-light: #e8f5e9;
  --text-muted: #a5d6a7;
  --surface: #0f2e1a;
  --surface-card: #112e1c;
  --body-bg: #050f09;
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--body-bg);
  color: var(--text-light);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .heading-font {
  font-family: "Cormorant Garamond", serif;
}

/* ===== GOLD LINE DECORATION ===== */
.gold-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 12px auto;
}
.gold-line-left {
  margin-left: 0;
}

/* ===== GEMSTONE CLIP-PATH EFFECTS ===== */
.gem-cut {
  clip-path: polygon(10% 0%, 90% 0%, 100% 10%, 100% 90%, 90% 100%, 10% 100%, 0% 90%, 0% 10%);
}
.gem-cut-sm {
  clip-path: polygon(8% 0%, 92% 0%, 100% 12%, 100% 88%, 92% 100%, 8% 100%, 0% 88%, 0% 12%);
}

/* ===== NAVBAR ===== */
.em-navbar {
  background: rgba(7, 26, 14, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding: 12px 0;
}
.em-navbar .nav-link {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  transition: color 0.3s;
  padding: 8px 16px;
}
.em-navbar .nav-link:hover,
.em-navbar .nav-link.active {
  color: var(--emerald);
}
.em-navbar .nav-highlight {
  color: var(--gold) !important;
  font-weight: 700;
  border: 1px solid var(--gold);
  border-radius: 4px;
  margin: 0 8px;
}
.em-brand-text {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--emerald), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.em-dropdown {
  background: var(--em-deep);
  border: 1px solid rgba(0, 230, 118, 0.15);
  border-radius: 8px;
}
.em-dropdown .dropdown-item {
  color: var(--text-muted);
}
.em-dropdown .dropdown-item:hover {
  background: rgba(0, 230, 118, 0.1);
  color: var(--emerald);
}

/* ===== SPLIT-SCREEN HERO ===== */
.em-hero {
  min-height: 85vh;
  display: flex;
  position: relative;
}
.em-hero-left {
  width: 45%;
  position: sticky;
  top: 0;
  height: 100vh;
  background: linear-gradient(135deg, #071a0e 0%, #0d3320 40%, #0a2414 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-right: 1px solid var(--gold);
}
.em-hero-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(45deg, transparent, transparent 30px, rgba(0,230,118,0.03) 30px, rgba(0,230,118,0.03) 31px),
    repeating-linear-gradient(-45deg, transparent, transparent 30px, rgba(212,175,55,0.02) 30px, rgba(212,175,55,0.02) 31px);
}
.em-hero-left .em-brand-logo {
  font-family: "Cormorant Garamond", serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--emerald);
  text-shadow: 0 0 40px rgba(0, 230, 118, 0.3);
  z-index: 2;
  text-align: center;
  line-height: 1.2;
}
.em-hero-left .em-brand-logo .gold-part {
  color: var(--gold);
  display: block;
  font-size: 1.8rem;
  letter-spacing: 8px;
  text-transform: uppercase;
}
.em-hero-left .em-gem-decoration {
  width: 120px;
  height: 120px;
  border: 2px solid var(--gold);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.em-hero-left .em-gem-decoration i {
  font-size: 3rem;
  color: var(--emerald);
}
.em-hero-right {
  width: 55%;
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.em-hero-right h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-light);
  line-height: 1.2;
  margin-bottom: 20px;
}
.em-hero-right h1 .text-emerald {
  color: var(--emerald);
}
.em-hero-right p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 30px;
}

/* ===== CTA BUTTONS ===== */
.em-btn-primary {
  background: linear-gradient(135deg, var(--emerald), #00c853);
  color: var(--em-deep);
  font-weight: 700;
  border: none;
  padding: 14px 36px;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.em-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 230, 118, 0.3);
  color: var(--em-deep);
}
.em-btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 12px 32px;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
  letter-spacing: 1px;
  font-size: 0.85rem;
  font-weight: 600;
}
.em-btn-outline:hover {
  background: var(--gold);
  color: var(--em-deep);
}

/* ===== SECTION TITLES ===== */
.em-section-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-light);
  position: relative;
  display: inline-block;
}
.em-section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--gold);
}
.em-section-badge {
  display: inline-block;
  background: rgba(0, 230, 118, 0.1);
  color: var(--emerald);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 12px;
  border: 1px solid rgba(0, 230, 118, 0.2);
  border-radius: 2px;
  margin-bottom: 12px;
}

/* ===== ZIGZAG GAMES SECTION ===== */
.em-zigzag-row {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
  padding: 30px 0;
}
.em-zigzag-row:nth-child(even) {
  flex-direction: row-reverse;
}
.em-zigzag-row .em-zigzag-img {
  flex: 0 0 55%;
  position: relative;
}
.em-zigzag-row .em-zigzag-img img {
  width: 100%;
  border-radius: 4px;
  border: 1px solid rgba(212, 175, 55, 0.15);
}
.em-zigzag-row .em-zigzag-img::after {
  content: '';
  position: absolute;
  inset: -4px;
  clip-path: polygon(3% 0%, 97% 0%, 100% 3%, 100% 97%, 97% 100%, 3% 100%, 0% 97%, 0% 3%);
  border: 1px solid rgba(0, 230, 118, 0.1);
  pointer-events: none;
}
.em-zigzag-row .em-zigzag-text {
  flex: 1;
}
.em-zigzag-row .em-zigzag-text h3 {
  font-size: 1.8rem;
  color: var(--text-light);
  margin-bottom: 12px;
}
.em-zigzag-row .em-zigzag-text p {
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== GAME GRID ===== */
.em-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.em-game-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  transition: all 0.4s;
  border: 1px solid rgba(212, 175, 55, 0.08);
}
.em-game-card img {
  width: 100%;
  aspect-ratio: 200/156;
  object-fit: cover;
  transition: transform 0.5s, filter 0.5s;
}
.em-game-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 12px 40px rgba(0, 230, 118, 0.15);
}
.em-game-card:hover img {
  transform: scale(1.08);
  filter: brightness(1.1);
}
.em-game-card .em-game-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 10px;
  background: linear-gradient(transparent, rgba(7, 26, 14, 0.95));
  color: var(--text-light);
  font-size: 0.75rem;
  font-weight: 600;
}

/* ===== VERTICAL TIMELINE (NEWS) ===== */
.em-timeline {
  position: relative;
  padding: 40px 0;
}
.em-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--gold), var(--gold), transparent);
  transform: translateX(-50%);
}
.em-timeline-item {
  position: relative;
  width: 45%;
  margin-bottom: 40px;
}
.em-timeline-item:nth-child(odd) {
  margin-left: 0;
  text-align: right;
  padding-right: 40px;
}
.em-timeline-item:nth-child(even) {
  margin-left: 55%;
  text-align: left;
  padding-left: 40px;
}
.em-timeline-item::before {
  content: '';
  position: absolute;
  top: 20px;
  width: 12px;
  height: 12px;
  background: var(--emerald);
  border: 2px solid var(--gold);
  border-radius: 50%;
  z-index: 2;
}
.em-timeline-item:nth-child(odd)::before {
  right: -6px;
}
.em-timeline-item:nth-child(even)::before {
  left: -6px;
}
.em-timeline-card {
  background: var(--surface-card);
  border: 1px solid rgba(0, 230, 118, 0.1);
  border-radius: 4px;
  padding: 20px;
  transition: all 0.3s;
}
.em-timeline-card:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 30px rgba(0, 230, 118, 0.1);
}
.em-timeline-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 2px;
  margin-bottom: 12px;
}
.em-timeline-card h4 {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 8px;
}
.em-timeline-card h4 a {
  color: inherit;
  text-decoration: none;
}
.em-timeline-card h4 a:hover {
  color: var(--emerald);
}
.em-timeline-card .em-tl-date {
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 600;
}
.em-timeline-card .em-tl-excerpt {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ===== DOWNLOAD SECTION ===== */
.em-download-card {
  background: var(--surface);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 4px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s;
}
.em-download-card:hover {
  border-color: var(--emerald);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 230, 118, 0.1);
}
.em-download-card i {
  font-size: 2.5rem;
  color: var(--emerald);
  margin-bottom: 16px;
}
.em-download-card h4 {
  color: var(--text-light);
  font-size: 1.3rem;
}
.em-download-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ===== FEATURES SECTION ===== */
.em-feature-row {
  display: flex;
  align-items: center;
  gap: 50px;
  padding: 40px 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.08);
}
.em-feature-row:nth-child(even) {
  flex-direction: row-reverse;
}
.em-feature-img {
  flex: 0 0 45%;
}
.em-feature-img img {
  width: 100%;
  border-radius: 4px;
  border: 1px solid rgba(212, 175, 55, 0.1);
}
.em-feature-text {
  flex: 1;
}
.em-feature-text h3 {
  font-size: 1.6rem;
  color: var(--text-light);
  margin-bottom: 16px;
}
.em-feature-text p {
  color: var(--text-muted);
  line-height: 1.8;
}

/* ===== PARTNER SECTION ===== */
.em-partner-logo {
  max-height: 60px;
  filter: grayscale(40%) brightness(0.8);
  transition: all 0.3s;
}
.em-partner-logo:hover {
  filter: grayscale(0%) brightness(1);
}

/* ===== FOOTER - SPLIT SCREEN ===== */
.em-footer {
  position: relative;
}
.em-footer-split {
  display: flex;
  min-height: 300px;
}
.em-footer-left {
  width: 50%;
  background: var(--em-deep);
  padding: 50px 40px;
  border-right: 1px solid var(--gold);
}
.em-footer-right {
  width: 50%;
  background: #0a2414;
  padding: 50px 40px;
}
.em-footer h5 {
  font-family: "Cormorant Garamond", serif;
  color: var(--gold);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.em-footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
  font-size: 0.9rem;
}
.em-footer a:hover {
  color: var(--emerald);
}
.em-footer-bottom {
  background: #030a06;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  padding: 16px 0;
}
.em-footer-bottom small {
  color: var(--text-muted);
}
.em-footer-bottom a {
  color: var(--text-muted);
  text-decoration: none;
}
.em-footer-bottom a:hover {
  color: var(--gold);
}
.em-social a {
  color: var(--gold);
  font-size: 1.4rem;
  transition: color 0.3s;
}
.em-social a:hover {
  color: var(--emerald);
}

/* ===== BACK TO TOP ===== */
#backToTop {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 999;
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 4px;
  background: var(--emerald);
  color: var(--em-deep);
  border: 1px solid var(--gold);
  font-size: 1.2rem;
  cursor: pointer;
}

/* ===== FLOATING SPIN ===== */
.random-spin {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  width: 56px;
  height: 56px;
}
.rotate-3d {
  animation: rotate3d 5s linear infinite;
}
@keyframes rotate3d {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}

/* ===== OFFCANVAS ===== */
.em-offcanvas {
  background: var(--em-deep) !important;
  width: min(88vw, 380px) !important;
  border-right: 1px solid rgba(212, 175, 55, 0.2) !important;
}
.em-offcanvas .nav-link {
  color: var(--text-muted);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.em-offcanvas .nav-link:hover {
  color: var(--emerald);
}

/* ===== CONTENT SECTIONS ===== */
.em-section {
  padding: 60px 0;
}
.em-section-dark {
  background: var(--em-deep);
}
.em-section-surface {
  background: var(--surface);
}

/* ===== ARTICLE STYLES ===== */
.article-content p { margin-bottom: 1.5rem; color: var(--text-muted); }
.article-content h2, .article-content h3, .article-content h4 { margin-top: 2rem; margin-bottom: 1rem; color: var(--text-light); }
.article-content img { max-width: 100%; border-radius: 4px; margin: 1.5rem 0; border: 1px solid rgba(212,175,55,0.1); }
.article-content blockquote { border-left: 3px solid var(--gold); padding: 1rem 1.5rem; background: var(--surface); border-radius: 0 4px 4px 0; }
.article-content a { color: var(--emerald); }

/* ===== BREADCRUMB ===== */
.breadcrumb { background: transparent; padding: 0; }
.breadcrumb-item a { color: var(--emerald); }
.breadcrumb-item.active { color: var(--text-muted); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--gold); }

/* ===== MISC ===== */
.page-title { color: var(--emerald); }
.text-emerald { color: var(--emerald) !important; }
.text-gold { color: var(--gold) !important; }
.bg-emerald-dark { background: var(--em-deep) !important; }
.bg-surface { background: var(--surface) !important; }
.border-gold { border-color: var(--gold) !important; }
