/* === DAILY ANGEL NUMBER — Remixed Stylesheet === */

@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;500;600;700&display=swap');

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

:root {
  /* Pastel palette — softer, more saturated than blush */
  --bg: #F0ECF5;
  --bg-warm: #F5F0F2;
  --bg-card: #FFFFFF;
  --bg-surface: #E8E3EE;

  --rose: #C4918A;
  --rose-soft: rgba(196, 145, 138, 0.10);
  --rose-dim: rgba(196, 145, 138, 0.30);

  --lavender: #9B8EC4;
  --lavender-soft: rgba(155, 142, 196, 0.15);
  --lavender-mid: rgba(155, 142, 196, 0.25);

  --gold-warm: #C9A96E;
  --gold-soft: rgba(201, 169, 110, 0.18);

  --sage: #A8C3A0;
  --sage-soft: rgba(168, 195, 160, 0.15);

  --sky: #A3BDD4;
  --sky-soft: rgba(163, 189, 212, 0.15);

  --text-primary: #3A3530;
  --text-secondary: #6B6560;
  --text-muted: #9B9488;
  --border: rgba(58, 53, 48, 0.07);
  --border-accent: rgba(155, 142, 196, 0.3);

  /* Element colors */
  --fire: #D4845A;
  --water: #7A9BB5;
  --air: #9B8EC4;
  --earth: #8BA67B;
}

body {
  font-family: 'Nunito Sans', 'Segoe UI', sans-serif;
  background-color: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

/* Layered pastel gradient background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(155,142,196,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(196,145,138,0.08) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 80%, rgba(168,195,160,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 30% 60%, rgba(163,189,212,0.06) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

/* Wing watermark using uploaded PNG */
body::after {
  content: '';
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  width: 550px;
  height: 370px;
  background-image: url("images/wings3.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  mix-blend-mode: screen;
  opacity: 0.24;
  pointer-events: none;
  z-index: 0;
  filter: brightness(1.5);
}

/* === LAYOUT === */
.page-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1.5rem 3rem;
  max-width: 700px;
  margin: 0 auto;
}

/* === AD SLOTS === */
.ad-slot {
  width: 100%;
  max-width: 728px;
  min-height: 90px;
  border: 1px dashed var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  background: rgba(255,255,255,0.3);
}
.ad-slot.ad-bottom {
  margin-bottom: 0;
  margin-top: 2rem;
}
.ad-slot.ad-sidebar {
  max-width: 300px;
  min-height: 250px;
  margin: 2rem auto;
}

/* === HEADER === */
header {
  text-align: center;
  margin-bottom: 2rem;
  width: 100%;
}

header h1 {
  font-family: 'Dancing Script', cursive;
  font-weight: 600;
  font-size: 3.2rem;
  color: var(--lavender);
  letter-spacing: 0.02em;
  margin-bottom: 0.3rem;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(155, 142, 196, 0.1);
}

header h1 a {
  color: inherit;
  text-decoration: none;
}

header .subtitle {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* === DIVIDER === */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 auto 2rem;
  width: 220px;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--lavender-mid), transparent);
}
.divider-icon {
  color: var(--lavender);
  font-size: 1rem;
  opacity: 0.7;
}

