/* ===== DAISY'S GARDEN CORNER — style.css ===== */

@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,400;0,600;0,700;0,800;1,400&family=Pacifico&display=swap');

/* ── Reset & base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --sage:    #7a9e7e;
  --sage-lt: #c4d9c6;
  --sage-bg: #e8f0e9;
  --lav:     #b09cc8;
  --lav-lt:  #ddd4ec;
  --lav-bg:  #f0ecf8;
  --cream:   #faf6ef;
  --sand:    #e8dfc8;
  --brown:   #5c4033;
  --ink:     #3b2f28;
  --border:  #c9bfa8;
  --radius:  12px;
  --shadow:  4px 4px 0 #c9bfa8;
}

body {
  font-family: 'Nunito', sans-serif;
  background-color: var(--cream);
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 20px 20px;
  color: var(--ink);
  line-height: 1.6;
}

a { color: var(--sage); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: 'Pacifico', cursive; font-weight: 400; }

.page-wrapper { max-width: 960px; margin: 0 auto; padding: 24px 16px; }

.card {
  background: var(--cream);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

/* ── Header ── */
.site-header {
  background: var(--sage-bg);
  border: 2px solid var(--sage-lt);
  border-radius: 24px;
  padding: 32px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}
.avatar-ring {
  width: 130px; height: 130px;
  border-radius: 50%;
  border: 4px dashed var(--lav);
  overflow: hidden;
  margin: 0 auto 16px;
  background: var(--lav-bg);
  display: flex; align-items: center; justify-content: center;
}
.avatar-ring img { width: 110%; height: 110%; object-fit: cover; object-position: top; mix-blend-mode: multiply; }
.site-title   { font-size: 3rem; color: var(--sage); margin-bottom: 6px; }
.site-tagline { font-style: italic; color: #6a8a6e; font-size: 1.05rem; }

/* ── Layout ── */
.layout-grid { display: grid; grid-template-columns: 200px 1fr; gap: 24px; margin-bottom: 28px; }
@media (max-width: 680px) { .layout-grid { grid-template-columns: 1fr; } .site-title { font-size: 2.2rem; } }

/* ── Sidebar ── */
.sidebar { display: flex; flex-direction: column; gap: 16px; }
.about-card { text-align: center; }
.about-card h3 { color: var(--sage); font-size: 1.4rem; margin-bottom: 10px; }
.about-list { list-style: none; text-align: left; font-size: 0.875rem; }
.about-list li { padding: 3px 0; display: flex; align-items: center; gap: 6px; }
.about-list li::before { content: "★"; color: var(--lav); font-size: 0.7rem; }
.nav-card h3 { color: var(--sage); font-size: 1.4rem; margin-bottom: 12px; text-align: center; }
.nav-list { list-style: none; }
.nav-list li + li { margin-top: 4px; }
.nav-list a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 8px;
  font-weight: 700; font-size: 0.875rem;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  color: var(--ink);
}
.nav-list a:hover, .nav-list a.active {
  background: var(--sage-bg); border-color: var(--sage-lt); color: var(--sage); text-decoration: none;
}

/* ── Main content ── */
.main-content { display: flex; flex-direction: column; gap: 20px; }

