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

:root {
  --red: #ce1126;
  --green: #1eb53a;
  --cream: #fff8e7;
  --dark: #1a1a1a;
  --gray: #666;
  --light: #f2f2f2;
  --shadow: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 16px 40px rgba(0,0,0,0.12);
}

* { -webkit-tap-highlight-color: transparent; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, var(--cream) 0%, #ffffff 50%, #f0fff4 100%);
  background-attachment: fixed;
  color: var(--dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px 40px;
}

header {
  text-align: center;
  margin: 16px 0 8px;
}

header h1 {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--red) 0%, var(--green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  color: var(--gray);
  margin-top: 6px;
  font-size: 1rem;
  font-style: italic;
}

.tabs {
  display: flex;
  gap: 6px;
  margin: 24px 0 20px;
  background: white;
  padding: 6px;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.tab {
  border: none;
  background: transparent;
  padding: 12px 22px;
  font-size: 0.95rem;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  color: var(--gray);
  transition: all 0.2s ease;
}

.tab.active {
  background: var(--red);
  color: white;
  box-shadow: 0 4px 12px rgba(206,17,38,0.3);
}

#daily-section.active ~ * .tab[data-mode="daily"],
.tab[data-mode="daily"].active {
  background: var(--green);
  box-shadow: 0 4px 12px rgba(30,181,58,0.3);
}

main {
  width: 100%;
  max-width: 600px;
  flex: 1;
}

.mode { display: none; animation: fade 0.3s ease; }
.mode.active { display: block; }

@keyframes fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.card {
  background: white;
  border-radius: 24px;
  padding: 48px 28px;
  box-shadow: var(--shadow-lg);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 20px;
  border-top: 6px solid var(--red);
  position: relative;
  overflow: hidden;
}

.daily-card { border-top-color: var(--green); }

.card::before {
  content: '"';
  position: absolute;
  top: 8px;
  left: 20px;
  font-size: 5rem;
  color: rgba(0,0,0,0.05);
  font-family: Georgia, serif;
  line-height: 1;
}

.question {
  font-size: 1.45rem;
  line-height: 1.55;
  font-weight: 500;
  color: var(--dark);
  position: relative;
  z-index: 1;
}

.date {
  font-size: 0.8rem;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.big-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--red), #a00d1f);
  color: white;
  border: none;
  padding: 18px;
  font-size: 1.15rem;
  font-weight: 700;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(206,17,38,0.3);
  transition: transform 0.1s ease, box-shadow 0.2s ease;
}

.big-btn:hover { box-shadow: 0 12px 28px rgba(206,17,38,0.4); }
.big-btn:active { transform: scale(0.98); }

.share-btn {
  display: block;
  width: 100%;
  margin-top: 12px;
  background: #25D366;
  color: white;
  border: none;
  padding: 14px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37,211,102,0.25);
  transition: transform 0.1s ease;
}

.share-btn:active { transform: scale(0.98); }

footer {
  margin-top: 32px;
  color: #999;
  font-size: 0.85rem;
  text-align: center;
}

@media (max-width: 480px) {
  header h1 { font-size: 2.2rem; }
  .question { font-size: 1.25rem; }
  .card { padding: 36px 20px; min-height: 220px; }
  .tab { padding: 10px 16px; font-size: 0.9rem; }
}
