/**
 * Niche Page Styles
 * Complete CSS from original niche-page.html template
 * Excludes only: Header, Breadcrumb, and Footer (handled by theme)
 */

/* CSS Variables - Color System */
:root {
  --background: rgb(250 250 250);
  --foreground: rgb(38 38 38);
  --card: rgb(255 255 255);
  --card-foreground: rgb(38 38 38);
  --muted: rgb(237 237 237);
  --muted-foreground: rgb(128 128 128);
  --accent: rgb(72 187 120);
  --accent-foreground: rgb(250 250 250);
  --border: rgb(224 224 224);
  --ring: rgb(72 187 120);
}

/* Utility Classes */
.icon {
  width: 20px;
  height: 20px;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

.container-narrow {
  max-width: 896px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-sm {
  height: 36px;
  padding: 0 12px;
  font-size: 14px;
}

.btn-lg {
  height: 48px;
  padding: 0 24px;
  font-size: 16px;
}

.btn-accent {
  background-color: var(--accent);
  color: var(--accent-foreground);
}

.btn-accent:hover {
  background-color: rgb(64 168 107);
}

.btn-ghost {
  background-color: transparent;
  color: var(--foreground);
}

.btn-ghost:hover {
  background-color: var(--muted);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border);
  color: var(--foreground);
}

.btn-outline:hover {
  background-color: var(--muted);
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
}

.btn-desktop {
  display: none;
}

@media (min-width: 768px) {
  .btn-desktop {
    display: inline-flex;
  }
}

.btn-mobile {
  display: inline-flex;
}

@media (min-width: 768px) {
  .btn-mobile {
    display: none;
  }
}

.btn-with-icon {
  gap: 8px;
}

.btn-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}

.btn:hover .btn-icon {
  transform: translateX(4px);
}

/* Main */
.main {
  min-height: 100vh;
}

/* Hero Section */
.hero {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(to bottom, var(--background), rgba(237, 237, 237, 0.2));
  padding: 64px 16px;
}

.hero-grid {
  display: grid;
  align-items: center;
  gap: 48px;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(72, 187, 120, 0.2);
  background-color: rgba(72, 187, 120, 0.05);
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 16px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent);
}

.hero-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--foreground);
  margin-bottom: 24px;
  text-wrap: balance;
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 48px;
  }
}

.hero-description {
  margin-bottom: 32px;
}

.hero-description p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted-foreground);
  text-wrap: pretty;
  margin: 0;
}

.hero-description p + p {
  margin-top: 1em;
}

.benefits {
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.benefit-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--accent);
}

.benefit-item span {
  color: var(--foreground);
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 640px) {
  .hero-cta {
    flex-direction: row;
  }
}

.stats-grid {
  display: grid;
  gap: 16px;
}

.stats-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

.stats-boxes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.stat-card {
  border: 1px solid var(--border);
  background-color: var(--card);
  padding: 24px;
  border-radius: 8px;
}

.stat-number {
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--card-foreground);
  margin-bottom: 4px;
}

.stat-sublabel {
  font-size: 12px;
  color: var(--muted-foreground);
  margin-top: 4px;
}

/* Legacy styles - kept for backward compatibility */
.stat-card-large {
  padding: 24px;
}

.stats-grid-small {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.stat-number-sm {
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.stat-label-sm {
  font-size: 12px;
  font-weight: 500;
  color: var(--card-foreground);
}

/* Services Section */
.services {
  border-bottom: 1px solid var(--border);
  padding: 64px 16px;
}

.section-header {
  margin-bottom: 48px;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--foreground);
  margin-bottom: 16px;
  text-wrap: balance;
}

.section-description {
  max-width: 768px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted-foreground);
  text-wrap: pretty;
}

.section-description p {
  margin: 0;
}

.section-description p + p {
  margin-top: 1em;
}

.section-description-centered {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.services-grid {
  display: grid;
  gap: 24px;
}

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

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  border: 1px solid var(--border);
  background-color: var(--card);
  transition: border-color 0.2s;
  overflow: hidden;
}

.service-card:hover {
  border-color: rgba(72, 187, 120, 0.5);
}

.service-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-card-content {
  padding: 24px;
}

.service-icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(72, 187, 120, 0.2);
  background-color: rgba(72, 187, 120, 0.05);
  margin-bottom: 16px;
}

.service-icon {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.service-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--card-foreground);
  margin-bottom: 8px;
}

.service-description {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted-foreground);
  margin: 0;
}

.service-description p {
  margin: 0;
}

.service-description p + p {
  margin-top: 1em;
}

/* Why iGaming Section */
.why-igaming {
  border-bottom: 1px solid var(--border);
  background-color: rgba(237, 237, 237, 0.3);
  padding: 64px 16px;
}

.why-igaming .section-description {
  max-width: 100%;
}

.challenges-grid {
  display: grid;
  gap: 32px;
  margin-bottom: 64px;
}

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

.challenge-card {
  border: 1px solid var(--border);
  background-color: var(--card);
  padding: 24px;
}

.challenge-content {
  margin-bottom: 16px;
}

.challenge-icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 1px solid rgba(72, 187, 120, 0.2);
  background-color: rgba(72, 187, 120, 0.05);
  margin-bottom: 16px;
}

.challenge-icon {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.challenge-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 8px;
}

.challenge-description {
  line-height: 1.6;
  color: var(--muted-foreground);
}

.challenge-description p {
  margin: 0;
}

.challenge-description p + p {
  margin-top: 1em;
}

