/* ============================================================
   FunZon.in — Shared Stylesheet
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange:  #ff6f00;
  --orange2: #ff9800;
  --blue:    #1565c0;
  --blue2:   #1976d2;
  --green:   #2e7d32;
  --purple:  #6a1b9a;
  --pink:    #c2185b;
  --teal:    #00695c;
  --red:     #c62828;
  --bg:      #fff8f0;
  --white:   #ffffff;
  --text:    #333333;
  --muted:   #666666;
  --light:   #fff3e0;
}

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

/* ── PAGE HERO (mini banner for inner pages) ── */
.page-hero {
  position: relative;
  padding: 70px 20px 90px;
  text-align: center;
  overflow: hidden;
}
.page-hero::before, .page-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  animation: blob 9s ease-in-out infinite alternate;
}
.page-hero::before { width:400px;height:400px;background:#fff;top:-120px;left:-80px; }
.page-hero::after  { width:300px;height:300px;background:#fff;bottom:-80px;right:-60px;animation-delay:3s; }
@keyframes blob {
  0%   { transform: scale(1) translate(0,0); }
  100% { transform: scale(1.2) translate(20px,15px); }
}
.page-hero h1 {
  position: relative;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  text-shadow: 0 3px 10px rgba(0,0,0,0.25);
  margin-bottom: 10px;
}
.page-hero p {
  position: relative;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.9);
  max-width: 680px;
  margin: 0 auto 22px;
  line-height: 1.6;
}
.page-hero .hero-icon {
  font-size: 3.5rem;
  display: block;
  margin-bottom: 14px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.25));
  position: relative;
}

