/* guac.blog — style.css */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --green-deep:  #1a3a2a;
  --green-mid:   #2d6a4f;
  --green-soft:  #52b788;
  --green-mint:  #95d5b2;
  --green-pale:  #d8f3dc;
  --green-cream: #f0faf2;
  --green-light: #e8f5e9;
  --pink:        #fce4ec;
  --pink-mid:    #f8bbd0;
  --white:       #fffef9;
  --text:        #1a2e22;
  --text-mid:    #3a5a44;
  --text-muted:  #7aaa8a;
  --border:      #b7dfc4;
  --box-title:   #d8f3dc;
  --shadow:      2px 2px 0 #95d5b2;
  --font-d:      'Playfair Display', Georgia, serif;
  --font-b:      'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-b);
  font-size: 13.5px;
  background: var(--green-cream);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--green-mid); text-decoration: none; }
a:hover { color: var(--green-soft); text-decoration: underline; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--green-cream); }
::-webkit-scrollbar-thumb { background: var(--green-mint); border-radius: 3px; }

/* ── RIBBON ── */
.ribbon {
  background: var(--green-mid);
  color: var(--white);
  font-size: 0.75rem;
  padding: 4px 0;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--green-soft);
}

/* ── HEADER ── */
.site-header {
  background: linear-gradient(135deg, var(--green-deep), var(--green-mid));
  color: var(--white);
  text-align: center;
  padding: 26px 20px 20px;
  border-bottom: 3px double var(--green-mint);
}
.header-script {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--green-mint);
  display: block;
  margin-bottom: 2px;
}
.header-title {
  font-family: var(--font-d);
  font-size: 2.8rem;
  font-style: italic;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.header-title span { color: var(--green-mint); }
.header-sub {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.08em;
  margin-top: 4px;
}

/* ── SITE NAV ── */
.site-nav {
  background: var(--green-pale);
  border-bottom: 2px solid var(--border);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px;
  padding: 5px 10px;
}
.site-nav a {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-mid);
  padding: 3px 12px;
  border-radius: 20px;
  transition: all 0.15s;
  text-decoration: none;
}
.site-nav a:hover {
  background: var(--green-mint);
  color: var(--white);
  text-decoration: none;
}

/* ── PAGE WRAP ── */
.page-wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 14px 12px 20px;
  display: grid;
  grid-template-columns: 195px 1fr;
  gap: 12px;
  align-items: start;
}

/* ── SIDEBAR ── */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 9px;
  position: sticky;
  top: 8px;
}

/* ── BOX ── */
.box, .content-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.box-title {
  background: var(--box-title);
  color: var(--green-deep);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 9px;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.05em;
  text-transform: lowercase;
}
.box-body { padding: 9px; }
.center { text-align: center; }

/* ── PROFILE ── */
.pfp-wrap {
  width: 80px; height: 80px;
  margin: 0 auto 7px;
  position: relative;
}
.pfp {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--green-mint);
  display: block;
}
.pfp-fallback {
  display: none;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--green-pale);
  border: 2px solid var(--green-mint);
  font-size: 2.5rem;
  align-items: center;
  justify-content: center;
}
.profile-name {
  font-family: var(--font-d);
  font-style: italic;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green-deep);
}
.profile-tag { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 3px; }
.dot-divider { color: var(--green-mint); font-size: 0.85rem; letter-spacing: 5px; margin: 5px 0; }
.profile-facts {
  list-style: none;
  text-align: left;
  font-size: 0.78rem;
  color: var(--text-mid);
  line-height: 2;
}
.status {
  background: var(--green-light);
  border: 1px dashed var(--green-mint);
  border-radius: 5px;
  padding: 5px 7px;
  text-align: left;
  font-size: 0.75rem;
}
.status-label { font-weight: 600; color: var(--green-mid); display: block; }
.status-val { color: var(--text); }

