/* ============================================
   PRAGMATIC PLAY REVIEW - GLOBAL STYLES
   "Cozy, Homey & Playful" Theme
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Nunito:wght@400;600;700;800&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Palette */
  --cream:        #FDFBF7;
  --peach:        #FF9F7C;
  --peach-light:  #FFD4C2;
  --mint:         #A2E4B8;
  --mint-light:   #D4F5E0;
  --lavender:     #C5B3E6;
  --lavender-light:#EDE7F6;
  --butter:       #FFE29A;
  --butter-light: #FFF5D6;
  --rose:         #FFB3C1;
  --rose-light:   #FFDDE5;

  /* Text */
  --text-primary:   #3D2C2C;
  --text-secondary: #6B5454;
  --text-muted:     #9A8585;

  /* Surfaces */
  --card-bg:        #FFFFFF;
  --card-shadow:    0 4px 20px rgba(61,44,44,0.07);
  --card-shadow-hover: 0 8px 32px rgba(61,44,44,0.12);

  /* Borders */
  --radius-sm:  10px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  32px;
  --radius-full:9999px;

  /* Transitions */
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  0.75rem;
  --space-md:  1.25rem;
  --space-lg:  2rem;
  --space-xl:  3rem;
  --space-2xl: 4.5rem;
  --space-3xl: 6rem;

  /* Container */
  --container-max: 1120px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  background-color: var(--cream);
  color: var(--text-primary);
  line-height: 1.75;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--peach);
  text-decoration: none;
  transition: color 0.25s var(--smooth);
}

a:hover {
  color: var(--text-primary);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 2.5vw, 1.35rem); }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

ul, ol {
  padding-left: 1.5rem;
  color: var(--text-secondary);
}

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.text-center { text-align: center; }
.text-peach  { color: var(--peach); }
.text-mint   { color: var(--mint); }

/* ---------- Fade-in Animation ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s var(--smooth), transform 0.6s var(--smooth);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ---------- Top Bar / Brand Strip ---------- */
.top-bar {
  background: linear-gradient(135deg, var(--peach-light), var(--mint-light), var(--butter-light));
  padding: var(--space-sm) 0;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.top-bar span {
  margin: 0 0.5rem;
}

/* ---------- Site Header ---------- */
.site-header {
  padding: var(--space-lg) 0 var(--space-md);
  text-align: center;
  position: relative;
}

.site-header .logo {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.site-header .logo .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--peach);
}

.site-header .tagline {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* ---------- Navigation (Magazine Style) ---------- */
.mag-nav {
  padding: var(--space-md) 0;
}

.mag-nav-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xs);
}

.mag-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 1.3rem;
  border-radius: var(--radius-full);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-secondary);
  background: var(--card-bg);
  box-shadow: 0 2px 8px rgba(61,44,44,0.06);
  transition: transform 0.3s var(--bounce),
              background 0.25s var(--smooth),
              color 0.25s var(--smooth),
              box-shadow 0.25s var(--smooth);
}

.mag-nav a:hover {
  transform: scale(1.06);
  color: var(--text-primary);
  box-shadow: var(--card-shadow-hover);
}

.mag-nav a.active {
  background: var(--peach);
  color: #fff;
  box-shadow: 0 4px 16px rgba(255,159,124,0.35);
}

.mag-nav a .nav-emoji {
  font-size: 1rem;
}

/* ---------- Hero Section ---------- */
.hero {
  padding: var(--space-2xl) 0 var(--space-xl);
  text-align: center;
}

.hero h1 {
  margin-bottom: var(--space-md);
}

.hero h1 .highlight {
  position: relative;
  display: inline-block;
}

.hero h1 .highlight::after {
  content: '';
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: 4px;
  height: 14px;
  background: var(--butter);
  border-radius: 6px;
  z-index: -1;
  opacity: 0.6;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto var(--space-lg);
  line-height: 1.8;
}

