/* News Today — base and masthead */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  color: #1a1a1a;
  background: #f5f5f5;
}

.masthead {
  background: #fff;
  border-bottom: 3px solid #c00;
  padding: 1rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.masthead-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.logo {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  color: #c00;
}

.logo-link {
  text-decoration: none;
  color: inherit;
}

.date {
  font-size: 0.9rem;
  color: #555;
  margin-left: auto;
}

.nav {
  flex-basis: 100%;
  display: flex;
  gap: 1.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid #eee;
}

.nav a {
  color: #333;
  text-decoration: none;
  font-size: 0.95rem;
}

.nav a:hover {
  text-decoration: underline;
  color: #c00;
}

/* Homepage content */
.content {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.hero-article {
  background: #fff;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid #e0e0e0;
  border-left: 4px solid #c00;
}

.hero-article .article-headline {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  line-height: 1.3;
}

.article-excerpt {
  margin: 0;
  color: #333;
  font-size: 1.05rem;
}

.article-grid {
  display: grid;
  gap: 1.5rem;
}

.dummy-article {
  background: #fff;
  padding: 1.5rem;
  border: 1px solid #e0e0e0;
  border-bottom: 1px solid #ddd;
}

.dummy-article .article-headline {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.dummy-article .article-excerpt {
  font-size: 0.95rem;
  color: #555;
}

/* Article page */
.article-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.article-page {
  background: #fff;
  padding: 2.5rem;
  border: 1px solid #e0e0e0;
  border-left: 4px solid #c00;
}

.article-page-headline {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
  line-height: 1.35;
  color: #1a1a1a;
}

.article-page-body {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.65;
  color: #333;
}

/* Valentine article page */
.valentine-article {
  background: linear-gradient(180deg, #fff5f7 0%, #ffe8ec 15%, #fef2f4 50%, #ffe8ec 85%, #fff5f7 100%);
}

.valentine-article .article-content {
  position: relative;
}

.valentine-hearts {
  text-align: center;
  font-size: 1.5rem;
  color: #e91e63;
  margin: 0 0 1rem;
  letter-spacing: 0.5em;
}

.valentine-hearts-bottom {
  margin: 1.5rem 0 0;
}

.valentine-article .article-page {
  border-left-color: #e91e63;
  border-color: #f8bbd0;
  box-shadow: 0 4px 20px rgba(233, 30, 99, 0.08);
}

.valentine-article .article-page-headline {
  color: #ad1457;
}

.valentine-article .article-page-body {
  color: #5d4037;
}

/* Valentine questions below article */
.valentine-questions {
  margin-top: 2.5rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  border: 1px solid #f8bbd0;
}

.question-step {
  transition: opacity 0.25s ease;
}

.question-step-hidden {
  display: none !important;
}

.question-text {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ad1457;
  margin: 0 0 1.25rem;
  text-align: center;
}

.rejection-message {
  color: #c62828;
}

.acceptance-message {
  color: #e91e63;
}

.question-buttons,
.choice-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.choice-buttons {
  max-width: 280px;
  margin: 0 auto;
}

.choice-buttons > * {
  flex: 1 1 0;
  min-width: 0;
}

.no-btn-wrapper {
  display: block;
  cursor: not-allowed;
}

.valentine-questions .btn-choice {
  display: block;
  width: 100%;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid #f8bbd0;
  border-radius: 8px;
  background: #fff;
  color: #ad1457;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.valentine-questions .btn-choice:hover {
  background: #fce4ec;
  border-color: #e91e63;
  color: #c2185b;
}

.valentine-questions .btn-choice.btn-yes:hover,
.valentine-questions .btn-proposal-yes:hover {
  background: #e91e63;
  color: #fff;
  border-color: #e91e63;
}

.valentine-questions .btn-choice:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Valentine success popup */
.valentine-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.valentine-popup-overlay.is-visible {
  display: flex;
}

.valentine-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

.valentine-popup-box {
  position: relative;
  background: #fff;
  border: 3px solid #e91e63;
  border-radius: 12px;
  padding: 1rem;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 12px 40px rgba(233, 30, 99, 0.25);
}

.valentine-popup-gif-placeholder {
  min-height: 200px;
  background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 100%);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.valentine-popup-gif-placeholder .placeholder-text {
  margin: 0;
  color: #ad1457;
  font-size: 1rem;
  opacity: 0.8;
}

.valentine-popup-gif-placeholder .valentine-popup-gif {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.valentine-popup-gif-placeholder .valentine-popup-caption {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
  color: #ad1457;
}

/* Popup overlay */
.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.popup-overlay.is-visible {
  display: flex;
}

.popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.popup-box {
  position: relative;
  background: #fff;
  border: 3px solid #c00;
  border-radius: 4px;
  padding: 2rem;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.popup-label {
  margin: 0 0 0.75rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #c00;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.popup-message {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  color: #333;
  line-height: 1.5;
}

.popup-btn {
  display: block;
  width: 100%;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: #c00;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.popup-btn:hover {
  background: #a00;
}

.popup-btn:focus {
  outline: 2px solid #c00;
  outline-offset: 2px;
}