.notebook {
  background-color: var(--cream);
  background-image: repeating-linear-gradient(transparent, transparent 31px, rgba(100,150,200,0.15) 31px, rgba(100,150,200,0.15) 32px);
  line-height: 32px;
  padding: 32px 16px 20px 44px;
  position: relative;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.notebook::before { content: ''; position: absolute; top: 0; bottom: 0; left: 32px; width: 2px; background: rgba(200,80,80,0.2); }
.notebook h2 { font-size: 1.8rem; color: var(--sage); margin-bottom: 4px; }
.notebook p  { font-size: 0.95rem; color: #4a4040; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 520px) { .two-col { grid-template-columns: 1fr; } }

.updates-card h3 { color: var(--sage); font-size: 1.4rem; margin-bottom: 12px; }
.updates-list { list-style: none; margin-bottom: 14px; }
.updates-list li { border-left: 2px solid var(--lav-lt); padding: 2px 0 6px 12px; margin-bottom: 10px; }
.updates-date { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--lav); display: block; margin-bottom: 2px; }
.updates-list p { font-size: 0.875rem; }

.btn-outline {
  display: block; text-align: center; padding: 8px 16px;
  border: 1px solid var(--lav-lt); border-radius: 8px;
  background: var(--lav-bg); color: var(--sage);
  font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 0.875rem;
  cursor: pointer; transition: background 0.15s; text-decoration: none;
}
.btn-outline:hover { background: var(--lav-lt); text-decoration: none; }

.affirmation-card { background: var(--lav-bg); border: 2px solid var(--lav-lt); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.affirmation-card h3 { color: var(--sage); font-size: 1.2rem; margin-bottom: 8px; }
.affirmation-card p  { font-style: italic; font-size: 0.9rem; color: #4a3a5a; }

/* ── Featured art ── */
.featured-art-card { margin-top: 4px; }
.featured-art-card h3 { color: var(--sage); font-size: 1.4rem; margin-bottom: 16px; text-align: center; }
.polaroid-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; padding: 0 8px; }
@media (max-width: 700px) { .polaroid-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 420px) { .polaroid-row { grid-template-columns: repeat(2, 1fr); } }

.polaroid {
  background: #fff; padding: 6px 6px 20px;
  border: 1px solid var(--border);
  box-shadow: 2px 3px 8px rgba(0,0,0,0.12);
  transition: transform 0.15s; cursor: pointer;
  position: relative;
}
.polaroid::before {
  content: ''; position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  width: 40px; height: 14px; background: rgba(255,255,200,0.55); box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.polaroid:hover { transform: scale(1.06) rotate(0deg) !important; z-index: 5; }
.polaroid img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.polaroid-title { font-family: 'Pacifico', cursive; font-size: 0.6rem; text-align: center; color: #5a4a3a; margin-top: 4px; }

.r-n3 { transform: rotate(-3deg); } .r-p2 { transform: rotate(2deg); }
.r-n2 { transform: rotate(-2deg); } .r-p3 { transform: rotate(3deg); }
.r-n1 { transform: rotate(-1deg); } .r-p1 { transform: rotate(1deg); }
.view-all-link { text-align: center; margin-top: 14px; font-size: 0.85rem; }

/* ── Section switching ── */
.section { display: none; }
.section.active { display: block; }
.section-header { text-align: center; margin-bottom: 24px; }
.section-header h1 { font-size: 2.8rem; color: var(--sage); margin-bottom: 4px; }
.section-header p  { font-style: italic; color: #7a6a5a; }

/* ── Journal ── */
.tab-bar { display: flex; border: 2px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; box-shadow: var(--shadow); }
.tab-btn { flex: 1; padding: 10px; background: var(--cream); border: none; font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 0.875rem; cursor: pointer; transition: background 0.15s, color 0.15s; color: #7a6a5a; border-right: 1px solid var(--border); }
.tab-btn:last-child { border-right: none; }
.tab-btn.active { background: var(--sage); color: #fff; }
.journal-entry + .journal-entry { margin-top: 20px; }
.journal-meta { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; flex-wrap: wrap; gap: 8px; }
.journal-entry h2 { font-size: 1.6rem; color: var(--sage); }
.journal-date     { font-size: 0.75rem; color: #8a7a6a; margin-top: 2px; }
.mood-badge { font-size: 0.7rem; font-family: 'Nunito', sans-serif; font-weight: 700; background: var(--lav-lt); color: #4a3a5a; border: 1px solid var(--lav); border-radius: 999px; padding: 4px 10px; }
.journal-body { font-size: 0.9rem; color: #4a4040; line-height: 1.8; }

/* ── Gallery ── */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 8px; }
@media (max-width: 520px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.gallery-polaroid {
  background: #fff; padding: 8px 8px 28px;
  border: 1px solid var(--border); box-shadow: 2px 4px 10px rgba(0,0,0,0.12);
  cursor: pointer; transition: transform 0.15s; position: relative;
}
.gallery-polaroid::before {
  content: ''; position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  width: 50px; height: 16px; background: rgba(255,255,200,0.6); box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.gallery-polaroid:hover { transform: scale(1.04) rotate(0deg) !important; z-index: 5; }
.gallery-polaroid img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.gallery-polaroid-title { font-family: 'Pacifico', cursive; font-size: 0.7rem; text-align: center; color: #5a4a3a; margin-top: 6px; }

/* ── Lightbox ── */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.82); z-index: 999; align-items: center; justify-content: center; padding: 16px; }
.lightbox.open { display: flex; }
.lightbox-inner { position: relative; max-width: 640px; width: 100%; text-align: center; }
.lightbox-card { background: #fff; padding: 12px 12px 32px; box-shadow: 0 8px 40px rgba(0,0,0,0.4); }
.lightbox-card img { width: 100%; max-height: 60vh; object-fit: contain; }
.lightbox-card-title { font-family: 'Pacifico', cursive; font-size: 1.2rem; color: #4a3a2a; margin-top: 8px; }
.lightbox-close { position: absolute; top: -12px; right: -12px; background: #fff; border: none; border-radius: 50%; width: 32px; height: 32px; font-size: 1.2rem; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,0.2); display: flex; align-items: center; justify-content: center; }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.9); border: none; border-radius: 50%; width: 36px; height: 36px; font-size: 1.3rem; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,0.2); display: flex; align-items: center; justify-content: center; }
.lightbox-prev { left: -50px; } .lightbox-next { right: -50px; }
.lightbox-counter { color: rgba(255,255,255,0.5); font-size: 0.75rem; margin-top: 10px; }

/* ── Guestbook ── */
.guestbook-notice { background: var(--lav-bg); border: 2px solid var(--lav-lt); border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px 30px; text-align: center; }
.guestbook-notice h2 { font-size: 1.6rem; color: var(--sage); margin-bottom: 10px; }
.guestbook-notice p  { font-size: 0.9rem; color: #4a3a5a; margin-bottom: 8px; }
.guestbook-notice .hint { font-size: 0.8rem; color: #8a7a9a; font-style: italic; }

/* ── Footer ── */
.site-footer { background: var(--lav-lt); border: 2px solid var(--lav); border-radius: 16px; padding: 24px; text-align: center; box-shadow: var(--shadow); margin-top: 28px; }
.site-footer h3 { font-size: 1.2rem; color: var(--sage); margin-bottom: 4px; }
.site-footer p  { font-size: 0.8rem; color: #6a5a7a; }

.new-entry-notice { background: var(--sage-bg); border: 2px dashed var(--sage-lt); border-radius: var(--radius); padding: 32px; text-align: center; }
.new-entry-notice p { font-size: 0.9rem; color: #4a5a4a; margin-bottom: 6px; }
.new-entry-notice .hint { font-size: 0.8rem; color: #7a8a7a; font-style: italic; }