/* ---------- Card Grid ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
  padding: var(--space-lg) 0 var(--space-2xl);
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--card-shadow);
  transition: transform 0.35s var(--bounce),
              box-shadow 0.3s var(--smooth);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: var(--card-shadow-hover);
}

.card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
}

.card-accent.peach   { background: var(--peach); }
.card-accent.mint    { background: var(--mint); }
.card-accent.lavender{ background: var(--lavender); }
.card-accent.butter  { background: var(--butter); }
.card-accent.rose    { background: var(--rose); }

.card-icon {
  font-size: 2.4rem;
  margin-bottom: var(--space-sm);
  display: block;
}

.card h3 {
  margin-bottom: var(--space-xs);
}

.card p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

/* Card link arrow */
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--peach);
  transition: transform 0.3s var(--bounce), color 0.2s var(--smooth);
}

.card-link:hover {
  transform: translateX(4px);
  color: var(--text-primary);
}

.card-link .arrow {
  transition: transform 0.3s var(--bounce);
}

.card-link:hover .arrow {
  transform: translateX(3px);
}

/* ---------- Game Card (sweet-hits) ---------- */
.game-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: transform 0.35s var(--bounce),
              box-shadow 0.3s var(--smooth);
}

.game-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: var(--card-shadow-hover);
}

.game-card .img-wrap {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.game-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  transition: transform 0.4s var(--smooth);
}

.game-card:hover .img-wrap img {
  transform: scale(1.04);
}

.game-card .img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--peach-light), var(--butter-light));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.game-card .game-body {
  padding: var(--space-md) var(--space-lg) var(--space-lg);
}

.game-card .game-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
}

.game-tag.candy   { background: var(--rose-light);    color: #B5456A; }
.game-tag.puppy   { background: var(--butter-light);  color: #8B6914; }
.game-tag.fishing { background: var(--mint-light);     color: #2D7A4F; }

.game-card h3 {
  margin-bottom: 0.4rem;
}

.game-card .game-rating {
  font-size: 0.9rem;
  color: var(--butter);
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
}

.game-card p {
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ---------- Section Headers ---------- */
.section-header {
  text-align: center;
  padding: var(--space-2xl) 0 var(--space-lg);
}

.section-header h2 {
  margin-bottom: var(--space-xs);
}

.section-header p {
  max-width: 580px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ---------- Promo Banner ---------- */
.promo-banner {
  background: linear-gradient(135deg, var(--peach), #FF7E5F);
  border-radius: var(--radius-xl);
  padding: var(--space-xl) var(--space-lg);
  color: #fff;
  text-align: center;
  margin: var(--space-xl) 0;
  position: relative;
  overflow: hidden;
}

.promo-banner::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
}

.promo-banner::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: -20px;
  width: 100px;
  height: 100px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}

.promo-banner h2 {
  color: #fff;
  margin-bottom: var(--space-sm);
  position: relative;
  z-index: 1;
}

.promo-banner p {
  color: rgba(255,255,255,0.9);
  max-width: 540px;
  margin: 0 auto var(--space-md);
  position: relative;
  z-index: 1;
}

/* ---------- Info Block ---------- */
.info-block {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--card-shadow);
  margin-bottom: var(--space-lg);
}

.info-block h3 {
  margin-bottom: var(--space-sm);
}

.info-block p {
  font-size: 0.95rem;
  line-height: 1.8;
}

.info-block .info-icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: var(--space-xs);
}

/* ---------- Timeline / Steps ---------- */
.steps {
  padding: var(--space-lg) 0;
}

.step {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
}

.step-number.peach { background: var(--peach); }
.step-number.mint  { background: var(--mint); }
.step-number.lavender { background: var(--lavender); }
.step-number.butter { background: var(--butter); color: var(--text-primary); }

.step-content h4 {
  margin-bottom: 0.25rem;
}

.step-content p {
  font-size: 0.93rem;
  line-height: 1.75;
}

/* ---------- Casino Listing ---------- */
.casino-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--card-shadow);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
  margin-bottom: var(--space-lg);
  transition: transform 0.35s var(--bounce),
              box-shadow 0.3s var(--smooth);
}

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

.casino-card .casino-rank {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: #fff;
  background: var(--peach);
}

.casino-card .casino-info {
  flex: 1 1 200px;
}

.casino-card .casino-info h3 {
  margin-bottom: 0.15rem;
}

