/* =============================================
   HOMEPAGE STYLES
   ============================================= */

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 80px 0;
  background: linear-gradient(135deg, #F7F8FA 0%, #EDF0F5 50%, #E8ECF1 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(245, 166, 35, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--color-secondary);
  border-radius: 50%;
  opacity: 0.3;
  animation: float 6s ease-in-out infinite;
}

.hero-particle:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.hero-particle:nth-child(2) { top: 60%; left: 25%; animation-delay: 1s; animation-duration: 8s; }
.hero-particle:nth-child(3) { top: 30%; left: 70%; animation-delay: 2s; animation-duration: 7s; }
.hero-particle:nth-child(4) { top: 80%; left: 80%; animation-delay: 0.5s; }
.hero-particle:nth-child(5) { top: 45%; left: 50%; animation-delay: 3s; animation-duration: 9s; }
.hero-particle:nth-child(6) { top: 15%; left: 85%; animation-delay: 1.5s; animation-duration: 5s; }
.hero-particle:nth-child(7) { top: 70%; left: 40%; animation-delay: 2.5s; animation-duration: 10s; }
.hero-particle:nth-child(8) { top: 90%; left: 15%; animation-delay: 4s; animation-duration: 7s; }

.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gap);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (max-width: 992px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero { min-height: auto; padding: 60px 0; }
}

.hero-text h1 {
  font-size: 52px;
  line-height: 1.1;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--color-text) 0%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (max-width: 768px) {
  .hero-text h1 { font-size: 36px; }
}

/* Trust row placed before CTAs for conversion optimization */
.hero-text .trust-row {
  margin-bottom: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--overlay-border);
}

.hero-text .subtitle {
  font-size: 18px;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
  max-width: 520px;
}

@media (max-width: 992px) {
  .hero-text .subtitle { margin-left: auto; margin-right: auto; }
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

@media (max-width: 992px) {
  .hero-buttons { justify-content: center; }
}

@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; }
}

/* Hero live stats */
.hero-stats {
  display: flex;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.hero-stat {
  font-size: 14px;
  color: var(--color-text-secondary);
}

.hero-stat strong {
  font-family: var(--font-accent);
  font-size: 20px;
  color: var(--color-secondary);
  margin-right: 4px;
}

@media (max-width: 992px) {
  .hero-stats { justify-content: center; }
}

@media (max-width: 480px) {
  .hero-stats { flex-direction: column; align-items: center; gap: 12px; }
}

.hero-image {
  display: flex;
  justify-content: center;
}

@media (max-width: 992px) {
  .hero-image { display: none; }
}

.hero-image-placeholder {
  width: 420px;
  height: 320px;
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.1), rgba(0, 255, 136, 0.05));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(245, 166, 35, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  font-size: 14px;
  animation: float 6s ease-in-out infinite;
}

/* --- Featured Casinos Section --- */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  margin-bottom: 12px;
}

.section-header p {
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

.section-header .section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.casinos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

@media (max-width: 992px) {
  .casinos-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
  .casinos-grid { grid-template-columns: 1fr; }
}

/* --- Bonuses Scroll Section --- */
.bonuses-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.bonuses-scroll::-webkit-scrollbar {
  height: 6px;
}

.bonuses-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 3px;
}

.bonuses-scroll::-webkit-scrollbar-thumb {
  background: var(--color-secondary);
  border-radius: 3px;
}

.bonuses-scroll .bonus-badge {
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* --- Popular Guides Section --- */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

@media (max-width: 992px) {
  .guides-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
  .guides-grid { grid-template-columns: 1fr; }
}

.guide-card {
  background: var(--color-card);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all var(--transition-base);
  text-decoration: none;
  display: block;
}

.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(245, 166, 35, 0.2);
}

.guide-card .guide-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.15), rgba(245, 166, 35, 0.05));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--color-secondary);
  margin-bottom: 16px;
}

.guide-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.guide-card p {
  font-size: 14px;
  margin-bottom: 12px;
}

.guide-card .read-time {
  font-size: 13px;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.guide-card .read-time i {
  color: var(--color-secondary);
}

/* --- How It Works Section --- */
.how-it-works {
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.03), rgba(0, 255, 136, 0.02));
}

.hiw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

@media (max-width: 768px) {
  .hiw-grid { grid-template-columns: 1fr; gap: 32px; }
}

.hiw-step {
  padding: 0 20px;
}

.hiw-step .step-circle {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--color-secondary), #D4880E);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-accent);
  font-size: 32px;
  font-weight: 700;
  color: #0A1628;
  margin: 0 auto 20px;
}

.hiw-step h3 {
  margin-bottom: 10px;
}

.hiw-step p {
  font-size: 15px;
}

/* --- Latest Articles Section --- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

@media (max-width: 768px) {
  .articles-grid { grid-template-columns: 1fr; }
}

.article-card {
  background: var(--color-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all var(--transition-base);
  text-decoration: none;
  display: block;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.article-card-image {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1a2b3c, #0d1b2a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  font-size: 13px;
  position: relative;
}

.article-card-image .category-tag {
  position: absolute;
  top: 12px;
  left: 12px;
}

.article-card-body {
  padding: 20px;
}

.article-card-body h3 {
  font-size: 18px;
  margin-bottom: 8px;
  line-height: 1.3;
}

.article-card-body .excerpt {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-body .meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--color-text-secondary);
}

/* --- Trust Section --- */
.trust-section {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  padding: 48px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.trust-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 40px;
}

@media (max-width: 768px) {
  .trust-stats { grid-template-columns: repeat(2, 1fr); }
}

.trust-stat {
  text-align: center;
}

.trust-stat .stat-number {
  font-size: 42px;
  display: block;
  margin-bottom: 4px;
}

.trust-stat .stat-label {
  font-size: 14px;
  color: var(--color-text-secondary);
}

/* --- Newsletter Full Width --- */
.newsletter-full {
  background: linear-gradient(135deg, var(--color-primary), #0D1B2A);
  text-align: center;
  padding: 64px var(--gap);
}

.newsletter-full h2 {
  margin-bottom: 12px;
}

.newsletter-full p {
  font-size: 17px;
  max-width: 500px;
  margin: 0 auto 28px;
}

.newsletter-full .newsletter-form {
  max-width: 460px;
  margin: 0 auto;
}
