/* ============================================
   SlimShadi.com — Pink & Purple Living Page
   🫀 S + A 🫀
   ============================================ */

:root {
  --pink: #ec4899;
  --pink-light: #f9a8d4;
  --pink-dark: #be185d;
  --purple: #a855f7;
  --purple-light: #c084fc;
  --purple-dark: #7c3aed;
  --bg-dark: #0f0a1a;
  --bg-section: #1a1025;
  --bg-card: #251836;
  --text: #f5e6ff;
  --text-muted: #b8a3cc;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.hidden {
  display: none !important;
}

/* ---- PASSWORD GATE ---- */

#gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--pink-dark), var(--purple-dark), var(--bg-dark));
  background-size: 400% 400%;
  animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.gate-content {
  text-align: center;
  z-index: 2;
}

.gate-heart {
  font-size: 5rem;
  animation: heartbeat 1.2s ease-in-out infinite;
  margin-bottom: 2rem;
  filter: drop-shadow(0 0 30px rgba(236, 72, 153, 0.6));
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.15); }
  30% { transform: scale(1); }
  45% { transform: scale(1.1); }
}

#gate-form {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

#gate-password {
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(236, 72, 153, 0.3);
  border-radius: 2rem;
  padding: 0.8rem 1.5rem;
  color: var(--text);
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  width: 200px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

#gate-password:focus {
  border-color: var(--pink);
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.3);
}

#gate-password::placeholder {
  color: var(--text-muted);
}

#gate-form button {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.3rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

#gate-form button:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.5);
}

#gate.shake .gate-heart {
  animation: shake 0.5s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-15px); }
  40% { transform: translateX(15px); }
  60% { transform: translateX(-10px); }
  80% { transform: translateX(10px); }
}

/* ---- FLOATING HEARTS ---- */

.floating-hearts {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.float-heart {
  position: absolute;
  font-size: 1.2rem;
  opacity: 0;
  animation: floatUp linear infinite;
}

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

/* ---- HERO ---- */

#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--bg-dark) 0%, #1a0e2e 50%, var(--bg-dark) 100%);
  overflow: hidden;
}

.hero-content {
  text-align: center;
  z-index: 2;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--pink), var(--purple-light), var(--pink-light));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 4s ease infinite;
  margin-bottom: 0.5rem;
}

.hero-title .highlight {
  font-style: italic;
}

.hero-heart {
  font-size: 3rem;
  animation: heartbeat 1.2s ease-in-out infinite;
  margin: 1rem 0;
  filter: drop-shadow(0 0 20px rgba(236, 72, 153, 0.5));
}

.hero-tagline {
  font-family: 'Caveat', cursive;
  font-size: clamp(1.3rem, 3vw, 2rem);
  color: var(--text-muted);
  font-weight: 400;
}

/* ---- SECTIONS (shared) ---- */

section {
  padding: 5rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

section:nth-child(even) {
  background: var(--bg-section);
  max-width: 100%;
  padding-left: calc((100% - 1100px) / 2 + 1.5rem);
  padding-right: calc((100% - 1100px) / 2 + 1.5rem);
}

section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  text-align: center;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-family: 'Caveat', cursive;
  font-size: 1.3rem;
  margin-bottom: 3rem;
}

/* ---- THE BOARD ---- */

.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.sticky-note {
  padding: 1.5rem;
  border-radius: 4px;
  position: relative;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.3);
}

.sticky-note:hover {
  transform: translateY(-4px) rotate(0deg) !important;
  box-shadow: 6px 8px 25px rgba(0, 0, 0, 0.4);
}

.sticky-note.pink {
  background: linear-gradient(135deg, #3d1530, #4a1a3a);
  border-left: 4px solid var(--pink);
}

.sticky-note.purple {
  background: linear-gradient(135deg, #2a1545, #351a52);
  border-left: 4px solid var(--purple);
}

.sticky-note.tilted-left {
  transform: rotate(-2deg);
}

.sticky-note.tilted-right {
  transform: rotate(2deg);
}

.note-author {
  display: inline-block;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  text-align: center;
  line-height: 28px;
  font-weight: 600;
  font-size: 0.8rem;
  margin-bottom: 0.8rem;
}

.sticky-note p {
  font-family: 'Caveat', cursive;
  font-size: 1.15rem;
  line-height: 1.5;
  flex: 1;
}

.note-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: right;
  margin-top: 0.8rem;
}

/* ---- PROJECTS ---- */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid rgba(168, 85, 247, 0.15);
  transition: border-color 0.3s, transform 0.3s;
}

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

.project-status {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.project-status.active {
  background: rgba(236, 72, 153, 0.15);
  color: var(--pink-light);
  animation: statusPulse 2s ease-in-out infinite;
}

.project-status.idea {
  background: rgba(168, 85, 247, 0.15);
  color: var(--purple-light);
}

.project-status.done {
  background: rgba(74, 222, 128, 0.15);
  color: #86efac;
}

@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.3); }
  50% { box-shadow: 0 0 0 6px rgba(236, 72, 153, 0); }
}

.project-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.project-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---- ADVENTURES (Photo Grid) ---- */

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 200px;
  gap: 1rem;
}