.casino-card .casino-info p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.casino-card .casino-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.casino-card .casino-features .feat {
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--mint-light);
  color: #2D7A4F;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.75rem 1.8rem;
  border-radius: var(--radius-full);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.3s var(--bounce),
              box-shadow 0.3s var(--smooth),
              background 0.25s var(--smooth);
}

.btn:hover {
  transform: scale(1.07);
}

.btn:active {
  transform: scale(0.97);
}

.btn-peach {
  background: var(--peach);
  color: #fff;
  box-shadow: 0 4px 16px rgba(255,159,124,0.35);
}

.btn-peach:hover {
  background: #ff8c63;
  color: #fff;
  box-shadow: 0 6px 24px rgba(255,159,124,0.45);
}

.btn-mint {
  background: var(--mint);
  color: var(--text-primary);
  box-shadow: 0 4px 16px rgba(162,228,184,0.35);
}

.btn-mint:hover {
  background: #8dd9a5;
  color: var(--text-primary);
  box-shadow: 0 6px 24px rgba(162,228,184,0.45);
}

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

.btn-outline:hover {
  background: var(--peach);
  color: #fff;
}

/* ---------- Badge Row ---------- */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin: var(--space-md) 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
}

.badge.peach    { background: var(--peach-light);  color: #9A4320; }
.badge.mint     { background: var(--mint-light);   color: #2D7A4F; }
.badge.lavender { background: var(--lavender-light);color: #5C3D7A; }
.badge.butter   { background: var(--butter-light); color: #8B6914; }
.badge.rose     { background: var(--rose-light);   color: #B5456A; }

/* ---------- Divider ---------- */
.divider {
  width: 60px;
  height: 5px;
  border-radius: var(--radius-full);
  background: var(--peach);
  margin: var(--space-lg) auto;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--card-bg);
  border-top: 2px solid rgba(61,44,44,0.05);
  padding: var(--space-xl) 0 var(--space-lg);
  margin-top: var(--space-2xl);
  text-align: center;
}

.site-footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 0.5rem;
}

.site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.site-footer .footer-links a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.site-footer .footer-links a:hover {
  color: var(--peach);
}

/* ---------- Article Body ---------- */
.article-body {
  max-width: 740px;
  margin: 0 auto;
  padding: var(--space-lg) 0;
}

.article-body h2 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.article-body h3 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-xs);
}

.article-body p {
  font-size: 1.02rem;
  line-height: 1.85;
}

.article-body ul,
.article-body ol {
  margin-bottom: 1rem;
}

.article-body li {
  margin-bottom: 0.4rem;
  font-size: 0.98rem;
  line-height: 1.75;
}

/* Internal link style */
.article-body a.internal-link {
  color: var(--peach);
  font-weight: 700;
  border-bottom: 2px dashed var(--peach-light);
  transition: border-color 0.2s var(--smooth), color 0.2s var(--smooth);
}

.article-body a.internal-link:hover {
  color: var(--text-primary);
  border-color: var(--text-primary);
}

/* External link style */
.article-body a.ext-link {
  color: var(--mint);
  font-weight: 700;
  border-bottom: 2px dashed var(--mint-light);
}

.article-body a.ext-link:hover {
  color: var(--text-primary);
  border-color: var(--text-primary);
}

/* ---------- Callout Box ---------- */
.callout {
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-lg) 0;
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.callout-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.callout.peach    { background: var(--peach-light); }
.callout.mint     { background: var(--mint-light); }
.callout.lavender { background: var(--lavender-light); }
.callout.butter   { background: var(--butter-light); }
.callout.rose     { background: var(--rose-light); }

.callout p {
  font-size: 0.93rem;
  margin-bottom: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .card-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .hero {
    padding: var(--space-xl) 0 var(--space-lg);
  }

  .step {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .casino-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .casino-card .casino-features {
    margin-top: var(--space-xs);
  }

  .promo-banner {
    padding: var(--space-lg) var(--space-md);
  }

  .mag-nav-inner {
    gap: 0.35rem;
  }

  .mag-nav a {
    padding: 0.45rem 0.9rem;
    font-size: 0.82rem;
  }
}

@media (max-width: 480px) {
  :root {
    --space-lg: 1.25rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
  }

  .container {
    padding: 0 var(--space-md);
  }
}
