/*
Theme Name: Cheesecakegate
Theme URI: https://cheesecakegate.com
Author: Claire's Friend
Author URI: https://cheesecakegate.com
Description: The official WordPress theme for #Cheesecakegate — the Great Cheesecake Scandal of May 2026. One mom. One baker. One very flat cake. FIFTY dollars.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cheesecakegate
Tags: one-page, custom-colors, custom-header, entertainment, food-and-drink, humor
*/

/* ============================================
   RESET & BASE
============================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Fredoka One', cursive;
  background: #FFF8E7;
  overflow-x: hidden;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ctext y='28' font-size='28'%3E%F0%9F%8D%B0%3C/text%3E%3C/svg%3E") 16 16, auto;
}

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
strong { font-weight: bold; }

/* ============================================
   ANIMATIONS
============================================ */
@keyframes wobble {
  0%,100% { transform: rotate(-2deg); }
  50%      { transform: rotate(2deg); }
}
@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-10px); }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%     { transform: translateX(-6px) rotate(-1deg); }
  40%     { transform: translateX(6px)  rotate(1deg); }
  60%     { transform: translateX(-4px) rotate(-0.5deg); }
  80%     { transform: translateX(4px)  rotate(0.5deg); }
}
@keyframes pulse-red {
  0%,100% { background: #FF3B3B; }
  50%     { background: #FF6B00; }
}
@keyframes float-emoji {
  0%,100% { transform: translateY(0) rotate(0deg); }
  33%     { transform: translateY(-15px) rotate(5deg); }
  66%     { transform: translateY(-8px)  rotate(-3deg); }
}
@keyframes marquee {
  from { transform: translateX(100%); }
  to   { transform: translateX(-100%); }
}
@keyframes glitch {
  0%,90%,100% { transform: none; text-shadow: 4px 4px 0 #FF3B3B; }
  91% { transform: skewX(-5deg); text-shadow:  3px 0 red, -3px 0 cyan; }
  93% { transform: skewX(3deg);  text-shadow: -3px 0 red,  3px 0 cyan; }
  95% { transform: skewX(-2deg); text-shadow:  2px 0 red, -2px 0 cyan; }
}

/* ============================================
   FLOATING EMOJIS
============================================ */
.floating-emojis {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 999;
  overflow: hidden;
}
.float-emoji {
  position: fixed;
  font-size: 30px;
  animation: float-emoji 5s ease-in-out infinite;
  opacity: 0.35;
  user-select: none;
}

/* ============================================
   BREAKING NEWS TICKER
============================================ */
.cg-ticker {
  background: #FF3B3B;
  color: white;
  padding: 10px 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 18px;
  letter-spacing: 1px;
  border-bottom: 3px solid #333;
}
.cg-ticker-inner {
  display: inline-block;
  animation: marquee 22s linear infinite;
}

/* ============================================
   HERO
============================================ */
.cg-hero {
  background: #FFEC40;
  border-bottom: 6px solid #333;
  padding: 50px 20px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cg-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent, transparent 20px,
    rgba(255,59,59,0.07) 20px,
    rgba(255,59,59,0.07) 40px
  );
  pointer-events: none;
}

.cg-badge {
  display: inline-block;
  background: #FF3B3B;
  color: white;
  font-family: 'Permanent Marker', cursive;
  font-size: 14px;
  padding: 5px 18px;
  border-radius: 20px;
  border: 3px solid #333;
  transform: rotate(-2deg);
  margin-bottom: 16px;
  box-shadow: 3px 3px 0 #333;
}

.cg-main-title {
  font-family: 'Abril Fatface', serif;
  font-size: clamp(18px, 8vw, 100px);
  color: #333;
  line-height: 1;
  animation: glitch 6s infinite;
  text-shadow: 4px 4px 0 #FF3B3B;
  margin-bottom: 14px;
  white-space: nowrap;
  padding: 0 10px;
}

.cg-subtitle {
  font-family: 'Permanent Marker', cursive;
  font-size: clamp(16px, 3vw, 22px);
  color: #333;
  max-width: 700px;
  margin: 0 auto 24px;
  line-height: 1.5;
}

.cg-measuring-tape {
  display: inline-block;
  background: #FF6B00;
  color: white;
  font-family: 'Permanent Marker', cursive;
  font-size: 26px;
  padding: 10px 24px;
  border: 4px solid #333;
  border-radius: 8px;
  box-shadow: 5px 5px 0 #333;
  animation: wobble 2s ease-in-out infinite;
  margin: 8px;
}

.cg-emoji-row {
  font-size: 38px;
  margin: 16px 0;
  animation: bounce 1.5s ease-in-out infinite;
  display: block;
  letter-spacing: 8px;
}

.cg-dateline {
  margin-top: 20px;
  font-family: 'Permanent Marker', cursive;
  font-size: 14px;
  color: #555;
}

/* ============================================
   ALERT BAR
============================================ */
.cg-alert-bar {
  background: #FF3B3B;
  color: white;
  text-align: center;
  padding: 14px 20px;
  font-family: 'Permanent Marker', cursive;
  font-size: 18px;
  border-bottom: 4px solid #333;
}
.cg-alert-bar .highlight {
  background: #FFEC40;
  color: #333;
  padding: 2px 8px;
  border-radius: 4px;
}

/* ============================================
   LAYOUT HELPERS
============================================ */
.cg-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 50px 24px;
}

.cg-section-title {
  font-family: 'Permanent Marker', cursive;
  font-size: clamp(26px, 5vw, 40px);
  color: #333;
  text-align: center;
  margin-bottom: 30px;
  position: relative;
}
.cg-section-title::after {
  content: '';
  display: block;
  height: 5px;
  background: repeating-linear-gradient(
    90deg, #FF3B3B 0, #FF3B3B 12px, #FFEC40 12px, #FFEC40 24px
  );
  border-radius: 3px;
  margin-top: 10px;
}

/* ============================================
   CARDS
============================================ */
.cg-card {
  background: white;
  border: 4px solid #333;
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 6px 6px 0 #333;
  margin-bottom: 20px;
  position: relative;
  transition: transform 0.15s, box-shadow 0.15s;
}
.cg-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 #333;
}
.cg-card.yellow { background: #FFEC40; }
.cg-card.pink   { background: #FFD6EC; }
.cg-card.orange { background: #FFE0C0; }
.cg-card.green  { background: #D6FFD6; }
.cg-card.red-border { border-color: #FF3B3B; }

/* ============================================
   TIMELINE
============================================ */
.cg-timeline {
  position: relative;
  padding-left: 46px;
}
.cg-timeline::before {
  content: '';
  position: absolute;
  left: 16px; top: 0; bottom: 0;
  width: 5px;
  background: repeating-linear-gradient(
    180deg, #FF3B3B 0, #FF3B3B 10px, #FFEC40 10px, #FFEC40 20px
  );
  border-radius: 3px;
}
.cg-timeline-item {
  position: relative;
  margin-bottom: 22px;
}
.cg-timeline-item::before {
  content: attr(data-icon);
  position: absolute;
  left: -48px; top: 12px;
  width: 34px; height: 34px;
  background: white;
  border: 3px solid #333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  text-align: center;
  line-height: 28px;
  box-shadow: 2px 2px 0 #333;
}

/* ============================================
   QUOTE BOX
============================================ */
.cg-quote-box {
  background: white;
  border: 4px solid #333;
  border-radius: 12px;
  padding: 40px 24px 24px;
  box-shadow: 5px 5px 0 #FF3B3B;
  margin: 20px 0;
  font-family: 'Permanent Marker', cursive;
  font-size: 18px;
  color: #333;
  line-height: 1.6;
  position: relative;
}
.cg-quote-box::before {
  content: '"';
  font-family: 'Abril Fatface', serif;
  font-size: 90px;
  color: #FF3B3B;
  position: absolute;
  top: -24px; left: 14px;
  line-height: 1;
}
.cg-quote-box.dark {
  background: #111;
  border-color: #FFEC40;
  box-shadow: 5px 5px 0 #FF3B3B;
  color: #FFEC40;
  max-width: 520px;
  margin: 0 auto 24px;
}

/* ============================================
   CAKE DIAGRAM
============================================ */
.cg-cake-band {
  background: #FFEC40;
  border-top: 5px solid #333;
  border-bottom: 5px solid #333;
  padding: 10px 0;
}

.cg-cake-diagram {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 50px;
  padding: 30px 20px;
  flex-wrap: wrap;
}
.cg-cake-wrap { text-align: center; }
.cg-cake-label {
  font-family: 'Permanent Marker', cursive;
  font-size: 14px;
  margin-bottom: 10px;
  color: #333;
}

/* Bad cake */
.cg-bad-cake { width: 180px; position: relative; }
.cg-bad-cake-body {
  height: 22px;
  background: #F5DEB3;
  border: 3px solid #8B7355;
  border-radius: 6px 6px 0 0;
  position: relative;
}
.cg-bad-cake-body::after {
  content: '🔴🔵🍓';
  position: absolute;
  top: -14px; left: 10px;
  font-size: 11px;
  transform: rotate(15deg);
}
.cg-bad-cake-base {
  height: 8px;
  background: #D4A56A;
  border: 3px solid #8B7355;
  border-top: none;
  border-radius: 0 0 4px 4px;
}
.cg-tape {
  position: absolute;
  right: -58px; top: -4px;
  font-size: 11px;
  font-family: 'Permanent Marker', cursive;
  color: #333;
  background: #FFEC40;
  padding: 3px 6px;
  border: 1.5px solid #333;
  line-height: 1.4;
  white-space: nowrap;
}
.cg-tape::before { content: '← '; }
.cg-tape-line {
  position: absolute;
  right: -22px; top: 8px;
  width: 16px; height: 2px;
  background: #333;
}

/* Price tag */
.cg-price-tag {
  display: inline-block;
  background: #FF3B3B;
  color: white;
  font-family: 'Permanent Marker', cursive;
  font-size: 24px;
  padding: 10px 18px;
  border-radius: 50%;
  border: 4px solid #333;
  box-shadow: 4px 4px 0 #333;
  animation: pulse-red 2s infinite;
  margin-top: 10px;
}

/* Good cake */
.cg-good-cake { width: 160px; }
.cg-candle-container {
  display: flex;
  justify-content: center;
  margin-bottom: 2px;
  gap: 6px;
}
.cg-cake-candle {
  width: 5px;
  background: linear-gradient(to bottom, #FF6B00, #FFEC40);
  border-radius: 2px;
  position: relative;
}
.cg-candle-flame {
  position: absolute;
  top: -10px; left: -4px;
  font-size: 13px;
}
.cg-good-cake-top {
  height: 18px;
  background: #FFB347;
  border: 3px solid #8B7355;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  margin-bottom: -2px;
  position: relative;
}
.cg-good-cake-top::after {
  content: '🍓🍓🍓';
  position: absolute;
  top: -12px; left: 10px;
  font-size: 14px;
}
.cg-good-cake-body {
  height: 90px;
  background: #FFF8F0;
  border: 3px solid #8B7355;
  position: relative;
  overflow: hidden;
}
.cg-good-cake-body::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 20px;
  background: rgba(139,115,85,0.25);
}
.cg-good-cake-base {
  height: 10px;
  background: #D4A56A;
  border: 3px solid #8B7355;
  border-top: none;
  border-radius: 0 0 4px 4px;
}

.cg-vs-badge {
  font-family: 'Abril Fatface', serif;
  font-size: 48px;
  color: #FF3B3B;
  text-shadow: 3px 3px 0 #333;
  animation: wobble 1s infinite;
  align-self: center;
  margin-bottom: 20px;
}

.cg-real-cake-badge {
  display: inline-block;
  background: #4CAF50;
  color: white;
  font-family: 'Permanent Marker', cursive;
  font-size: 18px;
  padding: 7px 16px;
  border-radius: 30px;
  border: 3px solid #333;
  box-shadow: 3px 3px 0 #333;
  margin-top: 10px;
}

.cg-cake-note {
  text-align: center;
  font-family: 'Permanent Marker', cursive;
  font-size: 14px;
  color: #555;
  margin-top: 10px;
}
.cg-cake-small {
  font-family: 'Permanent Marker', cursive;
  font-size: 12px;
  margin-top: 8px;
  color: #555;
}

/* ============================================
   REACTIONS SECTION
============================================ */
.cg-reactions-band {
  background: #FFF0F5;
  border-top: 5px solid #333;
  border-bottom: 5px solid #333;
}
.cg-reaction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.cg-reaction-card {
  padding: 18px;
  border: 4px solid #333;
  border-radius: 12px;
  box-shadow: 5px 5px 0 #333;
  font-size: 15px;
  line-height: 1.5;
  transition: transform 0.15s, box-shadow 0.15s;
}
.cg-reaction-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 #333;
}
.cg-reaction-handle {
  font-family: 'Permanent Marker', cursive;
  font-size: 12px;
  color: #666;
  margin-top: 10px;
  border-top: 2px dashed #ccc;
  padding-top: 8px;
}
.cg-viral-count {
  text-align: center;
  margin-top: 32px;
}
.cg-viral-count-number {
  font-family: 'Permanent Marker', cursive;
  font-size: 32px;
  color: #FF3B3B;
}
.cg-viral-count-sub {
  font-family: 'Boogaloo', cursive;
  font-size: 18px;
  color: #666;
  margin-top: 6px;
}

/* ============================================
   CHEESECAKE FACTORY SECTION
============================================ */
.cg-factory-section {
  background: #222;
  color: #FFEC40;
  padding: 60px 20px;
  text-align: center;
  border-top: 6px solid #333;
  border-bottom: 6px solid #333;
  position: relative;
  overflow: hidden;
}
.cg-factory-section::before {
  content: '🏭 🏭 🏭 🏭 🏭 🏭 🏭 🏭 🏭 🏭';
  display: block;
  font-size: 32px;
  margin-bottom: 20px;
  animation: bounce 2s infinite;
  letter-spacing: 10px;
}
.cg-factory-inner {
  max-width: 800px;
  margin: 0 auto;
}
.cg-factory-title {
  font-family: 'Abril Fatface', serif;
  font-size: clamp(30px, 6vw, 54px);
  text-shadow: 4px 4px 0 #FF3B3B;
  margin-bottom: 20px;
  line-height: 1.2;
}
.cg-factory-intro {
  font-family: 'Boogaloo', cursive;
  font-size: 20px;
  color: #ccc;
  margin-bottom: 24px;
}
.cg-factory-what {
  font-family: 'Permanent Marker', cursive;
  font-size: 20px;
  color: #ccc;
  margin-bottom: 16px;
}
.cg-giftcard {
  display: inline-block;
  background: #FFEC40;
  color: #333;
  font-family: 'Permanent Marker', cursive;
  font-size: 34px;
  padding: 22px 44px;
  border: 6px solid #FF3B3B;
  border-radius: 16px;
  box-shadow: 8px 8px 0 #FF3B3B;
  animation: wobble 1.5s infinite;
  margin: 24px 0;
}
.cg-factory-quote {
  font-family: 'Boogaloo', cursive;
  font-size: 17px;
  color: #aaa;
  max-width: 520px;
  margin: 12px auto 0;
  line-height: 1.6;
}
.cg-factory-attribution {
  color: #FFEC40;
  font-family: 'Permanent Marker', cursive;
  font-size: 14px;
}

/* ============================================
   VERDICT SECTION
============================================ */
.cg-verdict {
  background: #FF3B3B;
  color: white;
  text-align: center;
  padding: 60px 20px;
  position: relative;
  overflow: hidden;
}
.cg-verdict::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent, transparent 15px,
    rgba(255,255,255,0.05) 15px,
    rgba(255,255,255,0.05) 30px
  );
  pointer-events: none;
}
.cg-verdict-title {
  font-family: 'Abril Fatface', serif;
  font-size: clamp(36px, 8vw, 72px);
  text-shadow: 5px 5px 0 #333;
  margin-bottom: 24px;
  animation: shake 4s infinite;
  display: inline-block;
}
.cg-verdict-list {
  font-family: 'Fredoka One', cursive;
  font-size: 22px;
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 2.2;
}
.cg-verdict-list .highlight {
  background: #FFEC40;
  color: #333;
  padding: 2px 8px;
  border-radius: 4px;
}
.cg-verdict-list .dark-highlight {
  background: #333;
  color: #FFEC40;
  padding: 2px 8px;
  border-radius: 4px;
}
.cg-verdict-cakes {
  font-size: 46px;
  animation: bounce 1.5s infinite;
  display: block;
  margin: 20px 0;
}
.cg-verdict-disclaimer {
  font-family: 'Boogaloo', cursive;
  font-size: 17px;
  opacity: 0.85;
  margin-top: 20px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ============================================
   SITE FOOTER
============================================ */
.cg-footer {
  background: #333;
  color: #FFEC40;
  text-align: center;
  padding: 36px 20px;
  font-family: 'Permanent Marker', cursive;
  font-size: 15px;
  line-height: 2.2;
}
.cg-footer .small {
  font-size: 12px;
  opacity: 0.55;
}
.cg-spin-star {
  display: inline-block;
  animation: spin-slow 4s linear infinite;
  font-size: 22px;
}

/* ============================================
   WORDPRESS ADMIN BAR OFFSET
============================================ */
.admin-bar .cg-ticker,
.admin-bar .floating-emojis {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar .cg-ticker,
  .admin-bar .floating-emojis {
    top: 46px;
  }
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 600px) {
  .cg-measuring-tape { font-size: 20px; padding: 8px 16px; }
  .cg-cake-diagram   { gap: 20px; }
  .cg-vs-badge       { font-size: 36px; }
  .cg-giftcard       { font-size: 24px; padding: 16px 28px; }
  .cg-timeline       { padding-left: 36px; }
  .cg-tape           { right: -46px; font-size: 10px; }
}

/* ============================================
   HERO PHOTO
============================================ */
.cg-hero-photo-wrap {
  position: relative;
  display: block;
  margin: 24px auto 8px;
  max-width: 820px;
  width: 100%;
}
.cg-hero-photo {
  width: 100%;
  max-width: 820px;
  height: auto;
  border: 6px solid #333;
  border-radius: 16px 16px 0 0;
  box-shadow: 10px 10px 0 #333;
  display: block;
  margin: 0 auto;
}
.cg-hero-photo-caption {
  display: block;
  background: #333;
  color: #FFEC40;
  font-family: 'Permanent Marker', cursive;
  font-size: 15px;
  padding: 8px 18px;
  border-radius: 0 0 12px 12px;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  box-sizing: border-box;
  box-shadow: 10px 10px 0 #333;
}