/* ── SOCIALS ── */
.socials-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.social-link {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  color: var(--text-mid);
  text-decoration: none;
  transition: color 0.15s;
}
.social-link:hover { color: var(--green-mid); text-decoration: none; }
.social-icon {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 3px;
  color: var(--white);
  letter-spacing: 0.03em;
}
.insta { background: linear-gradient(135deg, #833ab4, #fd1d1d, #f77737); }
.pint  { background: #e60023; }
.disc  { background: #5865f2; }

/* ── SIDE NAV ── */
.side-nav { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.side-nav a {
  display: block;
  font-size: 0.8rem;
  color: var(--text-mid);
  padding: 4px 6px;
  border-radius: 4px;
  transition: background 0.15s;
  text-decoration: none;
  cursor: pointer;
}
.side-nav a:hover { background: var(--green-pale); color: var(--green-mid); text-decoration: none; }

/* ── CURRENTLY ── */
.curr-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.79rem;
  color: var(--text-mid);
}
.curr-k { display: block; font-weight: 600; color: var(--green-mid); font-size: 0.72rem; text-transform: lowercase; letter-spacing: 0.04em; }

/* ── BLINKIES ── */
.blinkies-area,
.scatter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.scatter-row img,
.blinkies-area img {
  height: 20px;
  width: auto;
  image-rendering: pixelated;
  display: block;
}

/* ── VISITOR ── */
.visitor-num {
  font-family: 'Courier New', monospace;
  font-size: 1.5rem;
  color: var(--green-mid);
  letter-spacing: 3px;
  font-weight: 700;
}
.visitor-sub { font-size: 0.7rem; color: var(--text-muted); margin-top: 3px; }

/* ── MAIN CONTENT ── */
.main-content { min-width: 0; }

/* ── TABS ── */
.tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-bottom: 10px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 6px;
}
.tab-btn {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 5px 5px 0 0;
  padding: 5px 14px;
  font-family: var(--font-b);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-mid);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  text-transform: lowercase;
  letter-spacing: 0.04em;
}
.tab-btn:hover { background: var(--green-pale); }
.tab-btn.active {
  background: var(--green-mid);
  color: var(--white);
  border-color: var(--green-mid);
}

.tab-btn.tab-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  border-style: solid;
}

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 0.2s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── TAB CONTENT ── */
.tab-desc { font-size: 0.82rem; color: var(--text-muted); font-style: italic; margin-bottom: 12px; }

/* facts */
.facts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; }
.fact {
  background: var(--green-light);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 5px 8px;
  font-size: 0.8rem;
  color: var(--text);
}
.fact-k { display: block; font-weight: 600; color: var(--text-muted); font-size: 0.7rem; }

/* hobby bars */
.hobby-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hobby-name { font-size: 0.8rem; color: var(--text-mid); margin-bottom: 3px; font-weight: 500; }
.hobby-bar-wrap { height: 5px; background: var(--green-pale); border-radius: 3px; border: 1px solid var(--border); overflow: hidden; }
.hobby-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--green-mid), var(--green-mint)); border-radius: 3px; transition: width 1.2s cubic-bezier(.4,0,.2,1) 0.2s; }
.hobby-bar.go { width: var(--p); }

/* kpop tiers */
.tier-block { margin-bottom: 14px; }
.tier-head {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  padding: 2px 9px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 7px;
  border: 1px solid var(--border);
}
.tier-head.ult    { background: linear-gradient(90deg, var(--green-pale), var(--pink)); color: var(--green-deep); }
.tier-head.fave   { background: var(--green-light); color: var(--green-mid); }
.tier-head.casual { background: var(--white); color: var(--text-muted); }

.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 11px;
  font-size: 0.8rem;
  color: var(--text);
  box-shadow: 1px 1px 0 var(--green-mint);
  transition: transform 0.15s;
  animation: chipIn 0.25s ease both;
}
.chip:hover { transform: translateY(-2px); }
@keyframes chipIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

/* books */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
  margin-top: 10px;
  margin-bottom: 0;
}
.book-card {
  display: flex;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.book-card:hover { transform: translateY(-2px); }
.book-cover {
  width: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}
.book-spine {
  font-size: 0.58rem;
  color: rgba(255,255,255,0.7);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 0.05em;
  text-align: center;
  line-height: 1.2;
}
.book-info { padding: 9px 10px 9px 0; flex: 1; }
.book-title { font-family: var(--font-d); font-style: italic; font-size: 0.95rem; color: var(--green-deep); font-weight: 700; margin-bottom: 1px; }
.book-author { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 5px; }
.book-note { font-size: 0.8rem; color: var(--text-mid); line-height: 1.5; margin-bottom: 5px; }
.book-tag {
  display: inline-block;
  font-size: 0.68rem;
  background: var(--green-light);
  border: 1px solid var(--border);
  padding: 1px 7px;
  border-radius: 20px;
  color: var(--text-muted);
}

/* updates */
.update-log { display: flex; flex-direction: column; gap: 5px; }
.update-entry {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.82rem;
  padding: 5px 7px;
  background: var(--green-light);
  border-left: 2px solid var(--green-soft);
  border-radius: 0 4px 4px 0;
  animation: fadeIn 0.25s ease both;
}
.u-dot { width: 5px; height: 5px; min-width: 5px; border-radius: 50%; background: var(--green-soft); margin-top: 7px; }
.u-text { flex: 1; color: var(--text); }
.u-date { font-size: 0.68rem; color: var(--text-muted); white-space: nowrap; margin-top: 2px; }

/* posts */
.posts-list { display: flex; flex-direction: column; gap: 9px; }
.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 10px 12px;
  box-shadow: var(--shadow);
  animation: fadeIn 0.25s ease both;
}
.post-top { display: flex; align-items: center; gap: 7px; margin-bottom: 5px; flex-wrap: wrap; }
.post-tag-pill {
  font-size: 0.68rem;
  background: linear-gradient(135deg, var(--green-pale), var(--pink));
  border: 1px solid var(--border);
  padding: 1px 7px;
  border-radius: 20px;
  color: var(--text-mid);
}
.post-title { font-family: var(--font-d); font-style: italic; font-size: 0.98rem; color: var(--green-deep); font-weight: 700; }
.post-body { font-size: 0.84rem; color: var(--text-mid); line-height: 1.6; }
.post-date { font-size: 0.68rem; color: var(--text-muted); margin-top: 6px; }

