/* DONALD80 Birthday Celebration — Styles */

:root {
  --cyan: #00d4f5;
  --cyan-dark: #0099b8;
  --gold: #ffd700;
  --gold-dark: #e6b800;
  --red: #e63946;
  --red-dark: #c1121f;
  --navy: #1a1a2e;
  --navy-light: #16213e;
  --white: #ffffff;
  --text: #f0f4f8;
  --text-muted: #a8b8c8;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --radius: 16px;
  --radius-lg: 24px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: linear-gradient(160deg, #0a0e1a 0%, #1a1a2e 40%, #0d2137 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Fireworks canvas */
#fireworks-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.confetti-layer {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  top: -20px;
  width: 10px;
  height: 10px;
  opacity: 0.85;
  animation: confetti-fall linear forwards;
}

@keyframes confetti-fall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(110vh) rotate(720deg);
    opacity: 0.3;
  }
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 212, 245, 0.15);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--white);
}

.logo-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  object-fit: cover;
}

.logo-text {
  font-family: 'Bangers', cursive;
  font-size: 1.6rem;
  letter-spacing: 2px;
  background: linear-gradient(135deg, var(--white), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--cyan);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.4rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--red), #ff6b6b);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(230, 57, 70, 0.45);
}

.btn-primary:hover {
  box-shadow: 0 6px 28px rgba(230, 57, 70, 0.6);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--cyan), var(--cyan-dark));
  color: var(--navy);
  box-shadow: 0 4px 20px rgba(0, 212, 245, 0.35);
}

.btn-secondary:hover {
  box-shadow: 0 6px 28px rgba(0, 212, 245, 0.5);
}

.btn-x {
  background: #000000;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.btn-x:hover {
  background: #111111;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.65);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-header {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
  padding: 0.55rem 1.2rem;
  font-size: 0.85rem;
}

.btn-outline {
  background: transparent;
  color: var(--cyan);
  border: 2px solid var(--cyan);
}

.btn-outline:hover {
  background: rgba(0, 212, 245, 0.1);
}

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
}

.btn-copy {
  background: var(--gold);
  color: var(--navy);
  padding: 0.6rem 1.2rem;
  flex-shrink: 0;
}

.btn-copy.copied {
  background: #4ade80;
}

/* Main content above fireworks */
main,
.header,
.footer {
  position: relative;
  z-index: 2;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section-title {
  font-family: 'Bangers', cursive;
  font-size: 2.5rem;
  letter-spacing: 2px;
  text-align: center;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--white), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

/* Hero */
.hero {
  padding-top: 90px;
  padding-bottom: 2rem;
  text-align: center;
}

.hero-banner-wrap {
  position: relative;
  max-width: 900px;
  margin: 0 auto 2rem;
  padding: 0 1rem;
}

.hero-banner {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow), 0 0 60px rgba(0, 212, 245, 0.2);
  border: 3px solid rgba(255, 215, 0, 0.4);
}

.hero-glow {
  position: absolute;
  inset: 10%;
  background: radial-gradient(circle, rgba(0, 212, 245, 0.15) 0%, transparent 70%);
  pointer-events: none;
  border-radius: var(--radius-lg);
}

.hero-title {
  font-family: 'Bangers', cursive;
  font-size: clamp(4rem, 12vw, 7rem);
  letter-spacing: 4px;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.title-donald {
  color: var(--white);
  text-shadow: 4px 4px 0 var(--navy), 6px 6px 0 rgba(0, 100, 180, 0.8);
}

.title-80 {
  color: var(--gold);
  text-shadow: 4px 4px 0 var(--navy), 6px 6px 0 rgba(0, 100, 180, 0.8);
}

.hero-subtitle {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.hero-tagline {
  font-size: 1.1rem;
  color: var(--cyan);
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  padding: 0 1rem;
}

/* CA Section */
.ca-section {
  padding-top: 2rem;
}

.ca-card {
  background: linear-gradient(145deg, rgba(0, 212, 245, 0.08), rgba(255, 215, 0, 0.06));
  border: 2px solid rgba(0, 212, 245, 0.3);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.ca-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(255, 215, 0, 0.05), transparent, rgba(0, 212, 245, 0.05), transparent);
  animation: ca-shimmer 8s linear infinite;
  pointer-events: none;
}

@keyframes ca-shimmer {
  to { transform: rotate(360deg); }
}

.ca-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--red), #ff4757);
  color: var(--white);
  font-family: 'Bangers', cursive;
  font-size: 1.4rem;
  letter-spacing: 3px;
  padding: 0.4rem 1.5rem;
  border-radius: 50px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
}

.ca-label {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.ca-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  max-width: 100%;
  position: relative;
  z-index: 1;
}

.ca-address {
  flex: 1;
  font-family: 'Bangers', cursive;
  font-size: clamp(1.4rem, 5vw, 2.2rem);
  letter-spacing: 2px;
  color: var(--gold);
  word-break: break-word;
  text-align: left;
  line-height: 1.4;
}

