/*
Theme Name: TUPH Fun
Theme URI: https://gettuph.com
Author: The Ultimate Production House
Author URI: https://gettuph.com
Description: A vibrant, playful WordPress theme built for The Ultimate Production House (GetTUPH.com), matching the new retro sticker-style logo — big bubble lettering, a drifting confetti hero background, and a bold purple / hot-pink / orange / yellow palette. Designed to feel fun and creative instead of corporate.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: tuph-fun
*/

/* =========================================================
   1. RESET
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; }
img, svg { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }
button { font-family: inherit; cursor: pointer; }

/* =========================================================
   2. DESIGN TOKENS
   ========================================================= */
:root {
  --tuph-purple: #3B1170;
  --tuph-purple-dark: #220a45;
  --tuph-purple-light: #7A4FC7;
  --tuph-pink: #F13C8C;
  --tuph-pink-dark: #D41E6E;
  --tuph-orange: #FF8A1E;
  --tuph-orange-dark: #E8710A;
  --tuph-yellow: #FFD93D;
  --tuph-cream: #FFF8ED;
  --tuph-white: #FFFFFF;
  --tuph-ink: #221046;
  --tuph-gray: #675E82;

  --radius-sm: 14px;
  --radius-md: 26px;
  --radius-lg: 46px;
  --radius-pill: 999px;

  --shadow-pop: 6px 6px 0 var(--tuph-purple-dark);
  --shadow-pop-sm: 4px 4px 0 var(--tuph-purple-dark);
  --shadow-soft: 0 18px 40px rgba(34, 16, 70, 0.18);

  --font-display: 'Baloo 2', 'Segoe UI', sans-serif;
  --font-body: 'Nunito', 'Segoe UI', sans-serif;

  --container-w: 1180px;
}

/* =========================================================
   3. BASE TYPOGRAPHY
   ========================================================= */
body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--tuph-ink);
  background: var(--tuph-cream);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  color: var(--tuph-purple);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }

p { margin: 0 0 1.2em; }

a { color: var(--tuph-pink-dark); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--tuph-orange-dark); }

.entry-content a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }

blockquote {
  margin: 1.5em 0;
  padding: 1.2em 1.6em;
  background: #fff;
  border-left: 8px solid var(--tuph-pink);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 1.15em;
  color: var(--tuph-purple);
  box-shadow: var(--shadow-soft);
}

.screen-reader-text {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px; height: 1px; overflow: hidden;
}
.skip-link {
  position: fixed; top: -100px; left: 10px; z-index: 999999;
  background: var(--tuph-purple); color: #fff; padding: 12px 20px;
  border-radius: var(--radius-sm); transition: top 0.2s ease;
}
.skip-link:focus { top: 10px; color: #fff; }

/* =========================================================
   4. LAYOUT
   ========================================================= */
.container { max-width: var(--container-w); margin: 0 auto; padding: 0 24px; }

.confetti-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.5;
  background-image:
    radial-gradient(var(--tuph-yellow) 3px, transparent 3.5px),
    radial-gradient(var(--tuph-pink) 3px, transparent 3.5px),
    radial-gradient(var(--tuph-orange) 3px, transparent 3.5px);
  background-size: 140px 140px, 190px 190px, 160px 160px;
  background-position: 0 0, 60px 90px, 100px 20px;
}

/* =========================================================
   5. BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  border: 3px solid var(--tuph-purple-dark);
  box-shadow: var(--shadow-pop-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:hover, .btn:focus-visible {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 var(--tuph-purple-dark);
}
.btn:active { transform: translate(0, 0); box-shadow: 2px 2px 0 var(--tuph-purple-dark); }

.btn-primary { background: var(--tuph-orange); color: var(--tuph-purple-dark); }
.btn-primary:hover { color: var(--tuph-purple-dark); }
.btn-secondary { background: var(--tuph-pink); color: #fff; }
.btn-secondary:hover { color: #fff; }
.btn-outline { background: transparent; color: var(--tuph-white); border-color: var(--tuph-white); box-shadow: 4px 4px 0 rgba(255,255,255,0.35); }
.btn-outline:hover { color: var(--tuph-white); }

/* =========================================================
   6. HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--tuph-cream);
  border-bottom: 4px solid var(--tuph-purple);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 20px;
}
.site-branding img, .custom-logo { max-height: 70px; width: auto; }
.site-logo-fallback img { max-height: 70px; }

.main-navigation { display: flex; align-items: center; gap: 26px; }
.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 8px;
  align-items: center;
}
.main-navigation ul ul { display: none; } /* dropdowns simplified for v1 */
.main-navigation a {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--tuph-purple);
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  display: inline-block;
}
.main-navigation a:hover, .main-navigation .current-menu-item > a {
  background: var(--tuph-yellow);
  color: var(--tuph-purple-dark);
}
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: var(--tuph-purple);
  border: none;
  border-radius: 10px;
  padding: 10px 12px;
}
.menu-toggle-bar { width: 24px; height: 3px; background: #fff; border-radius: 2px; }

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .main-navigation { position: relative; }
  .main-navigation ul#primary-menu {
    display: none;
    position: absolute;
    top: 56px;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border: 3px solid var(--tuph-purple);
    border-radius: var(--radius-md);
    padding: 14px;
    box-shadow: var(--shadow-soft);
    min-width: 220px;
  }
  .main-navigation.is-open ul#primary-menu { display: flex; }
}