.photo-slot {
  background: var(--bg-card);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed rgba(236, 72, 153, 0.2);
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.photo-slot:hover {
  border-color: var(--pink);
  background: rgba(236, 72, 153, 0.05);
  transform: scale(1.02);
}

.photo-slot.tall {
  grid-row: span 2;
}

.photo-slot.wide {
  grid-column: span 2;
}

.photo-placeholder {
  font-size: 2.5rem;
  opacity: 0.3;
  transition: opacity 0.3s;
}

.photo-slot:hover .photo-placeholder {
  opacity: 0.6;
}

.photo-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.photo-slot:hover .photo-label {
  opacity: 1;
}

/* When photos are added: */
.photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* ---- RESEARCH ---- */

.research-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.research-card {
  display: flex;
  gap: 1.5rem;
  background: var(--bg-card);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(168, 85, 247, 0.15);
  transition: border-color 0.3s;
}

.research-card:hover {
  border-color: var(--purple);
}

.research-year {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  min-width: 70px;
  display: flex;
  align-items: center;
}

.research-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.research-journal {
  color: var(--pink-light);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.research-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---- FAVORITES ---- */

.favorites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.favorites-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(236, 72, 153, 0.1);
  transition: border-color 0.3s, transform 0.3s;
}

.favorites-card:hover {
  border-color: var(--pink);
  transform: translateY(-3px);
}

.favorites-emoji {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.favorites-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  color: var(--pink-light);
}

.favorites-card ul {
  list-style: none;
}

.favorites-card li {
  padding: 0.4rem 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(168, 85, 247, 0.08);
  font-family: 'Caveat', cursive;
  font-size: 1.1rem;
}

.favorites-card li:last-child {
  border-bottom: none;
}

/* ---- ERA NAVIGATION ---- */

.era-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.era-link {
  color: var(--text-muted);
  text-decoration: none;
  font-family: 'Caveat', cursive;
  font-size: 1.2rem;
  transition: color 0.3s;
  padding: 0.3rem 0.8rem;
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 2rem;
}

.era-link:hover {
  color: var(--pink);
  border-color: var(--pink);
}

.era-dot {
  font-size: 0.7rem;
  opacity: 0.4;
}

/* ---- ERA DIVIDERS ---- */

.era-divider {
  text-align: center;
  padding: 4rem 1.5rem 2rem;
  position: relative;
}

.era-divider::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 3rem;
  background: linear-gradient(to bottom, transparent, var(--pink));
}

.era-label {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  font-style: italic;
  background: linear-gradient(135deg, var(--pink), var(--purple-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.3rem;
}

.era-years {
  font-family: 'Caveat', cursive;
  font-size: 1.3rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* ---- MESSAGES GRID ---- */

.messages-grid {
  grid-template-columns: repeat(3, 1fr) !important;
  grid-auto-rows: auto !important;
}

.messages-grid .photo-slot {
  border: none;
  background: transparent;
  aspect-ratio: auto;
  height: auto;
}

.messages-grid .photo-slot img {
  border-radius: 12px;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  border: 2px solid rgba(236, 72, 153, 0.15);
}

/* ---- DRIVE LINKS ---- */

.drive-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ---- GOOGLE EMBEDS ---- */

.embed-container {
  margin-bottom: 2rem;
}

.embed-placeholder {
  background: var(--bg-card);
  border: 2px dashed rgba(168, 85, 247, 0.2);
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
  transition: border-color 0.3s;
}

.embed-placeholder:hover {
  border-color: var(--purple);
}

.embed-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
}

.embed-placeholder h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.embed-placeholder p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.embed-hint {
  font-size: 0.8rem !important;
  color: var(--purple-light) !important;
  margin-top: 0.5rem;
  font-style: italic;
}

.google-embed {
  width: 100%;
  border: none;
  border-radius: 12px;
  background: var(--bg-card);
}

.doc-embed {
  height: 500px;
}

.sheet-embed {
  height: 450px;
}

.drive-embed {
  height: 400px;
}

/* ---- ALBUM LINK CARD ---- */

.album-link-card {
  margin-bottom: 1.5rem;
}

.album-link {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(168, 85, 247, 0.1));
  border: 1px solid rgba(236, 72, 153, 0.2);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.album-link:hover {
  border-color: var(--pink);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(236, 72, 153, 0.15);
}

.album-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.album-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
}

.album-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.album-arrow {
  font-size: 1.5rem;
  color: var(--pink);
  margin-left: auto;
  flex-shrink: 0;
  transition: transform 0.3s;
}

.album-link:hover .album-arrow {
  transform: translateX(5px);
}

.subsection-title {
  font-family: 'Caveat', cursive;
  font-size: 1.4rem;
  color: var(--text-muted);
  text-align: center;
  margin: 2rem 0 1.5rem;
}

/* ---- FOOTER ---- */

footer {
  padding: 4rem 1.5rem;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-dark), #0a0612);
}

.footer-hearts {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 2rem;
}

.footer-text {
  font-family: 'Caveat', cursive;
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-hearts span:not(.footer-text) {
  animation: heartbeat 1.2s ease-in-out infinite;
}

/* ---- SCROLL REVEAL ---- */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- RESPONSIVE ---- */

@media (max-width: 768px) {
  section {
    padding: 3rem 1rem;
  }

  section:nth-child(even) {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .board-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
  }

  .photo-slot.tall {
    grid-row: span 1;
  }

  .photo-slot.wide {
    grid-column: span 1;
  }

  .research-card {
    flex-direction: column;
    gap: 0.8rem;
  }

  .favorites-grid {
    grid-template-columns: 1fr;
  }

  .sticky-note.tilted-left,
  .sticky-note.tilted-right {
    transform: none;
  }

  .messages-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .drive-links {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .photo-grid {
    grid-template-columns: 1fr;
  }

  #gate-password {
    width: 160px;
  }

  .hero-tagline {
    padding: 0 1rem;
  }

  .messages-grid {
    grid-template-columns: 1fr !important;
  }
}
