/* AP CSP Topic 1.3 — tea guide (scoped; matches standalone brainrot reference vibe) */

.ap-csp-t13-root {
  --ap-csp-t13-hot-pink: #ff2d78;
  --ap-csp-t13-lime: #aaff00;
  --ap-csp-t13-cyber-blue: #00e5ff;
  --ap-csp-t13-yellow: #ffe600;
  --ap-csp-t13-purple: #c400ff;
  --ap-csp-t13-dark: #0d0d0d;
  --ap-csp-t13-panel: #1a1a2e;
  --ap-csp-t13-card: #16213e;
  --ap-csp-t13-neon-glow: 0 0 8px var(--ap-csp-t13-hot-pink), 0 0 20px var(--ap-csp-t13-hot-pink);
  --ap-csp-t13-lime-glow: 0 0 8px var(--ap-csp-t13-lime), 0 0 20px var(--ap-csp-t13-lime);

  background: var(--ap-csp-t13-dark);
  color: #fff;
  font-family: 'Nunito', 'Inter', system-ui, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

.ap-csp-t13-root * {
  box-sizing: border-box;
}

.ap-csp-t13-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 13, 13, 0.92);
  border-bottom: 1px solid #222;
  backdrop-filter: blur(8px);
}

.ap-csp-t13-back {
  font: inherit;
  background: transparent;
  border: 1px solid #333;
  color: #eee;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.ap-csp-t13-back:hover {
  border-color: var(--ap-csp-t13-hot-pink);
  color: #fff;
}

.ap-csp-t13-title {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: #aaa;
}

.ap-csp-t13-root::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.3;
}

.ap-csp-t13-floaty {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.ap-csp-t13-floaty span {
  position: fixed;
  font-size: 24px;
  animation: ap-csp-t13-floatUp 6s ease-in infinite;
  opacity: 0;
}

@keyframes ap-csp-t13-floatUp {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

.ap-csp-t13-ticker-wrap {
  background: var(--ap-csp-t13-hot-pink);
  overflow: hidden;
  white-space: nowrap;
  padding: 8px 0;
  position: sticky;
  top: 52px;
  z-index: 40;
  border-bottom: 3px solid var(--ap-csp-t13-yellow);
}

.ap-csp-t13-ticker {
  display: inline-block;
  animation: ap-csp-t13-ticker 25s linear infinite;
  font-family: 'Space Mono', ui-monospace, monospace;
  font-size: 14px;
  font-weight: 700;
  color: #000;
  letter-spacing: 1px;
}

@keyframes ap-csp-t13-ticker {
  0% {
    transform: translateX(100vw);
  }
  100% {
    transform: translateX(-100%);
  }
}

.ap-csp-t13-header {
  text-align: center;
  padding: 40px 20px 20px;
  position: relative;
  z-index: 1;
}

.ap-csp-t13-header-badge {
  display: inline-block;
  background: var(--ap-csp-t13-lime);
  color: #000;
  font-family: 'Space Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: 2px;
  animation: ap-csp-t13-pulse 2s ease-in-out infinite;
}

@keyframes ap-csp-t13-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
    box-shadow: var(--ap-csp-t13-lime-glow);
  }
}

.ap-csp-t13-hero {
  font-family: 'Bebas Neue', 'Inter', sans-serif;
  font-size: clamp(48px, 10vw, 96px);
  line-height: 0.9;
  letter-spacing: 2px;
  background: linear-gradient(135deg, var(--ap-csp-t13-hot-pink), var(--ap-csp-t13-yellow), var(--ap-csp-t13-cyber-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.ap-csp-t13-subtitle {
  font-size: 16px;
  color: #aaa;
  font-style: italic;
}

.ap-csp-t13-subtitle span {
  color: var(--ap-csp-t13-lime);
  font-style: normal;
  font-weight: 900;
}

.ap-csp-t13-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  z-index: 1;
}

.ap-csp-t13-section-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--ap-csp-t13-hot-pink);
  margin-bottom: 12px;
  margin-top: 40px;
  text-shadow: var(--ap-csp-t13-neon-glow);
}

.ap-csp-t13-section-label:first-of-type {
  margin-top: 0;
}

.ap-csp-t13-chat-intro {
  background: var(--ap-csp-t13-panel);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid #333;
  margin-bottom: 30px;
}

.ap-csp-t13-chat-msg {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  animation: ap-csp-t13-slideIn 0.4s ease both;
}