/* === DRAW PROMPT === */
.draw-prompt {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: linear-gradient(145deg, #FFFFFF, var(--bg-surface));
  border: 2px solid var(--border-accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  margin: 0 auto 1.5rem;
  box-shadow:
    0 4px 25px rgba(155, 142, 196, 0.1),
    0 0 0 6px rgba(155, 142, 196, 0.04);
}

.draw-prompt:hover {
  border-color: var(--lavender);
  box-shadow:
    0 8px 35px rgba(155, 142, 196, 0.18),
    0 0 0 8px rgba(155, 142, 196, 0.06);
  transform: translateY(-3px);
}

.draw-prompt .prompt-icon {
  font-size: 2.4rem;
  margin-bottom: 0.4rem;
  opacity: 0.6;
  color: var(--lavender);
}

.draw-prompt .prompt-text {
  font-family: 'Dancing Script', cursive;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

/* === SEARCH / LOOKUP === */
.lookup-section {
  width: 100%;
  text-align: center;
  margin-bottom: 2rem;
}

.lookup-section .lookup-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  font-weight: 300;
}

.lookup-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 320px;
  margin: 0 auto;
}

.lookup-bar input {
  flex: 1;
  padding: 0.6rem 1rem;
  border: 1.5px solid var(--lavender-mid);
  border-radius: 30px;
  background: var(--bg-card);
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--text-primary);
  text-align: center;
  letter-spacing: 0.15em;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.lookup-bar input::placeholder {
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.lookup-bar input:focus {
  border-color: var(--lavender);
  box-shadow: 0 0 0 3px rgba(155, 142, 196, 0.1);
}

.lookup-bar button {
  padding: 0.6rem 1.2rem;
  border: 1.5px solid var(--lavender-mid);
  border-radius: 30px;
  background: none;
  font-family: 'Dancing Script', cursive;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--lavender);
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.lookup-bar button:hover {
  background: var(--lavender);
  color: #fff;
  border-color: var(--lavender);
}

.lookup-error {
  color: var(--rose);
  font-size: 0.8rem;
  margin-top: 0.5rem;
  font-style: italic;
  min-height: 1.2em;
}

/* === RESULT CARD === */
.result-card {
  display: none;
  width: 100%;
  background: var(--bg-card);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow:
    0 2px 20px rgba(0,0,0,0.03),
    0 0 0 1px var(--border);
  animation: cardReveal 0.6s ease-out forwards;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

/* Subtle wing watermark inside the card */
.result-card::before {
  content: '✧';
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.2rem;
  color: var(--lavender);
  opacity: 0.15;
}

@keyframes cardReveal {
  from { opacity: 0; transform: translateY(15px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.result-number {
  font-family: 'Dancing Script', cursive;
  font-size: 3.8rem;
  font-weight: 700;
  color: var(--lavender);
  text-align: center;
  letter-spacing: 0.05em;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.result-title {
  font-family: 'Dancing Script', cursive;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--rose);
  text-align: center;
  margin-bottom: 0.6rem;
  letter-spacing: 0.02em;
}

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

.result-meta .meta-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.8rem;
  border-radius: 20px;
  font-weight: 600;
}

.meta-tag.element {
  background: var(--lavender-soft);
  color: var(--lavender);
}
.meta-tag.element.fire { background: rgba(212, 132, 90, 0.12); color: var(--fire); }
.meta-tag.element.water { background: rgba(122, 155, 181, 0.12); color: var(--water); }
.meta-tag.element.air { background: rgba(155, 142, 196, 0.12); color: var(--air); }
.meta-tag.element.earth { background: rgba(139, 166, 123, 0.12); color: var(--earth); }

.meta-tag.energy {
  background: var(--rose-soft);
  color: var(--text-secondary);
}

/* Sections within the card */
.section-label {
  font-family: 'Dancing Script', cursive;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--lavender);
  margin-bottom: 0.4rem;
  margin-top: 1.5rem;
  letter-spacing: 0.02em;
}

.section-label:first-of-type {
  margin-top: 0;
}

.section-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-primary);
  font-weight: 300;
}

.short-message {
  font-size: 1.05rem;
  line-height: 1.75;
  font-weight: 400;
  text-align: center;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  padding: 0 0.5rem;
}

/* Keywords */
.keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 0.3rem;
}

.keyword {
  font-size: 0.78rem;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 0.15rem 0.65rem;
  border-radius: 20px;
  font-weight: 400;
}

/* Affirmation */
.affirmation-box {
  background: linear-gradient(135deg, var(--lavender-soft), var(--rose-soft), var(--sage-soft));
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  margin-top: 0.5rem;
  text-align: center;
  border: 1px solid rgba(155, 142, 196, 0.08);
}

.affirmation-text {
  font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 400;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.6;
}

/* Action prompt */
.action-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-secondary);
  font-weight: 300;
  font-style: italic;
}

/* === DRAW AGAIN BUTTON === */
.draw-btn {
  display: none;
  margin: 0 auto;
  background: none;
  border: 1.5px solid var(--lavender-mid);
  color: var(--lavender);
  font-family: 'Dancing Script', cursive;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.6rem 2rem;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.draw-btn:hover {
  background: var(--lavender);
  color: #fff;
  border-color: var(--lavender);
}

/* === ABOUT SECTION === */
.about-section {
  width: 100%;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.about-section h2 {
  font-family: 'Dancing Script', cursive;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--lavender);
  margin-bottom: 0.8rem;
}

.about-section p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
  font-weight: 300;
  line-height: 1.8;
}

.about-section p:last-child {
  margin-bottom: 0;
}

.about-section a {
  color: var(--rose);
  text-decoration: none;
  border-bottom: 1px dotted var(--rose-dim);
  transition: color 0.2s;
}
.about-section a:hover { color: var(--text-primary); }

/* === BOOKSHOP LINK === */
.bookshop-section {
  width: 100%;
  margin-top: 2rem;
}

.bookshop-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 1rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  text-decoration: none;
  transition: all 0.3s ease;
}

.bookshop-link:hover {
  border-color: var(--lavender-mid);
  box-shadow: 0 4px 15px rgba(155, 142, 196, 0.08);
  transform: translateY(-1px);
}

.bookshop-icon { font-size: 1.2rem; }

.bookshop-text {
  font-family: 'Dancing Script', cursive;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--lavender);
  text-align: center;
}

.bookshop-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 300;
}

/* === FOOTER === */
footer {
  width: 100%;
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.72rem;
  color: var(--text-muted);
}

footer p { margin-bottom: 0.3rem; }

footer a {
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px dotted var(--border);
  transition: color 0.2s;
}
footer a:hover { color: var(--lavender); }

/* === RESPONSIVE === */
@media (max-width: 480px) {
  header h1 { font-size: 2.4rem; }
  .result-number { font-size: 3rem; }
  .result-card { padding: 2rem 1.5rem; }
  .draw-prompt { width: 160px; height: 160px; }
  .ad-slot { min-height: 60px; }
  .result-meta { gap: 0.5rem; }

  body::after {
    width: 320px;
    height: 215px;
  }
}