/* Urmilla Valodia tribute — warm, elegant, responsive */

:root {
  --marigold: #e8930c;
  --saffron:  #f3b74a;
  --deep:     #4a2318;
  --ink:      #3a2a20;
  --cream:    #fdf7ee;
  --card:     #fffdf8;
  --muted:    #8a7360;
  --line:     #ecdfcd;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: #b35c00; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* ---------- Landing ---------- */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(232,147,12,.18), transparent 65%),
    linear-gradient(180deg, #fffdf8 0%, var(--cream) 100%);
  padding: 48px 20px;
}

.hero .gujarati {
  font-size: 1.4rem;
  color: var(--marigold);
  letter-spacing: .12em;
  margin-bottom: 10px;
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: normal;
  margin: 0 0 6px;
  color: var(--deep);
  letter-spacing: .02em;
}

.hero .dates {
  font-size: 1.15rem;
  color: var(--muted);
  letter-spacing: .06em;
}

.portrait-frame {
  position: relative;
  display: inline-block;
  margin: 0 auto 28px;
  padding: 10px;
  background: linear-gradient(135deg, #f3b74a, #e8930c, #c47a08, #f3b74a, #e8930c);
  background-size: 300% 300%;
  animation: gold-shift 6s ease infinite;
  border-radius: 12px;
  box-shadow:
    0 0 0 1px rgba(139, 90, 43, .25),
    0 8px 32px rgba(180, 120, 20, .3),
    inset 0 1px 0 rgba(255, 255, 255, .3);
}

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

.portrait-frame::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 8px;
  pointer-events: none;
}

.portrait {
  display: block;
  width: 300px;
  max-width: 60vw;
  height: auto;
  border-radius: 6px;
  position: relative;
  z-index: 1;
}

.hero .divider {
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--marigold), transparent);
  border: 0;
  margin: 30px auto;
}

.hero p.intro {
  max-width: 620px;
  margin: 0 auto 38px;
  font-size: 1.08rem;
  color: var(--ink);
}

.actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: .04em;
  border: 1px solid var(--marigold);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(232,147,12,.25); }

.btn-primary { background: var(--marigold); color: #fff; }
.btn-secondary { background: transparent; color: #9a5b08; }

/* ---------- Slideshow ---------- */
.slide-wrap {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1400px 700px at 50% -10%, rgba(232,147,12,.22), transparent 65%),
    radial-gradient(900px 500px at 50% 115%, rgba(180,110,30,.14), transparent 70%),
    linear-gradient(180deg, #fffcf4 0%, var(--cream) 55%, #f7ecd9 100%);
  overflow: hidden;
}

/* Framed stage: keeps photos away from the window edges, with a warm border */
.slide {
  position: absolute;
  inset: 5.5vh 6vw 9vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.slide.visible { opacity: 1; }

.slide .frame {
  position: relative;
  display: flex;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid rgba(180, 110, 30, .35);
  border-radius: 6px;
  box-shadow:
    0 0 0 6px rgba(255, 253, 248, .9),
    0 0 0 7px rgba(180, 110, 30, .28),
    0 22px 60px rgba(74, 35, 24, .28);
  background: #f8f1e3;
}

.slide img {
  display: block;
  width: auto;
  height: auto;
  max-width: calc(100vw - 12vw - 2px);
  max-height: calc(100vh - 14.5vh - 2px);
}

.slide.kenburns img {
  animation: kenburns 11s ease-out both;
}
@keyframes kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.07); }
}

.caption {
  position: absolute;
  left: 0; right: 0; bottom: 68px;
  text-align: center;
  color: var(--deep);
  font-size: 1.05rem;
  font-style: italic;
  text-shadow: 0 1px 3px rgba(255,253,248,.9), 0 1px 10px rgba(255,253,248,.7);
  padding: 0 24px;
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
}
.caption.visible { opacity: .95; }

.controls {
  position: fixed;
  bottom: 12px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 5;
}
.controls button {
  background: rgba(74, 35, 24, .78);
  color: #f9efdd;
  border: 1px solid rgba(243, 183, 74, .5);
  border-radius: 999px;
  padding: 9px 18px;
  font-family: inherit;
  font-size: .95rem;
  cursor: pointer;
  transition: background .2s ease;
}
.controls button:hover { background: rgba(110, 55, 30, .9); }
.controls .vol { display: inline-flex; align-items: center; gap: 8px; }
.controls input[type=range] { width: 110px; accent-color: var(--marigold); }