.ap-csp-t13-chat-msg:nth-child(1) {
  animation-delay: 0.1s;
}
.ap-csp-t13-chat-msg:nth-child(2) {
  animation-delay: 0.3s;
}
.ap-csp-t13-chat-msg:nth-child(3) {
  animation-delay: 0.5s;
}
.ap-csp-t13-chat-msg:nth-child(4) {
  animation-delay: 0.65s;
}

.ap-csp-t13-chat-msg--right {
  flex-direction: row-reverse;
}

@keyframes ap-csp-t13-slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ap-csp-t13-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #222;
  border: 2px solid #333;
}

.ap-csp-t13-bubble {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.5;
}

.ap-csp-t13-bubble--pink {
  background: var(--ap-csp-t13-hot-pink);
  color: #fff;
  border-radius: 18px 18px 4px 18px;
}
.ap-csp-t13-bubble--dark {
  background: #2a2a2a;
  color: #eee;
  border-radius: 18px 18px 18px 4px;
}
.ap-csp-t13-bubble--lime {
  background: var(--ap-csp-t13-lime);
  color: #000;
  font-weight: 700;
  border-radius: 18px 18px 4px 18px;
}

.ap-csp-t13-sender {
  font-size: 11px;
  color: #888;
  margin-bottom: 4px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.ap-csp-t13-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}

.ap-csp-t13-tea-card {
  background: var(--ap-csp-t13-card);
  border: 2px solid #2a2a3e;
  border-radius: 16px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.ap-csp-t13-tea-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: 14px;
}

.ap-csp-t13-tea-card--pink::before {
  background: radial-gradient(circle at 30% 30%, rgba(255, 45, 120, 0.15), transparent 70%);
}
.ap-csp-t13-tea-card--blue::before {
  background: radial-gradient(circle at 30% 30%, rgba(0, 229, 255, 0.15), transparent 70%);
}
.ap-csp-t13-tea-card--lime::before {
  background: radial-gradient(circle at 30% 30%, rgba(170, 255, 0, 0.15), transparent 70%);
}
.ap-csp-t13-tea-card--purple::before {
  background: radial-gradient(circle at 30% 30%, rgba(196, 0, 255, 0.15), transparent 70%);
}

.ap-csp-t13-tea-card:hover,
.ap-csp-t13-tea-card.is-active {
  transform: translateY(-4px);
  border-color: var(--ap-csp-t13-hot-pink);
  box-shadow: 0 0 20px rgba(255, 45, 120, 0.3);
}

.ap-csp-t13-tea-card.is-active {
  border-color: var(--ap-csp-t13-lime);
  box-shadow: 0 0 20px rgba(170, 255, 0, 0.3);
}

.ap-csp-t13-tea-card:hover::before,
.ap-csp-t13-tea-card.is-active::before {
  opacity: 1;
}

.ap-csp-t13-card-emoji {
  font-size: 36px;
  margin-bottom: 10px;
  display: block;
}

.ap-csp-t13-card-tag {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: var(--ap-csp-t13-hot-pink);
  letter-spacing: 2px;
  margin-bottom: 6px;
  font-weight: 700;
}

.ap-csp-t13-card-title {
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 6px;
  line-height: 1.2;
}

.ap-csp-t13-card-teaser {
  font-size: 13px;
  color: #999;
  line-height: 1.4;
}

.ap-csp-t13-card-teaser em {
  color: var(--ap-csp-t13-cyber-blue);
  font-style: normal;
  font-weight: 700;
}

.ap-csp-t13-tap-hint {
  font-size: 11px;
  color: #555;
  margin-top: 10px;
  font-style: italic;
}

.ap-csp-t13-pill-row {
  margin-top: 8px;
}

.ap-csp-t13-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  font-family: 'Space Mono', monospace;
  margin: 3px 2px;
  letter-spacing: 0.5px;
}

.ap-csp-t13-pill.pill-pink {
  background: rgba(255, 45, 120, 0.2);
  color: var(--ap-csp-t13-hot-pink);
  border: 1px solid var(--ap-csp-t13-hot-pink);
}
.ap-csp-t13-pill.pill-blue {
  background: rgba(0, 229, 255, 0.2);
  color: var(--ap-csp-t13-cyber-blue);
  border: 1px solid var(--ap-csp-t13-cyber-blue);
}
.ap-csp-t13-pill.pill-lime {
  background: rgba(170, 255, 0, 0.2);
  color: var(--ap-csp-t13-lime);
  border: 1px solid var(--ap-csp-t13-lime);
}
.ap-csp-t13-pill.pill-yellow {
  background: rgba(255, 230, 0, 0.2);
  color: var(--ap-csp-t13-yellow);
  border: 1px solid var(--ap-csp-t13-yellow);
}

