/* ==========================================================================
   POP ART / COMIC-BOOK STYLE SYSTEM (CLOUDUNO.BLOG)
   Strictly adheres to:
   - Thick black borders (4px+)
   - Hard offset shadows (no blur)
   - Bold flat saturated colors (Yellow #ffdd00, Pink #ff69b4, Blue #00bfff, Red #ff3333)
   - Heavy typography (Black weight, uppercase, wide tracking)
   - Ben-Day halftone dot patterns (dual layer dynamic shift)
   - Punchy snap transitions (100ms ease-out)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bungee&family=Montserrat:wght@800;900&family=Noto+Sans+SC:wght@700;900&display=swap');

:root {
  --pop-yellow: #ffdd00;
  --pop-pink: #ff69b4;
  --pop-blue: #00bfff;
  --pop-red: #ff3333;
  --pop-green: #00e676;
  --pop-black: #000000;
  --pop-white: #ffffff;
  --pop-purple: #9d4edd;
}

body {
  font-family: 'Montserrat', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  background-color: #fdfae5;
  color: #000000;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .comic-font {
  font-family: 'Bungee', 'Montserrat', 'Noto Sans SC', sans-serif;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ==========================================================================
   BEN-DAY HALFTONE DOT PATTERNS
   ========================================================================== */
.bended-pattern-bg {
  background-color: #fef7c2;
  background-image: 
    radial-gradient(#000000 15%, transparent 16%),
    radial-gradient(#ff3333 15%, transparent 16%);
  background-size: 16px 16px;
  background-position: 0 0, 8px 8px;
}

.bended-pattern-card {
  position: relative;
  overflow: hidden;
}

.bended-pattern-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(#000 18%, transparent 19%);
  background-size: 12px 12px;
  opacity: 0.08;
  pointer-events: none;
  transition: opacity 100ms ease-out;
  z-index: 1;
}

.bended-pattern-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(#ff3333 18%, transparent 19%);
  background-size: 12px 12px;
  background-position: 6px 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 100ms ease-out;
  z-index: 1;
}

.bended-pattern-card:hover::before {
  opacity: 0.22;
}

.bended-pattern-card:hover::after {
  opacity: 0.18;
}

/* ==========================================================================
   POP ART CARD & CONTAINER RULES
   ========================================================================== */
.pop-box {
  background-color: #ffffff;
  border: 4px solid #000000;
  box-shadow: 6px 6px 0 #000000;
  border-radius: 8px;
  position: relative;
  transition: all 100ms ease-out;
}

.pop-box-lg {
  border: 5px solid #000000;
  box-shadow: 8px 8px 0 #000000;
  border-radius: 12px;
}

.pop-box-hover:hover {
  transform: translate(-3px, -3px) rotate(-1deg);
  box-shadow: 10px 10px 0 #000000;
}

/* ==========================================================================
   POP ART BUTTONS (USER SPECIFIED RULES)
   ========================================================================== */
.pop-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  background-color: var(--pop-yellow);
  color: #000000;
  border: 4px solid #000000;
  border-radius: 8px;
  box-shadow: 6px 6px 0 #000000;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  transition: all 100ms ease-out;
  position: relative;
  z-index: 2;
}

.pop-btn:hover {
  background-color: var(--pop-pink);
  box-shadow: 10px 10px 0 #000000;
  transform: translateY(-4px) scale(1.08) rotate(-2.5deg);
}

.pop-btn:active {
  transform: scale(0.95) rotate(2deg) translate(4px, 4px);
  box-shadow: 2px 2px 0 #000000;
}

.pop-btn-blue {
  background-color: var(--pop-blue);
  color: #000000;
}
.pop-btn-blue:hover {
  background-color: var(--pop-yellow);
}

.pop-btn-pink {
  background-color: var(--pop-pink);
  color: #000000;
}
.pop-btn-pink:hover {
  background-color: var(--pop-blue);
}

.pop-btn-red {
  background-color: var(--pop-red);
  color: #ffffff;
}
.pop-btn-red:hover {
  background-color: var(--pop-yellow);
  color: #000000;
}

.pop-btn-sm {
  padding: 6px 14px;
  font-size: 0.9rem;
  border-width: 3px;
  box-shadow: 4px 4px 0 #000000;
}
.pop-btn-sm:hover {
  box-shadow: 6px 6px 0 #000000;
}

/* ==========================================================================
   COMIC ACTION BADGES & SFX
   ========================================================================== */
.comic-badge {
  display: inline-block;
  font-weight: 900;
  font-size: 0.85rem;
  padding: 4px 10px;
  border: 3px solid #000000;
  border-radius: 6px;
  box-shadow: 3px 3px 0 #000000;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sfx-pow {
  display: inline-block;
  background-color: var(--pop-red);
  color: #ffffff;
  padding: 6px 16px;
  border: 4px solid #000000;
  font-weight: 900;
  font-size: 1.4rem;
  box-shadow: 6px 6px 0 #000000;
  transform: rotate(-6deg);
  letter-spacing: 0.1em;
  animation: sfx-pulse 1.8s infinite alternate ease-in-out;
}

@keyframes sfx-pulse {
  0% { transform: rotate(-6deg) scale(1); }
  100% { transform: rotate(-3deg) scale(1.06); }
}

.speech-bubble {
  position: relative;
  background: #ffffff;
  border: 4px solid #000000;
  border-radius: 12px;
  box-shadow: 6px 6px 0 #000000;
  padding: 16px;
}

.speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -18px;
  left: 36px;
  border-width: 18px 14px 0;
  border-style: solid;
  border-color: #000000 transparent;
  display: block;
  width: 0;
}

.speech-bubble::before {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 39px;
  border-width: 13px 11px 0;
  border-style: solid;
  border-color: #ffffff transparent;
  display: block;
  width: 0;
  z-index: 1;
}

/* ==========================================================================
   MARQUEE STRIP (NEWS TICKER)
   ========================================================================== */
.pop-ticker {
  background-color: #000000;
  color: var(--pop-yellow);
  border-top: 4px solid #000;
  border-bottom: 4px solid #000;
  overflow: hidden;
  white-space: nowrap;
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  padding: 8px 0;
}

.pop-ticker-inner {
  display: inline-block;
  animation: ticker-slide 28s linear infinite;
}

@keyframes ticker-slide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   POP MODAL
   ========================================================================== */
.pop-modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(2px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease-out;
}

.pop-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.pop-modal-box {
  background-color: #ffffff;
  border: 5px solid #000000;
  box-shadow: 12px 12px 0 #000000;
  border-radius: 12px;
  max-width: 760px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9) rotate(-2deg);
  transition: all 120ms ease-out;
}

.pop-modal-backdrop.active .pop-modal-box {
  transform: scale(1) rotate(0deg);
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.pop-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: var(--pop-yellow);
  color: #000000;
  border: 4px solid #000000;
  box-shadow: 6px 6px 0 #000000;
  padding: 14px 24px;
  font-weight: 900;
  font-size: 1.1rem;
  border-radius: 8px;
  z-index: 10000;
  transform: translateY(120px) scale(0.8) rotate(4deg);
  transition: transform 120ms ease-out;
  pointer-events: none;
}

.pop-toast.show {
  transform: translateY(0) scale(1) rotate(-1deg);
}