.advantages-card {
  border: 1px solid var(--border);
  background-color: var(--card);
  padding: 32px;
}

.advantages-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.advantages-icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(72, 187, 120, 0.2);
  background-color: rgba(72, 187, 120, 0.05);
}

.advantages-icon {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.advantages-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--card-foreground);
}

.advantages-grid {
  display: grid;
  gap: 16px;
}

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

.advantage-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.advantage-icon {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  color: var(--accent);
}

.advantage-item span {
  line-height: 1.6;
  color: var(--muted-foreground);
}

/* Process Section */
.process {
  border-bottom: 1px solid var(--border);
  padding: 64px 16px;
}

.process-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 1024px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.process-card {
  border: 1px solid var(--border);
  background-color: var(--card);
}

.process-card-content {
  padding: 24px;
}

.process-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.process-icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(72, 187, 120, 0.2);
  background-color: rgba(72, 187, 120, 0.05);
}

.process-icon {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.process-number {
  font-size: 36px;
  font-weight: 700;
  color: rgba(128, 128, 128, 0.2);
}

.process-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--card-foreground);
  margin-bottom: 12px;
}

.process-description {
  line-height: 1.6;
  color: var(--muted-foreground);
}

.process-description p {
  margin: 0;
}

.process-description p + p {
  margin-top: 1em;
}

/* Results Section */
.results {
  border-bottom: 1px solid var(--border);
  background-color: rgba(237, 237, 237, 0.3);
  padding: 64px 16px;
}

.results-list {
  display: grid;
  gap: 32px;
}

.result-card {
  border: 1px solid var(--border);
  background-color: var(--card);
  border-radius: 8px;
  overflow: hidden;
}

.result-card-content {
  padding: 32px;
}

.result-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.result-client {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.result-award-icon {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.result-client-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--card-foreground);
}

.result-challenge {
  font-size: 14px;
  color: var(--muted-foreground);
}

.result-challenge-label {
  font-weight: 500;
  color: var(--foreground);
}

.result-trending-icon {
  width: 32px;
  height: 32px;
  color: var(--accent);
}

.result-metrics {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}

@media (min-width: 640px) {
  .result-metrics {
    grid-template-columns: repeat(3, 1fr);
  }
}

.result-metric {
  border: 1px solid var(--border);
  background-color: var(--background);
  padding: 16px;
}

.result-metric-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.result-metric-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--foreground);
}

.result-solution {
  line-height: 1.6;
  color: var(--muted-foreground);
}

.result-solution p {
  display: inline;
  margin: 0;
}

.result-solution p + p {
  display: block;
  margin-top: 1em;
}

.result-solution-label {
  font-weight: 600;
  color: var(--foreground);
}

/* Platform CTA Section */
.platform-cta {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  background-image: 
    linear-gradient(135deg, rgba(255,255,255,0.03) 25%, transparent 25%),
    linear-gradient(225deg, rgba(255,255,255,0.03) 25%, transparent 25%),
    linear-gradient(45deg, rgba(255,255,255,0.03) 25%, transparent 25%),
    linear-gradient(315deg, rgba(255,255,255,0.03) 25%, transparent 25%),
    linear-gradient(135deg, #1e293b 0%, #334155 100%);
  background-size: 40px 40px, 40px 40px, 40px 40px, 40px 40px, 100% 100%;
  background-position: 0px 0px, 20px 0px, 20px -20px, 0px 20px, 0 0;
  padding: 80px 16px;
}

.platform-cta-grid {
  display: grid;
  align-items: center;
  gap: 48px;
}

@media (min-width: 1024px) {
  .platform-cta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.platform-cta-content {
  color: white;
}

.platform-cta-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 16px;
}

.platform-cta-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: white;
  margin-bottom: 16px;
  text-wrap: balance;
}

@media (min-width: 1024px) {
  .platform-cta-title {
    font-size: 48px;
  }
}

.platform-cta-description {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
  text-wrap: pretty;
}

.platform-cta-description p {
  margin: 0;
}

.platform-cta-description p + p {
  margin-top: 1em;
}

.platform-cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 640px) {
  .platform-cta-buttons {
    flex-direction: row;
  }
}

.btn-outline-light {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
}

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.platform-cta-image {
  position: relative;
}

.platform-cta-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* FAQ Section */
.faq {
  border-bottom: 1px solid var(--border);
  padding: 64px 16px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-card {
  border: 1px solid var(--border);
  background-color: var(--card);
}

.faq-card-content {
  padding: 24px;
}

.faq-question {
  font-size: 18px;
  font-weight: 600;
  color: var(--card-foreground);
  margin-bottom: 12px;
}

.faq-answer {
  line-height: 1.6;
  color: var(--muted-foreground);
}

.faq-answer p {
  margin: 0;
}

.faq-answer p + p {
  margin-top: 1em;
}

/* CTA Section */
.cta {
  padding: 80px 16px;
}

.cta-box {
  border: 1px solid rgba(72, 187, 120, 0.2);
  background-color: rgba(72, 187, 120, 0.05);
  padding: 48px;
  text-align: center;
}

.cta-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--foreground);
  margin-bottom: 16px;
  text-wrap: balance;
}

@media (min-width: 768px) {
  .cta-title {
    font-size: 36px;
  }
}

.cta-description {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted-foreground);
  margin-bottom: 32px;
  text-wrap: pretty;
}

.cta-description p {
  margin: 0;
}

.cta-description p + p {
  margin-top: 1em;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

@media (min-width: 640px) {
  .cta-buttons {
    flex-direction: row;
  }
}