.ap-csp-t13-card-reveal {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #333;
  animation: ap-csp-t13-fadeReveal 0.3s ease;
}

.ap-csp-t13-card-reveal[hidden] {
  display: none !important;
}

@keyframes ap-csp-t13-fadeReveal {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ap-csp-t13-reveal-title {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--ap-csp-t13-lime);
  letter-spacing: 1px;
  margin-bottom: 8px;
  font-weight: 700;
}

.ap-csp-t13-reveal-text {
  font-size: 13px;
  line-height: 1.6;
  color: #ccc;
}

.ap-csp-t13-reveal-text p {
  margin: 0 0 0.75em;
}

.ap-csp-t13-reveal-text p:last-child {
  margin-bottom: 0;
}

.ap-csp-t13-reveal-text strong {
  color: var(--ap-csp-t13-yellow);
}
.ap-csp-t13-reveal-text em {
  color: var(--ap-csp-t13-cyber-blue);
  font-style: normal;
  font-weight: 700;
}

.ap-csp-t13-quiz-box {
  background: var(--ap-csp-t13-panel);
  border: 2px solid var(--ap-csp-t13-purple);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 30px;
  box-shadow: 0 0 30px rgba(196, 0, 255, 0.15);
}

.ap-csp-t13-quiz-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.ap-csp-t13-quiz-icon {
  font-size: 32px;
}

.ap-csp-t13-quiz-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  color: var(--ap-csp-t13-purple);
  letter-spacing: 1px;
}

.ap-csp-t13-quiz-sub {
  font-size: 13px;
  color: #888;
}

.ap-csp-t13-q-item {
  margin-bottom: 20px;
  padding: 16px;
  background: #111;
  border-radius: 12px;
  border: 1px solid #2a2a2a;
}

.ap-csp-t13-q-text {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}

.ap-csp-t13-q-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ap-csp-t13-q-opt {
  padding: 10px 14px;
  border-radius: 8px;
  background: #1e1e1e;
  border: 1.5px solid #333;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.15s ease;
  line-height: 1.4;
  text-align: left;
  font-family: 'Nunito', 'Inter', sans-serif;
  color: #fff;
}

.ap-csp-t13-q-opt:hover:not(:disabled) {
  background: #2a2a2a;
  border-color: #555;
}

.ap-csp-t13-q-opt:disabled {
  cursor: default;
}

.ap-csp-t13-q-opt.is-correct {
  background: rgba(170, 255, 0, 0.15);
  border-color: var(--ap-csp-t13-lime);
  color: var(--ap-csp-t13-lime);
}

.ap-csp-t13-q-opt.is-wrong {
  background: rgba(255, 45, 120, 0.15);
  border-color: var(--ap-csp-t13-hot-pink);
  color: var(--ap-csp-t13-hot-pink);
}

.ap-csp-t13-q-feedback {
  margin-top: 10px;
  font-size: 13px;
  padding: 10px;
  border-radius: 8px;
  line-height: 1.5;
}

.ap-csp-t13-q-feedback--correct {
  background: rgba(170, 255, 0, 0.1);
  color: var(--ap-csp-t13-lime);
}

.ap-csp-t13-q-feedback--wrong {
  background: rgba(255, 45, 120, 0.1);
  color: #ff7eb3;
}

.ap-csp-t13-score {
  text-align: center;
  padding: 20px;
  background: #111;
  border-radius: 12px;
  margin-top: 16px;
  border: 2px solid var(--ap-csp-t13-yellow);
}

.ap-csp-t13-score-emoji {
  font-size: 48px;
  display: block;
  margin-bottom: 8px;
}

.ap-csp-t13-score-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 52px;
  color: var(--ap-csp-t13-yellow);
}

.ap-csp-t13-score-msg {
  font-size: 15px;
  color: #ccc;
  margin-top: 6px;
}

.ap-csp-t13-footer {
  text-align: center;
  padding: 30px 20px;
  font-size: 12px;
  color: #444;
  border-top: 1px solid #1a1a1a;
  font-family: 'Space Mono', monospace;
  position: relative;
  z-index: 1;
}

.ap-csp-t13-footer span {
  color: var(--ap-csp-t13-hot-pink);
}

@media (max-width: 600px) {
  .ap-csp-t13-cards-grid {
    grid-template-columns: 1fr;
  }
}
