/* =============================================
   YOUR NEOCITIES SITE - style.css
   =============================================
   HOW TO USE: Search for comments like
   /* CHANGE THIS */ to find places to edit!
   ============================================= */

/* ── FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Nunito:wght@400;600&display=swap');

/* ── COLOUR PALETTE ── 
   Change these hex values to repaint the whole site! */
:root {
  --cream:      #f5f0e8;   /* page background */
  --cream-dark: #ece5d8;   /* widget backgrounds */
  --border:     #c8bfaf;   /* box borders */
  --text:       #3d3530;   /* main text */
  --text-soft:  #7a6e65;   /* secondary text */
  --accent:     #8fad88;   /* green accent */
  --accent2:    #b8a9c9;   /* purple accent */
  --accent3:    #d4a5a5;   /* dusty rose accent */
  --link:       #7a8fa6;   /* link colour */
  --link-hover: #5a6f86;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background-color: var(--cream);
  /* CHANGE THIS: swap the background image URL for any texture you like */
  background-image: url('images/bg-texture.png');
  background-repeat: repeat;
  color: var(--text);
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  line-height: 1.6;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }

img { max-width: 100%; display: block; }

/* ── PAGE WRAPPER ── */
#page-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 12px;
}

/* ── HEADER / BANNER ── */
#site-header {
  text-align: center;
  margin-bottom: 10px;
}

#site-header img {
  /* CHANGE THIS: replace with your own banner image (ideally 900×120px) */
  width: 100%;
  max-height: 130px;
  object-fit: cover;
  border: 2px solid var(--border);
  image-rendering: pixelated; /* keeps pixel art crisp */
}

.banner-placeholder {
  width: 100%;
  height: 110px;
  background: linear-gradient(135deg, var(--accent2) 0%, var(--accent3) 50%, var(--accent) 100%);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Libre Baskerville', serif;
  font-size: 22px;
  font-style: italic;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
  letter-spacing: 2px;
}

/* ── NAVIGATION ── */
#site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  background: var(--cream-dark);
  padding: 4px 6px;
}

#site-nav a {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text);
  padding: 3px 8px;
  border-right: 1px solid var(--border);
  transition: background 0.2s;
}
#site-nav a:last-child { border-right: none; }
#site-nav a:hover {
  background: var(--cream);
  text-decoration: none;
  color: var(--accent);
}

/* ── 3-COLUMN LAYOUT ── */
#content-grid {
  display: grid;
  grid-template-columns: 185px 1fr 185px;
  gap: 8px;
  align-items: start;
}

/* ── WIDGETS / BOXES ── 
   Every little box on the site uses this style */
.widget {
  background: var(--cream-dark);
  border: 1px solid var(--border);
  margin-bottom: 8px;
  box-shadow: 2px 2px 0px rgba(0,0,0,0.06);
}

.widget-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-soft);
  padding: 4px 7px;
  border-bottom: 1px dotted var(--border);
  background: rgba(255,255,255,0.4);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* The little □ ○ × icons in widget title bars (purely decorative) */
.widget-title::after {
  content: '□ ○ ×';
  font-size: 9px;
  color: var(--border);
}

.widget-body {
  padding: 8px;
}

/* ── ABOUT / PROFILE WIDGET ── */
.profile-pic {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border: 2px solid var(--border);
  float: left;
  margin: 0 8px 6px 0;
  /* CHANGE THIS: swap for your own photo */
}

.profile-name {
  font-family: 'Libre Baskerville', serif;
  font-style: italic;
  font-size: 14px;
  display: block;
  margin-bottom: 2px;
}

.profile-sub {
  font-size: 11px;
  color: var(--text-soft);
  display: block;
  margin-bottom: 4px;
}

.clearfix::after { content: ''; display: table; clear: both; }

/* ── CURRENTLY WIDGET ── */
.currently-list {
  list-style: none;
  font-size: 12px;
}

.currently-list li {
  padding: 2px 0;
  border-bottom: 1px dotted var(--border);
  display: flex;
  gap: 6px;
}
.currently-list li:last-child { border-bottom: none; }

.currently-label {
  font-weight: 600;
  color: var(--text-soft);
  min-width: 55px;
  font-size: 11px;
}

/* ── STATUS / UPDATE WIDGET ── */
.status-entry {
  font-size: 12px;
  font-style: italic;
  color: var(--text-soft);
  border-left: 2px solid var(--accent2);
  padding-left: 7px;
  margin-bottom: 6px;
}
.status-date {
  font-size: 10px;
  color: var(--border);
  font-style: normal;
  display: block;
}

/* ── UPDATES LIST ── */
.updates-list {
  list-style: none;
  font-size: 11px;
}
.updates-list li {
  padding: 2px 0;
  border-bottom: 1px dotted var(--border);
}
.updates-list li:last-child { border-bottom: none; }
.updates-list .upd-date {
  color: var(--accent);
  font-weight: 600;
}

/* ── MOON PHASE WIDGET ── */
.moon-display {
  text-align: center;
  padding: 10px 0 6px;
  font-size: 32px;
  line-height: 1;
}
.moon-label {
  text-align: center;
  font-size: 11px;
  color: var(--text-soft);
}