.exit-slide {
  position: fixed;
  top: 14px; right: 16px;
  z-index: 6;
  color: #f9efdd;
  text-decoration: none;
  background: rgba(74, 35, 24, .78);
  border-radius: 999px;
  padding: 8px 16px;
  border: 1px solid rgba(243, 183, 74, .5);
}
.exit-slide:hover { background: rgba(110, 55, 30, .9); }

/* ---------- Memories ---------- */
.page { padding: 40px 0 80px; }

.page h2, .page h3 {
  font-weight: normal;
  color: var(--deep);
}

.page-head { text-align: center; margin-bottom: 36px; }
.page-head .gujarati { color: var(--marigold); letter-spacing: .12em; font-size: 1.1rem; }
.page-head h2 { font-size: 2.2rem; margin: 4px 0; }

.mem-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 26px 30px;
  margin: 0 auto 48px;
  max-width: 640px;
  box-shadow: 0 8px 30px rgba(74,35,24,.06);
}

.mem-form label { display: block; margin: 14px 0 4px; font-size: .95rem; color: var(--muted); }
.mem-form input, .mem-form textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
}
.mem-form textarea { min-height: 110px; resize: vertical; }
.mem-form .hp { position: absolute; left: -9999px; } /* honeypot */
.mem-form button {
  margin-top: 20px;
  width: 100%;
  padding: 13px;
  border: 0;
  border-radius: 999px;
  background: var(--marigold);
  color: #fff;
  font-size: 1.05rem;
  font-family: inherit;
  cursor: pointer;
}
.mem-form button:hover { filter: brightness(1.06); }
.mem-form .note { font-size: .85rem; color: var(--muted); margin-top: 10px; }
.mem-form .msg { margin-top: 14px; padding: 12px 14px; border-radius: 10px; font-size: .95rem; }
.mem-form .msg.ok { background: #eef7ea; color: #2e5d1f; border: 1px solid #cbe3c0; }
.mem-form .msg.err { background: #fbeceb; color: #7c2018; border: 1px solid #eccfcc; }

.memory-wall { display: grid; gap: 18px; max-width: 720px; margin: 0 auto; }

.memory {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--saffron);
  border-radius: 12px;
  padding: 20px 22px;
  box-shadow: 0 6px 22px rgba(74,35,24,.05);
}
.memory .meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: .9rem;
  color: var(--muted);
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.memory .who { font-weight: bold; color: var(--deep); font-style: normal; }
.memory .text { white-space: pre-wrap; }

.empty-state {
  text-align: center;
  color: var(--muted);
  font-style: italic;
  padding: 40px 20px;
}

.backline { text-align: center; margin: 40px 0 0; font-size: .95rem; }

/* ---------- Admin ---------- */
.admin-body { background: #f6f1e8; }
.admin-card {
  max-width: 900px;
  margin: 40px auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
}
.admin-card h2 { font-weight: normal; margin-top: 0; }
table.admin { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.admin th, table.admin td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.admin td.actions-cell { white-space: nowrap; }
table.admin a, table.admin button.linkbtn {
  background: none; border: 0; padding: 0; font: inherit;
  color: #b35c00; cursor: pointer; text-decoration: underline;
  margin-right: 12px;
}
.pending { background: #fdf6e7; }
.btn-small {
  display: inline-block; padding: 8px 16px; font-size: .9rem;
  border-radius: 999px; text-decoration: none; border: 1px solid var(--marigold);
}
.btn-small.primary { background: var(--marigold); color: #fff; }
.flash { padding: 12px 14px; border-radius: 10px; margin-bottom: 18px; }
.flash.ok { background: #eef7ea; color: #2e5d1f; border: 1px solid #cbe3c0; }
.flash.err { background: #fbeceb; color: #7c2018; border: 1px solid #eccfcc; }
.caption-input { width: 100%; }

@media (max-width: 560px) {
  .hero { padding-top: 80px; }
  .mem-form { padding: 20px 16px; }
  .controls .vol input[type=range] { width: 80px; }
  .portrait { width: 220px; }
}