/* =========================================================
   7. HERO
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 30%, var(--tuph-purple-light) 0%, var(--tuph-purple) 45%, var(--tuph-purple-dark) 100%);
  padding: 90px 24px 120px;
  text-align: center;
  color: #fff;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(var(--tuph-yellow) 5px, transparent 6px),
    radial-gradient(var(--tuph-pink) 5px, transparent 6px),
    radial-gradient(var(--tuph-orange) 5px, transparent 6px),
    radial-gradient(var(--tuph-purple-light) 6px, transparent 7px),
    radial-gradient(var(--tuph-yellow) 3px, transparent 4px),
    radial-gradient(var(--tuph-pink) 3px, transparent 4px);
  background-size: 220px 220px, 280px 280px, 240px 240px, 300px 300px, 160px 160px, 190px 190px;
  background-position: 8% 15%, 75% 65%, 30% 82%, 88% 22%, 55% 40%, 15% 70%;
  opacity: 0.6;
  animation: tuph-drift 22s linear infinite;
}
.hero-inner { position: relative; z-index: 2; isolation: isolate; max-width: 780px; margin: 0 auto; }
.hero-logo { max-width: 420px; margin: 0 auto 26px; animation: tuph-float 5s ease-in-out infinite; }
.hero h1 { color: #fff; text-shadow: 4px 4px 0 var(--tuph-purple-dark); }
.hero .tagline { font-size: 1.3rem; font-weight: 700; margin-bottom: 30px; color: var(--tuph-yellow); }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.wave-divider { display: block; width: 100%; margin-top: -2px; line-height: 0; }
.wave-divider svg { width: 100%; height: 60px; display: block; }

/* =========================================================
   8. SECTIONS
   ========================================================= */
.section { padding: 80px 24px; }
.section-cream { background: var(--tuph-cream); }
.section-white { background: #fff; }
.section-purple { background: var(--tuph-purple); color: #fff; }
.section-purple h2 { color: #fff; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--tuph-pink-dark);
  background: #fff;
  border: 3px solid var(--tuph-pink);
  padding: 6px 20px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
  transform: rotate(-2deg);
}
.section-purple .eyebrow { background: var(--tuph-purple-dark); color: var(--tuph-yellow); border-color: var(--tuph-yellow); }

/* =========================================================
   9. CARD GRIDS (services)
   ========================================================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}
.service-card {
  background: #fff;
  border: 4px solid var(--tuph-purple);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  box-shadow: var(--shadow-pop);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:nth-child(2n) { transform: rotate(1.4deg); }
.service-card:nth-child(3n) { transform: rotate(-1.6deg); }
.service-card:hover { transform: translateY(-8px) rotate(0deg); box-shadow: 8px 12px 0 var(--tuph-purple-dark); }
.service-card .icon-badge {
  width: 74px; height: 74px; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  background: var(--tuph-yellow);
  border: 3px solid var(--tuph-purple-dark);
  border-radius: 50%;
  font-size: 2rem;
}
.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--tuph-gray); margin-bottom: 16px; }

/* =========================================================
   10. BLOG / POST GRIDS
   ========================================================= */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 34px;
}
.post-card {
  background: #fff;
  border: 4px solid var(--tuph-purple);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-pop);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}
.post-card:hover { transform: translateY(-6px); }
.post-card .post-thumb { aspect-ratio: 16/10; overflow: hidden; border-bottom: 4px solid var(--tuph-purple); background: var(--tuph-yellow); }
.post-card .post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .post-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.post-card .post-meta { font-family: var(--font-display); font-size: 0.85rem; color: var(--tuph-pink-dark); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; }
.post-card h2, .post-card h3 { font-size: 1.35rem; margin-bottom: 10px; }
.post-card p { color: var(--tuph-gray); flex: 1; }
.read-more { font-family: var(--font-display); font-weight: 800; color: var(--tuph-orange-dark); }
.read-more::after { content: " →"; }

.content-area { max-width: var(--container-w); margin: 0 auto; padding: 60px 24px; }
.content-area.with-sidebar { display: grid; grid-template-columns: 2.2fr 1fr; gap: 50px; align-items: start; }

.pagination { display: flex; gap: 10px; justify-content: center; margin-top: 50px; flex-wrap: wrap; }
.pagination a, .pagination span {
  font-family: var(--font-display); font-weight: 700;
  padding: 10px 18px; border-radius: var(--radius-pill);
  border: 3px solid var(--tuph-purple); color: var(--tuph-purple);
  background: #fff;
}
.pagination .current { background: var(--tuph-orange); color: var(--tuph-purple-dark); }

/* =========================================================
   11. SINGLE / PAGE CONTENT
   ========================================================= */