/* ── ADOPTED PIXELS ── */
.adopted-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px 0;
}
.adopted-grid img {
  width: 40px;
  height: 40px;
  image-rendering: pixelated;
  /* CHANGE THIS: replace these with your own pixel pets/gifs */
}

/* pixel placeholder squares */
.pixel-placeholder {
  width: 40px;
  height: 40px;
  background: var(--cream);
  border: 1px dashed var(--border);
  display: inline-block;
}

/* ── PHOTOBLOG GRID ── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  margin-bottom: 6px;
}

.photo-grid img,
.photo-thumb {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 1px 1px 3px rgba(0,0,0,0.15);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.photo-grid img:hover,
.photo-thumb:hover {
  transform: scale(1.05) rotate(1deg);
  box-shadow: 2px 2px 6px rgba(0,0,0,0.2);
}

/* photo placeholder */
.photo-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: var(--cream);
  border: 2px solid var(--border);
  border-style: dashed;
}

.view-more {
  font-size: 11px;
  color: var(--text-soft);
  text-align: right;
  display: block;
}

/* ── JOURNAL ENTRIES ── */
.journal-entry {
  border-bottom: 1px dotted var(--border);
  padding-bottom: 10px;
  margin-bottom: 10px;
}
.journal-entry:last-child { border-bottom: none; }

.entry-date {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-soft);
  margin-bottom: 2px;
}

.entry-title {
  font-family: 'Libre Baskerville', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 4px;
}

.entry-preview {
  font-size: 12px;
  color: var(--text-soft);
}

.entry-preview a {
  font-size: 11px;
}

/* ── WELCOME MESSAGE ── */
.welcome-box {
  font-size: 12.5px;
  line-height: 1.8;
}
.welcome-box p { margin-bottom: 8px; }
.welcome-box .sig {
  font-family: 'Libre Baskerville', serif;
  font-style: italic;
  font-size: 15px;
  color: var(--accent);
}

/* mini calendar inside welcome */
.mini-cal {
  float: right;
  margin: 0 0 8px 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.5);
  padding: 5px 7px;
  font-size: 10px;
  text-align: center;
}
.mini-cal .cal-month {
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 9px;
  color: var(--text-soft);
  margin-bottom: 3px;
}
.mini-cal table { border-collapse: collapse; }
.mini-cal th, .mini-cal td {
  width: 16px;
  height: 15px;
  text-align: center;
  font-size: 9px;
}
.mini-cal th { color: var(--text-soft); }
.mini-cal .today {
  background: var(--accent2);
  color: #fff;
  border-radius: 50%;
}

/* ── GUESTBOOK ── */
.gbook-messages {
  max-height: 120px;
  overflow-y: auto;
  margin-bottom: 8px;
  padding-right: 4px;
}
.gbook-msg {
  border-bottom: 1px dotted var(--border);
  padding: 5px 0;
  font-size: 12px;
}
.gbook-msg .sender {
  font-weight: 600;
  color: var(--accent);
}
.gbook-input {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--cream);
  padding: 5px;
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  margin-bottom: 4px;
  resize: none;
}
.gbook-btn {
  background: var(--accent2);
  color: #fff;
  border: none;
  padding: 4px 12px;
  font-family: 'Nunito', sans-serif;
  font-size: 11px;
  cursor: pointer;
  transition: background 0.2s;
}
.gbook-btn:hover { background: var(--accent3); }

/* ── FANLISTINGS ── */
.fanlistings-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.fanlisting-stamp {
  width: 88px;
  height: 31px;
  object-fit: cover;
  border: 1px solid var(--border);
  image-rendering: pixelated;
  transition: transform 0.15s;
}
.fanlisting-stamp:hover { transform: scale(1.05); }

.stamp-placeholder {
  width: 88px;
  height: 31px;
  background: var(--cream);
  border: 1px dashed var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  color: var(--border);
  text-align: center;
}

/* ── MUSIC / CD ── */
.cd-list { list-style: none; font-size: 12px; }
.cd-list li {
  padding: 4px 0;
  border-bottom: 1px dotted var(--border);
  display: flex;
  gap: 6px;
  align-items: center;
}
.cd-num {
  font-size: 10px;
  color: var(--border);
  min-width: 18px;
}

/* ── FOOTER ── */
#site-footer {
  text-align: center;
  padding: 16px 0 8px;
  margin-top: 10px;
  border-top: 1px dotted var(--border);
  font-size: 11px;
  color: var(--text-soft);
  line-height: 2;
}
.footer-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  margin: 8px 0;
}
.footer-badges img {
  height: 31px;
  image-rendering: pixelated;
}

/* ── HOVER ANIMATIONS ── */
@keyframes wiggle {
  0%, 100% { transform: rotate(-1deg); }
  50%       { transform: rotate(1deg); }
}
.wiggle:hover { animation: wiggle 0.3s ease infinite; }

/* ── SCROLLBAR (webkit only) ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream-dark); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ══════════════════════════════════════════
   RESPONSIVE — phone layout
   ══════════════════════════════════════════ */
@media (max-width: 700px) {
  #content-grid {
    grid-template-columns: 1fr;
  }
  /* on mobile, move sidebars below main content */
  #left-sidebar  { order: 2; }
  #main-content  { order: 1; }
  #right-sidebar { order: 3; }

  .photo-grid { grid-template-columns: repeat(3, 1fr); }
}