/* gradients per page */
.hero-games   { background: linear-gradient(135deg, #ff6f00 0%, #ff9800 50%, #e53935 100%); }
.hero-quizzes { background: linear-gradient(135deg, #1565c0 0%, #1976d2 50%, #7b1fa2 100%); }
.hero-puzzles { background: linear-gradient(135deg, #6a1b9a 0%, #8e24aa 50%, #1565c0 100%); }
.hero-jokes   { background: linear-gradient(135deg, #c2185b 0%, #e91e63 50%, #ff6f00 100%); }
.hero-articles{ background: linear-gradient(135deg, #00695c 0%, #00897b 50%, #1565c0 100%); }
.hero-about   { background: linear-gradient(135deg, #ff6f00 0%, #1565c0 100%); }
.hero-contact { background: linear-gradient(135deg, #1565c0 0%, #00695c 100%); }

/* wave */
.wave { display: block; width: 100%; line-height: 0; overflow: hidden; }
.wave svg { display: block; width: 100%; }

/* ── SECTION WRAPPER ── */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}
.wrap-sm { max-width: 900px; margin: 0 auto; padding: 60px 20px; }

/* ── PILL / LABELS ── */
.pill {
  display: inline-block;
  background: linear-gradient(90deg, var(--orange), var(--orange2));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 50px;
  margin-bottom: 10px;
  letter-spacing: .6px;
  text-transform: uppercase;
}
.pill-blue   { background: linear-gradient(90deg, var(--blue), var(--blue2)); }
.pill-purple { background: linear-gradient(90deg, var(--purple), #ab47bc); }
.pill-green  { background: linear-gradient(90deg, var(--green), #43a047); }
.pill-pink   { background: linear-gradient(90deg, var(--pink), #e91e63); }
.pill-teal   { background: linear-gradient(90deg, var(--teal), #00897b); }

/* ── SECTION TITLES ── */
.sec-title {
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 800;
  color: #222;
  margin-bottom: 8px;
  text-align: center;
}
.sec-sub {
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 40px;
}

/* ── CARD GRID ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px;
}
.card-grid-lg {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

/* ── ITEM CARD (Games / Quizzes / Puzzles / Jokes) ── */
.item-card {
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.item-card:hover { transform: translateY(-7px); box-shadow: 0 14px 36px rgba(0,0,0,0.14); }

.item-thumb {
  height: 115px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.2rem;
  position: relative;
}
.item-thumb span { position: relative; z-index:1; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.28)); }

/* thumb colours */
.th-orange  { background: linear-gradient(135deg,#ff6f00,#ff9800); }
.th-blue    { background: linear-gradient(135deg,#1565c0,#42a5f5); }
.th-purple  { background: linear-gradient(135deg,#6a1b9a,#ab47bc); }
.th-green   { background: linear-gradient(135deg,#2e7d32,#66bb6a); }
.th-pink    { background: linear-gradient(135deg,#c2185b,#f06292); }
.th-teal    { background: linear-gradient(135deg,#00695c,#26a69a); }
.th-red     { background: linear-gradient(135deg,#c62828,#ef5350); }
.th-indigo  { background: linear-gradient(135deg,#283593,#5c6bc0); }
.th-amber   { background: linear-gradient(135deg,#e65100,#ffa726); }
.th-cyan    { background: linear-gradient(135deg,#006064,#26c6da); }
.th-lime    { background: linear-gradient(135deg,#558b2f,#aed581); }
.th-deep    { background: linear-gradient(135deg,#4a148c,#7c43bd); }

.item-body {
  padding: 16px 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.item-body h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 6px;
  line-height: 1.35;
}
.item-body p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
}
.item-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--orange);
  margin-bottom: 4px;
}

/* ── CTA BUTTON inside card ── */
.card-btn {
  display: inline-block;
  margin-top: 14px;
  background: var(--orange);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 50px;
  text-decoration: none;
  transition: background .2s, transform .2s;
  align-self: flex-start;
  border: none;
  cursor: pointer;
}
.card-btn:hover { background: #e65100; transform: scale(1.04); }
.card-btn-blue   { background: var(--blue2); }
.card-btn-blue:hover { background: var(--blue); }
.card-btn-purple { background: var(--purple); }
.card-btn-purple:hover { background: #4a148c; }
.card-btn-green  { background: var(--green); }
.card-btn-green:hover { background: #1b5e20; }
.card-btn-pink   { background: var(--pink); }
.card-btn-pink:hover { background: #880e4f; }
.card-btn-teal   { background: var(--teal); }
.card-btn-teal:hover { background: #004d40; }

/* ── BADGE ── */
.badge {
  display: inline-block;
  background: #e53935;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 50px;
  margin-left: 5px;
  vertical-align: middle;
  letter-spacing: .3px;
}

/* ── ARTICLE CARD ── */
.art-card {
  background: var(--white);
  border-radius: 16px;
  padding: 22px 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  transition: transform .25s, box-shadow .25s;
  border-top: 4px solid var(--orange);
  display: flex;
  flex-direction: column;
}
.art-card:hover { transform: translateY(-5px); box-shadow: 0 12px 28px rgba(0,0,0,0.12); }
.art-card h3 { font-size: 0.95rem; font-weight: 700; color: #222; margin-bottom: 8px; line-height: 1.4; }
.art-card p  { font-size: 0.81rem; color: var(--muted); line-height: 1.55; flex: 1; }
.art-card a  { margin-top: 12px; font-size: 0.82rem; font-weight: 700; color: var(--orange); text-decoration: none; }
.art-card a:hover { text-decoration: underline; }

/* ── FEATURE STRIP ── */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px,1fr));
  gap: 18px;
  max-width: 900px;
  margin: 0 auto;
}
.feat-box {
  background: var(--white);
  border-radius: 14px;
  padding: 22px 14px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.07);
  transition: transform .2s;
}
.feat-box:hover { transform: translateY(-4px); }
.feat-box .fi { font-size: 2rem; margin-bottom: 8px; display: block; }
.feat-box strong { display: block; font-size: 0.88rem; color: #222; margin-bottom: 4px; }
.feat-box span { font-size: 0.76rem; color: var(--muted); }

/* ── CTA BANNER ── */
.cta-banner {
  background: linear-gradient(135deg, #1565c0 0%, #ff6f00 100%);
  padding: 60px 20px;
  text-align: center;
}
.cta-banner h2 { color:#fff; font-size:clamp(1.4rem,3vw,2rem); font-weight:800; margin-bottom:10px; }
.cta-banner p  { color:rgba(255,255,255,.88); font-size:1rem; margin-bottom:26px; }

/* ── PRIMARY / SECONDARY BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: #fff;
  color: var(--orange);
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 30px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
  transition: transform .2s, box-shadow .2s;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,0.22); }
.btn-secondary {
  display: inline-block;
  background: transparent;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,.8);
  transition: background .2s, transform .2s;
}
.btn-secondary:hover { background: rgba(255,255,255,.15); transform: translateY(-3px); }
.btn-group { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── INFO SECTION ── */
.info-section { max-width: 900px; margin: 0 auto; line-height: 1.85; color: #444; }
.info-section h2 { font-size: 1.25rem; font-weight: 700; color: var(--orange); margin: 28px 0 10px; }
.info-section p { margin-bottom: 14px; font-size: 0.93rem; }

/* ── ABOUT LAYOUT ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.about-text h2 { font-size: 1.7rem; font-weight: 800; color: #222; margin-bottom: 16px; line-height: 1.3; }
.about-text p  { font-size: 0.93rem; color: #555; line-height: 1.85; margin-bottom: 14px; }
.about-text .cta-link {
  display: inline-block;
  margin-top: 8px;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  transition: background .2s, transform .2s;
}
.about-text .cta-link:hover { background: #e65100; transform: translateY(-2px); }

/* ── CONTACT FORM ── */
.contact-card {
  background: var(--white);
  border-radius: 18px;
  padding: 36px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
  max-width: 680px;
  margin: 0 auto;
}
.contact-card h2 { font-size: 1.4rem; font-weight: 800; color: #222; margin-bottom: 6px; }
.contact-card p.sub { font-size: 0.88rem; color: var(--muted); margin-bottom: 24px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: #444; }
.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 16px;
  border-radius: 10px;
  border: 1.5px solid #e0d0c0;
  font-size: 0.93rem;
  font-family: inherit;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  background: #fff;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,111,0,.12); }
.form-group textarea { resize: vertical; min-height: 130px; }
.submit-btn {
  background: linear-gradient(135deg, var(--orange), var(--orange2));
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 13px 36px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  font-family: inherit;
}
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(255,111,0,.35); }

/* ── SEO TEXT BLOCK ── */
.seo-block {
  background: var(--white);
  border-radius: 14px;
  padding: 32px 28px;
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
  max-width: 960px;
  margin: 0 auto;
  line-height: 1.85;
  color: #444;
  font-size: 0.92rem;
}
.seo-block h2 { font-size: 1.2rem; font-weight: 700; color: var(--orange); margin: 24px 0 8px; }
.seo-block h2:first-child { margin-top: 0; }
.seo-block p { margin-bottom: 12px; }

/* ── VIEW-ALL LINK ── */
.view-all {
  text-align: center;
  margin-top: 32px;
}
.view-all a {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-size: .93rem;
  transition: background .2s, transform .2s;
}
.view-all a:hover { background: #e65100; transform: translateY(-2px); }
.view-all a.outline {
  background: transparent;
  border: 2px solid var(--orange);
  color: var(--orange);
}
.view-all a.outline:hover { background: var(--orange); color: #fff; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .wrap, .wrap-sm { padding: 40px 16px; }
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .page-hero { padding: 50px 16px 70px; }
}
@media (max-width: 480px) {
  .card-grid, .card-grid-lg { grid-template-columns: 1fr; }
  .contact-card { padding: 24px 18px; }
}
