/* style.css for MoodMate interactive prototype */
:root {
  --primary: #87B5E7;
  --secondary: #8DD3C7;
  --bg1: #E6E6FA;
  --bg2: #F0F8FF;
  --muted: #9CA3AF;
  font-family: Poppins, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Poppins, sans-serif;
  color: #1f2937;
  background: linear-gradient(135deg, var(--bg1) 0%, #87CEEB 50%, var(--bg2) 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.header {
  text-align: center;
  padding: 36px 16px 18px;
}

.h1 {
  font-size: 32px;
  margin: 0 0 8px;
  font-weight: 700;
  color: #1f2937;
  letter-spacing: -0.02em;
}

.lead {
  font-size: 14px;
  color: #4b5563;
  margin-bottom: 10px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  border: 0;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(135, 181, 231, 0.15);
}

.btn-primary {
  background: var(--secondary);
  color: white;
  box-shadow: 0 8px 22px rgba(135, 181, 231, 0.12);
}

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

.section {
  padding: 32px 8px;
  background: transparent;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid-2 {
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 992px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 8px 30px rgba(31, 41, 55, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.phone-mock {
  background: #111827;
  border-radius: 20px;
  padding: 8px;
  display: inline-block;
  transform: rotate(-2deg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.phone-screen {
  background: white;
  border-radius: 14px;
  padding: 16px;
  width: 280px;
  height: 420px;
  overflow: hidden;
  transition: background 0.5s ease;
}

.phone-title {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 18px;
  font-weight: 700;
}

.muted {
  color: #6b7280;
}

.small {
  font-size: 13px;
}

.mood-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  justify-items: center;
  margin-top: 10px;
}

.mood-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.25s ease;
}

.mood-circle:active {
  transform: scale(0.95);
}

.mood-circle.selected {
  transform: scale(1.12);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.tools-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .tools-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tools-card {
  text-align: center;
  padding: 18px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
  min-height: 160px;
}

.section-title {
  text-align: center;
  margin-bottom: 12px;
}

.h2 {
  font-size: 20px;
  margin: 0 0 6px;
  color: #1f2937;
}

.stats-row {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.stat {
  background: white;
  padding: 8px;
  border-radius: 10px;
  min-width: 90px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(31, 41, 55, 0.05);
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 992px) {
  .app-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.app-card {
  background: #111827;
  padding: 8px;
  border-radius: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.testimonials {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 768px) {
  .testimonials {
    grid-template-columns: repeat(3, 1fr);
  }
}

.test-card {
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 8px 26px rgba(31, 41, 55, 0.06);
  text-align: center;
}

.footer {
  padding: 22px 8px;
  text-align: center;
  color: #475569;
}

/* hidden utility */
.hidden {
  display: none;
  opacity: 0;
}

/* clickable & ripple */
.clickable {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 0.6s linear;
  background: rgba(0, 0, 0, 0.08);
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* modal */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.35);
  z-index: 60;
}

.modal.hidden {
  display: none;
}

.modal .modal-content {
  max-width: 360px;
  padding: 18px;
  border-radius: 12px;
  text-align: center;
}

/* responsiveness tweak */
@media (max-width: 520px) {
  .phone-screen {
    width: 240px;
    height: 380px;
    padding: 12px;
  }

  .mood-circle {
    width: 52px;
    height: 52px;
    font-size: 18px;
  }

  .h1 {
    font-size: 26px;
  }

  .h2 {
    font-size: 18px;
  }

  .container {
    padding: 12px;
  }
}
