@import url('https://fonts.googleapis.com/css2?family=Special+Elite&family=Courier+Prime:ital,wght@0,400;0,700;1,400&display=swap');

/* ==============================
   EXAUVE — La vie de Junsss
   Shared Stylesheet
   ============================== */

:root {
  --red-bright: #c00000;
  --red-mid: #8b0000;
  --red-dark: #6b0000;
  --red-deep: #3a0000;
  --red-deepest: #1a0000;
  --cream: #e8dcc8;
  --cream-light: #f5f0e8;
  --cream-mid: #d5c9b5;
  --text-dark: #2a1a1a;
  --text-mid: #555;
  --text-muted: #999;
  --border: #555;
  --border-light: #bbb;
  --grad-red: linear-gradient(to bottom, #c00000 0%, #8b0000 45%, #6b0000 75%, #3a0000 100%);
}

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

body {
  background-color: var(--cream);
  background-image: repeating-linear-gradient(
    0deg, transparent, transparent 2px,
    rgba(0,0,0,0.025) 2px, rgba(0,0,0,0.025) 4px
  );
  font-family: 'Courier Prime', monospace;
  color: var(--text-dark);
  min-height: 100vh;
}

/* ---- TOP NAV BAR ---- */
.top-bar {
  background: var(--grad-red);
  color: #f5e6e6;
  font-size: 11px;
  padding: 5px 18px;
  display: flex;
  gap: 22px;
  align-items: center;
  letter-spacing: 2px;
  border-bottom: 2px solid var(--red-deep);
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  position: sticky;
  top: 0;
  z-index: 100;
}
.top-bar .site-name {
  font-family: 'Special Elite', serif;
  font-size: 13px;
  color: #fff;
  letter-spacing: 3px;
  margin-right: auto;
}
.top-bar a {
  color: #f5e6e6;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.15s;
}
.top-bar a:hover { opacity: 1; text-decoration: underline; }
.top-bar a.active { color: #fff; opacity: 1; font-weight: 700; }

/* ---- WINDOWS ---- */
.win {
  background: var(--cream-light);
  border: 1.5px solid var(--border);
}
.win-bar {
  background: var(--grad-red);
  color: #fff;
  font-family: 'Special Elite', serif;
  font-size: 11px;
  padding: 4px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: 1px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
  user-select: none;
}
.win-btns { display: flex; gap: 3px; }
.win-btn {
  width: 13px; height: 13px;
  background: var(--cream);
  border: 1px solid var(--border);
  font-size: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #333; cursor: pointer; flex-shrink: 0;
}
.win-content { padding: 14px; }

/* ---- LAYOUT GRID ---- */
.desktop { padding: 18px; }
.main-grid {
  display: grid;
  grid-template-columns: 200px 1fr 185px;
  gap: 14px;
  align-items: start;
}
.col { display: flex; flex-direction: column; gap: 14px; }

/* ---- TYPOGRAPHY ---- */
h1, h2, h3 {
  font-family: 'Special Elite', serif;
  color: var(--red-mid);
}
a { color: var(--red-mid); }
a:hover { color: var(--red-bright); }

/* ---- QUOTE BOX ---- */
.quote-box {
  background: var(--grad-red);
  color: #f5e6e6;
  font-family: 'Special Elite', serif;
  font-size: 13px;
  font-style: italic;
  padding: 16px 13px;
  text-align: center;
  line-height: 1.8;
  border: 1.5px solid var(--red-deep);
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.quote-box small {
  display: block;
  font-size: 10px;
  color: #e8c0c0;
  margin-top: 7px;
  font-style: normal;
  letter-spacing: 1px;
}

/* ---- NAV LIST ---- */
.nav-list { list-style: none; }
.nav-list li { border-bottom: 1px dotted var(--border-light); }
.nav-list a {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 6px;
  font-size: 12px;
  color: var(--red-mid);
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: all 0.1s;
}
.nav-list a:hover {
  background: var(--grad-red);
  color: #fff;
  padding-left: 12px;
}
.nav-list a.active {
  background: var(--grad-red);
  color: #fff;
  padding-left: 12px;
}
.nav-sym { font-size: 13px; }

/* ---- UPDATE LIST ---- */
.update-list { list-style: none; font-size: 11px; color: #333; line-height: 1.9; }
.update-list li { border-bottom: 1px dotted var(--border-light); padding: 3px 0; }
.update-list li:last-child { border-bottom: none; }
.update-list a { color: var(--red-mid); text-decoration: none; }
.update-list a:hover { text-decoration: underline; }
.update-date { color: var(--text-muted); font-size: 10px; margin-right: 5px; }

/* ---- SONG WIDGET ---- */
.song-widget { display: flex; gap: 13px; align-items: center; }
.song-cover {
  width: 60px; height: 60px;
  background: var(--grad-red);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  border: 1.5px solid var(--border);
  color: #fff;
  overflow: hidden;
}
.song-cover img { width: 100%; height: 100%; object-fit: cover; }
.song-day { font-size: 9px; color: var(--text-muted); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 3px; }
.song-title { font-family: 'Special Elite', serif; font-size: 14px; color: var(--red-mid); line-height: 1.2; }
.song-artist { font-size: 11px; color: var(--text-mid); margin-top: 3px; }
.song-bar { height: 3px; background: var(--cream-mid); margin-top: 10px; }
.song-fill { height: 3px; background: linear-gradient(to right, var(--red-bright), var(--red-mid)); width: 38%; }

/* ---- HOME CARD ---- */
.homecard-title {
  font-family: 'Special Elite', serif;
  font-size: 14px; color: var(--red-mid);
  letter-spacing: 2px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 8px; margin-bottom: 13px;
  text-align: center;
}
.icon-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.icon-item { display: flex; flex-direction: column; align-items: center; gap: 5px; cursor: pointer; padding: 4px; text-decoration: none; }
.icon-box {
  width: 40px; height: 40px;
  border: 1.5px solid #aaa;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  transition: all 0.15s;
}
.icon-item:hover .icon-box { background: var(--red-mid); border-color: var(--red-mid); }
.icon-label { font-size: 9px; color: var(--text-mid); letter-spacing: 0.5px; text-align: center; }

/* ---- BADGES ---- */
.badges { display: flex; flex-wrap: wrap; gap: 5px; }
.badge {
  background: linear-gradient(to bottom, #3a0000, #1a0000);
  color: #e8c0c0;
  font-size: 9px;
  border: 1px solid var(--red-mid);
  padding: 3px 7px;
  letter-spacing: 1px;
  font-family: 'Courier Prime', monospace;
}

/* ---- VISITOR ---- */
.visitor-count {
  font-family: 'Special Elite', serif;
  font-size: 28px; color: var(--red-mid);
  letter-spacing: 4px; text-align: center; padding: 4px 0;
}
.visitor-label { font-size: 9px; color: var(--text-muted); letter-spacing: 2px; text-align: center; margin-top: 2px; }

/* ---- FOOTER ---- */
.site-footer {
  text-align: center; padding: 10px;
  border-top: 2px solid var(--red-mid);
  margin-top: 16px;
  background: var(--grad-red);
  color: #f5dada;
  font-size: 10px; letter-spacing: 2px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* ---- PAGE CONTENT ---- */
.page-wrap { padding: 20px; max-width: 860px; margin: 0 auto; }
.page-header {
  font-family: 'Special Elite', serif;
  font-size: 22px; color: var(--red-mid);
  letter-spacing: 3px;
  border-bottom: 2px solid var(--red-mid);
  padding-bottom: 8px; margin-bottom: 20px;
}

/* Blog posts */
.post { border-bottom: 1px dashed var(--border-light); padding-bottom: 22px; margin-bottom: 22px; }
.post:last-child { border-bottom: none; }
.post-title { font-family: 'Special Elite', serif; font-size: 17px; color: var(--red-mid); margin-bottom: 5px; }
.post-title a { text-decoration: none; color: var(--red-mid); }
.post-title a:hover { color: var(--red-bright); }
.post-meta { font-size: 10px; color: var(--text-muted); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 10px; }
.post-meta .mood { color: var(--red-mid); }
.post-body { font-size: 13px; line-height: 1.8; color: var(--text-dark); }
.post-body p { margin-bottom: 10px; }
.post-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 10px; }
.tag {
  font-size: 10px; color: var(--red-mid);
  border: 1px solid var(--red-mid);
  padding: 2px 7px; letter-spacing: 1px;
  text-decoration: none;
}
.tag:hover { background: var(--red-mid); color: #fff; }

/* Poems */
.poem { margin-bottom: 30px; padding-bottom: 24px; border-bottom: 1px dashed var(--border-light); }
.poem:last-child { border-bottom: none; }
.poem-title { font-family: 'Special Elite', serif; font-size: 16px; color: var(--red-mid); margin-bottom: 8px; }
.poem-date { font-size: 10px; color: var(--text-muted); letter-spacing: 1.5px; margin-bottom: 14px; }
.poem-body { font-size: 13px; line-height: 2.1; color: var(--text-dark); font-style: italic; white-space: pre-line; border-left: 2px solid var(--red-mid); padding-left: 16px; }

/* About */
.about-section { margin-bottom: 22px; }
.about-section h3 { font-size: 13px; letter-spacing: 2px; color: var(--red-mid); margin-bottom: 8px; border-bottom: 1px dotted var(--border-light); padding-bottom: 4px; }
.about-section p { font-size: 13px; line-height: 1.8; color: var(--text-dark); }
.about-list { list-style: none; font-size: 13px; line-height: 1.9; color: var(--text-dark); }
.about-list li::before { content: "✦ "; color: var(--red-mid); }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-size: 11px; letter-spacing: 1.5px; color: var(--text-mid); text-transform: uppercase; }
.form-group input,
.form-group textarea {
  background: #fff;
  border: 1.5px solid var(--border-light);
  padding: 8px 10px;
  font-family: 'Courier Prime', monospace;
  font-size: 13px;
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.15s;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--red-mid); }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-submit {
  background: var(--grad-red);
  color: #fff;
  border: 1.5px solid var(--red-deep);
  padding: 9px 20px;
  font-family: 'Special Elite', serif;
  font-size: 13px;
  letter-spacing: 2px;
  cursor: pointer;
  align-self: flex-start;
  transition: opacity 0.15s;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.form-submit:hover { opacity: 0.85; }

/* Photos grid */
.photos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.photo-item {
  border: 1.5px solid var(--border-light);
  overflow: hidden;
  cursor: pointer;
  background: var(--cream-mid);
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--text-muted); letter-spacing: 1px;
  text-align: center;
  font-style: italic;
}
.photo-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-item:hover { border-color: var(--red-mid); }

/* Sidebar for inner pages */
.inner-layout { display: grid; grid-template-columns: 1fr 185px; gap: 16px; align-items: start; }

/* Blink */
.blink { animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Status */
.status-mood { font-size: 11px; color: #777; font-style: italic; margin-bottom: 8px; }
.status-text { font-size: 12px; color: var(--text-dark); line-height: 1.6; border-left: 2px solid var(--red-mid); padding-left: 10px; }