/* chat */
.chat-win {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px;
  min-height: 160px;
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 9px;
}
.chat-win::-webkit-scrollbar { width: 3px; }
.chat-win::-webkit-scrollbar-thumb { background: var(--green-mint); border-radius: 2px; }
.chat-msg { display: flex; flex-direction: column; max-width: 72%; gap: 2px; animation: fadeIn 0.2s ease; }
.chat-msg.host { align-self: flex-start; }
.chat-msg.visitor { align-self: flex-end; }
.chat-who { font-size: 0.68rem; font-weight: 600; color: var(--green-mid); }
.chat-msg.visitor .chat-who { text-align: right; }
.chat-bubble {
  display: inline-block;
  padding: 6px 11px;
  border-radius: 10px 10px 10px 2px;
  font-size: 0.83rem;
  background: var(--green-pale);
  color: var(--text);
  border: 1px solid var(--border);
}
.chat-msg.visitor .chat-bubble {
  background: var(--green-mid);
  color: var(--white);
  border-color: transparent;
  border-radius: 10px 10px 2px 10px;
}
.chat-time { font-size: 0.65rem; color: var(--text-muted); }
.chat-msg.visitor .chat-time { text-align: right; }
.chat-inputs { display: flex; gap: 6px; flex-wrap: wrap; }
}
.chat-msg.owner-msg .chat-bubble {
  background: linear-gradient(135deg, var(--green-mid), var(--green-soft));
  color: var(--white);
  border-color: transparent;
  border-radius: 10px 10px 2px 10px;
  align-self: flex-end;
}
.chat-msg.owner-msg {
  align-self: flex-end;
}
.chat-msg.owner-msg .chat-who {
  text-align: right;
}
.chat-msg.owner-msg .chat-time {
  text-align: right;
}

/* ── FORMS ── */
.inp {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 6px 9px;
  font-family: var(--font-b);
  font-size: 0.82rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}
.inp:focus { border-color: var(--green-soft); }
.btn {
  background: var(--green-mid);
  color: var(--white);
  border: 1px solid var(--green-deep);
  border-radius: 5px;
  padding: 6px 14px;
  font-family: var(--font-b);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.btn:hover { background: var(--green-soft); }
.add-row { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.color-inp { width: 36px; height: 32px; border: 1px solid var(--border); border-radius: 5px; cursor: pointer; padding: 1px; }

/* ── MODAL ── */
.modal-bg {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26,58,42,0.5);
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-bg.open { display: flex; }
.modal-box {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 8px;
  max-width: 420px;
  width: 100%;
  box-shadow: 4px 4px 0 var(--green-mint);
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.25s ease both;
}
.modal-x {
  position: absolute; top: 8px; right: 10px;
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-size: 0.9rem;
}
.modal-box .inp { width: 100%; }

/* ── FOOTER ── */
.site-footer {
  background: var(--green-deep);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 18px;
  border-top: 3px double var(--green-soft);
  font-size: 0.78rem;
}
.footer-links { display: flex; justify-content: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.footer-links a { color: var(--green-mint); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-copy { color: rgba(255,255,255,0.35); font-size: 0.72rem; }

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  .page-wrap { grid-template-columns: 1fr; }
  .sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; }
  .hobby-row { grid-template-columns: 1fr; }
  .books-grid { grid-template-columns: 1fr; }
  .chat-inputs { flex-direction: column; }
}
@media (max-width: 440px) {
  .sidebar { grid-template-columns: 1fr; }
  .header-title { font-size: 2rem; }
}