.ca-hint {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 212, 245, 0.2);
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.stat-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-family: 'Bangers', cursive;
  font-size: 2rem;
  color: var(--gold);
  letter-spacing: 2px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Meme gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.75rem;
}

.gallery-frame {
  margin: 0;
  padding: 12px;
  background: linear-gradient(145deg, #8b6914 0%, #ffd700 35%, #b8860b 70%, #ffd700 100%);
  border-radius: 6px;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.45),
    inset 0 0 0 2px rgba(255, 255, 255, 0.35),
    inset 0 0 0 6px #5c4a0f;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-frame:hover {
  transform: translateY(-6px) rotate(-0.5deg);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.55),
    0 0 24px rgba(255, 215, 0, 0.25),
    inset 0 0 0 2px rgba(255, 255, 255, 0.35),
    inset 0 0 0 6px #5c4a0f;
}

.gallery-trigger {
  display: block;
  width: 100%;
  padding: 10px;
  border: none;
  background: #f5f0e6;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
  cursor: zoom-in;
  line-height: 0;
}

.gallery-trigger img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(6px);
}

.gallery-modal[hidden] {
  display: none;
}

.gallery-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  width: 48px;
  height: 48px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: rgba(10, 14, 26, 0.9);
  color: var(--gold);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.gallery-modal-close:hover {
  background: rgba(20, 24, 40, 0.95);
  transform: scale(1.05);
}

.gallery-modal-inner {
  max-width: min(920px, 100%);
  margin: 0;
  padding: 14px;
  background: linear-gradient(145deg, #8b6914, #ffd700, #b8860b);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.gallery-modal-inner img {
  display: block;
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
  background: #000;
  border: 8px solid #f5f0e6;
}

.gallery-modal-inner figcaption {
  margin-top: 0.75rem;
  text-align: center;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
}

/* Chart */
.chart-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid rgba(0, 212, 245, 0.25);
  box-shadow: var(--shadow);
  background: #0d1117;
}

#dexscreener-embed {
  position: relative;
  width: 100%;
  padding-bottom: 125%;
}

@media (min-width: 1400px) {
  #dexscreener-embed {
    padding-bottom: 65%;
  }
}

#dexscreener-embed iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  border: 0;
}

.chart-links {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

/* Buy cards */
.buy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.buy-card {
  display: block;
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.buy-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.buy-card-pump:hover {
  border-color: var(--red);
  box-shadow: 0 12px 40px rgba(230, 57, 70, 0.25);
}

.buy-card-swap:hover {
  border-color: var(--cyan);
  box-shadow: 0 12px 40px rgba(0, 212, 245, 0.25);
}

.buy-card-dex:hover {
  border-color: var(--gold);
  box-shadow: 0 12px 40px rgba(255, 215, 0, 0.2);
}

.buy-card-x {
  border-color: rgba(255, 255, 255, 0.15);
}

.buy-card-x:hover {
  border-color: #ffffff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.buy-card-x .buy-card-cta {
  color: var(--white);
}

.buy-card-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.buy-card h3 {
  font-family: 'Bangers', cursive;
  font-size: 1.6rem;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.buy-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.buy-card-cta {
  font-weight: 700;
  color: var(--cyan);
  font-size: 0.95rem;
}

.buy-card-pump .buy-card-cta { color: var(--red); }
.buy-card-swap .buy-card-cta { color: var(--cyan); }
.buy-card-dex .buy-card-cta { color: var(--gold); }

/* Birthday card */
.birthday-card {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.1), rgba(0, 212, 245, 0.08));
  border: 2px solid rgba(255, 215, 0, 0.25);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.birthday-img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 4px solid var(--gold);
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.birthday-text h2 {
  font-family: 'Bangers', cursive;
  font-size: 1.8rem;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  color: var(--gold);
}

.birthday-text p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.birthday-decor {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
  font-size: 1.5rem;
}

.birthday-decor span {
  animation: bounce 2s ease-in-out infinite;
}

.birthday-decor span:nth-child(2) { animation-delay: 0.2s; }
.birthday-decor span:nth-child(3) { animation-delay: 0.4s; }
.birthday-decor span:nth-child(4) { animation-delay: 0.6s; }
.birthday-decor span:nth-child(5) { animation-delay: 0.8s; }

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Footer */
.footer {
  background: rgba(0, 0, 0, 0.5);
  border-top: 1px solid rgba(0, 212, 245, 0.15);
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}

.footer-inner {
  text-align: center;
}

.footer-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  margin-bottom: 1rem;
}

.footer-text {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.footer-disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 1.5rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .birthday-card {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
  }

  .birthday-decor {
    justify-content: center;
  }

  .ca-box {
    flex-direction: column;
    text-align: center;
  }

  .ca-address {
    text-align: center;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 320px;
  }

  .gallery-trigger img {
    height: 180px;
  }
}