.single-hero, .page-hero {
  background: var(--tuph-purple);
  color: #fff;
  padding: 70px 24px 50px;
  text-align: center;
}
.single-hero h1, .page-hero h1 { color: #fff; }
.single-hero .post-meta, .page-hero .post-meta { color: var(--tuph-yellow); font-family: var(--font-display); font-weight: 700; }

.entry-content { font-size: 1.08rem; }
.entry-content img { border-radius: var(--radius-md); border: 4px solid var(--tuph-purple); }
.entry-content h2, .entry-content h3 { margin-top: 1.4em; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; margin-bottom: 1.2em; }
.entry-content .wp-caption, .entry-content figcaption { font-size: 0.9rem; color: var(--tuph-gray); text-align: center; margin-top: 8px; }

.entry-footer { margin-top: 40px; padding-top: 20px; border-top: 3px dashed var(--tuph-pink); }
.tag-links a, .cat-links a {
  display: inline-block; margin: 4px 6px 4px 0; padding: 6px 16px;
  background: var(--tuph-yellow); border-radius: var(--radius-pill);
  font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; color: var(--tuph-purple-dark);
}

.author-box {
  display: flex; gap: 20px; align-items: center;
  background: #fff; border: 3px solid var(--tuph-purple);
  border-radius: var(--radius-md); padding: 24px; margin-top: 40px;
  box-shadow: var(--shadow-pop-sm);
}
.author-box img { border-radius: 50%; width: 70px; height: 70px; }

/* =========================================================
   12. SIDEBAR / WIDGETS
   ========================================================= */
.widget {
  background: #fff; border: 3px solid var(--tuph-purple);
  border-radius: var(--radius-md); padding: 26px; margin-bottom: 28px;
  box-shadow: var(--shadow-pop-sm);
}
.widget-title {
  font-size: 1.15rem; color: var(--tuph-pink-dark);
  border-bottom: 3px dashed var(--tuph-yellow); padding-bottom: 10px; margin-bottom: 16px;
}
.widget ul { list-style: none; }
.widget li { padding: 6px 0; border-bottom: 1px solid #f0e9ff; }
.widget a { color: var(--tuph-purple); font-weight: 700; }

/* =========================================================
   13. COMMENTS
   ========================================================= */
.comments-area { margin-top: 60px; }
.comment-list { list-style: none; }
.comment-body {
  background: #fff; border: 3px solid var(--tuph-purple);
  border-radius: var(--radius-md); padding: 22px; margin-bottom: 20px;
  box-shadow: var(--shadow-pop-sm);
}
.comment-metadata, .comment-author .says { font-size: 0.85rem; color: var(--tuph-gray); }
.comment-form input, .comment-form textarea {
  width: 100%; padding: 12px 16px; border: 3px solid var(--tuph-purple);
  border-radius: var(--radius-sm); font-family: var(--font-body); margin-bottom: 16px; font-size: 1rem;
}
.comment-form label { font-family: var(--font-display); font-weight: 700; display: block; margin-bottom: 6px; }
.comment-reply-title { color: var(--tuph-purple); }

/* =========================================================
   14. FOOTER
   ========================================================= */
.site-footer {
  position: relative;
  background: var(--tuph-purple-dark);
  color: #fff;
  padding-top: 70px;
  overflow: hidden;
}
.footer-burst {
  position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, var(--tuph-pink) 0%, transparent 70%);
  opacity: 0.35;
}
.footer-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
  padding-bottom: 50px;
}
.footer-logo { max-width: 200px; margin-bottom: 14px; }
.footer-brand p { color: #d9c9ff; }
.footer-navigation ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-navigation a { color: #fff; font-family: var(--font-display); font-weight: 700; }
.footer-navigation a:hover { color: var(--tuph-yellow); }
.footer-social p { color: #d9c9ff; }
.footer-social a { color: var(--tuph-yellow); font-weight: 800; }
.footer-bottom {
  position: relative; z-index: 2;
  border-top: 2px solid rgba(255,255,255,0.15);
  padding: 22px 0; text-align: center; font-size: 0.9rem; color: #c6b3ef;
}

/* =========================================================
   15. 404 / SEARCH
   ========================================================= */
.error-404 { text-align: center; padding: 100px 24px; }
.error-404 .error-code {
  font-family: var(--font-display); font-size: clamp(4rem, 12vw, 8rem);
  color: var(--tuph-pink); text-shadow: 6px 6px 0 var(--tuph-purple); margin-bottom: 0;
}
.search-form { display: flex; gap: 10px; margin: 20px 0; }
.search-form input[type="search"] {
  flex: 1; padding: 12px 18px; border: 3px solid var(--tuph-purple); border-radius: var(--radius-pill);
}
.search-form button {
  background: var(--tuph-orange); border: 3px solid var(--tuph-purple-dark);
  border-radius: var(--radius-pill); padding: 10px 22px; font-family: var(--font-display); font-weight: 700;
}

/* =========================================================
   16. RESPONSIVE
   ========================================================= */
@media (max-width: 960px) {
  .content-area.with-sidebar { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-navigation ul { align-items: center; }
  .hero { padding: 70px 20px 90px; }
  .section { padding: 56px 18px; }
}
