/* ============================================================
   myren.cloud — Modern CSS Redesign
   Dark theme with golden accent, fully responsive
   ============================================================ */

:root {
  --bg:        #1e1e1e;
  --bg-card:   #252525;
  --bg-header: #2a2a2e;
  --accent:    #f8bf24;
  --accent-dim:#c49918;
  --text:      #e0e0e0;
  --text-muted:#888;
  --text-link: #a8b8ff;
  --border:    #3a3a3a;
  --sidebar-w: 220px;
  --max-w:     960px;
  --radius:    8px;
  --font-sans: 'Segoe UI', system-ui, Arial, sans-serif;
  --font-mono: 'Consolas', 'Courier New', monospace;
  --transition: 0.18s ease;
}

/* ---- Reset ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; display: block; }
a { color: var(--text-link); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

/* ---- Header ----------------------------------------------- */
#site-header {
  background: var(--bg-header);
  border-bottom: 3px solid var(--accent);
  padding: 0 1.5rem;
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 0;
  position: relative;
}
.header-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}
.site-logo {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--accent);
}
.header-email {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.header-email a { color: var(--text-muted); }
.header-email a:hover { color: var(--accent); }

/* ---- Top Nav ---------------------------------------------- */
#top-nav {
  background: #222;
  border-bottom: 1px solid var(--border);
}
.top-nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  padding: 0 1rem;
}
.top-nav-inner a {
  display: block;
  padding: 0.6rem 0.9rem;
  color: #bbb;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.top-nav-inner a:hover,
.top-nav-inner a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
/* hamburger hidden on desktop */
.nav-toggle { display: none; }

/* ---- Page Wrapper ----------------------------------------- */
#page-wrapper {
  flex: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  gap: 1.5rem;
  padding: 1.5rem 1rem 2rem;
}

/* ---- Sidebar ---------------------------------------------- */
#sidebar {
  min-width: 0;
}
.sidebar-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 0.5rem 0.5rem;
}
#side-nav {
  list-style: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
#side-nav > li > a,
#side-nav > li > span {
  display: block;
  padding: 0.55rem 0.85rem;
  color: #ccc;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), color var(--transition);
}
#side-nav > li:last-child > a { border-bottom: none; }
#side-nav > li > a:hover { background: #2e2e2e; color: var(--accent); }
#side-nav > li > a.active { background: #2e2e2e; color: var(--accent); font-weight: 600; }

/* sub-nav */
#side-nav ul { list-style: none; }
#side-nav ul li a {
  display: block;
  padding: 0.45rem 0.85rem 0.45rem 1.8rem;
  color: #aaa;
  font-size: 0.83rem;
  border-bottom: 1px solid #2a2a2a;
  transition: background var(--transition), color var(--transition);
}
#side-nav ul li:last-child a { border-bottom: none; }
#side-nav ul li a:hover { background: #2a2a2a; color: var(--accent); }
#side-nav ul li a.active { color: var(--accent); font-weight: 600; }

/* ---- Main Content ----------------------------------------- */
#main-content {
  min-width: 0;
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
}

/* ---- Content Typography ----------------------------------- */
.page-title {
  font-size: 1.55rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
  color: #fff;
}
.page-subtitle {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 1.4rem 0 0.4rem;
  color: var(--accent);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.3rem;
}
.news-item { margin-bottom: 1.8rem; }
.news-item .date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
  margin-bottom: 0.5rem;
}
#main-content p { margin-bottom: 0.9rem; }
#main-content p:last-child { margin-bottom: 0; }

/* ---- Tracklist (CSS grid, no tables) ---------------------- */
.tracklist {
  margin-top: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.tracklist-header,
.tracklist-row {
  display: grid;
  grid-template-columns: 50px 1fr 80px 80px;
  gap: 0 0.5rem;
  align-items: center;
  padding: 0.5rem 0.75rem;
}
.tracklist-header {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  background: #1a1a1a;
}
.tracklist-row {
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border);
}
.tracklist-row:last-child { border-bottom: none; }
.tracklist-row:hover { background: #2a2a2a; }
.tracklist-row a { color: var(--text-link); }
.tracklist-row a:hover { color: var(--accent); }
.col-num  { color: var(--text-muted); font-size: 0.8rem; }
.col-dur,
.col-size { color: var(--text-muted); font-size: 0.82rem; }
.song-comments {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.song-comments p { margin-bottom: 0.3rem; }

@media (max-width: 500px) {
  .tracklist-header,
  .tracklist-row {
    grid-template-columns: 36px 1fr 70px;
  }
  .col-size { display: none; }
}

/* ---- Guestbook -------------------------------------------- */
.gb-entry {
  padding: 1rem 0;
  border-bottom: 1px solid var(--accent-dim);
}
.gb-entry:last-of-type { border-bottom: none; }
.gb-title { font-size: 1.1rem; font-weight: 600; color: #fff; margin-bottom: 0.3rem; }
.gb-text { font-size: 0.9rem; color: var(--text); margin-bottom: 0.4rem; }
.gb-meta { font-size: 0.78rem; color: var(--text-muted); }
.gb-meta a { color: var(--text-muted); }
.gb-meta a:hover { color: var(--accent); }

.gb-form { margin-top: 1.5rem; }
.gb-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
  margin-top: 0.85rem;
}
.gb-form input[type="text"],
.gb-form textarea {
  width: 100%;
  background: #1a1a1a;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  transition: border-color var(--transition);
}
.gb-form input[type="text"]:focus,
.gb-form textarea:focus { outline: none; border-color: var(--accent); }
.gb-form textarea { resize: vertical; min-height: 120px; }
.captcha-row { display: flex; align-items: center; gap: 1rem; margin-top: 0.85rem; }
.captcha-row img { border-radius: 4px; }
.captcha-row a { font-size: 0.8rem; color: var(--text-muted); }
.captcha-row a:hover { color: var(--accent); }
.btn {
  display: inline-block;
  background: var(--accent);
  color: #111;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.5rem 1.4rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 1rem;
  transition: background var(--transition);
}
.btn:hover { background: var(--accent-dim); }
.checkbox-row { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.85rem; font-size: 0.88rem; }
.checkbox-row input { width: auto; }

/* ---- Links Table ------------------------------------------ */
.links-table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.links-table td { padding: 0.55rem 0.5rem; border-bottom: 1px solid var(--border); font-size: 0.9rem; vertical-align: top; }
.links-table td:first-child { width: 200px; }
.links-table tr:last-child td { border-bottom: none; }

/* ---- Joke / Article --------------------------------------- */
.joke { margin: 1.4rem 0; padding: 1.1rem 1.25rem; background: #1e1e1e; border-left: 3px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; }
.joke-title { font-weight: 700; font-size: 1rem; color: var(--accent); margin-bottom: 0.5rem; }

/* ---- Footer ----------------------------------------------- */
#site-footer {
  background: #191919;
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 1.25rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 2;
}
#site-footer a { color: var(--text-muted); }
#site-footer a:hover { color: var(--accent); }

/* ---- Alert boxes ------------------------------------------ */
.alert { padding: 0.75rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: 0.88rem; }
.alert-success { background: #1a3a1a; border: 1px solid #2a5a2a; color: #7fc97f; }
.alert-error   { background: #3a1a1a; border: 1px solid #5a2a2a; color: #c97f7f; }

/* ---- Responsive ------------------------------------------- */
@media (max-width: 700px) {
  #page-wrapper { grid-template-columns: 1fr; }
  #sidebar { display: none; }
  #sidebar.open { display: block; }
  .nav-toggle {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: 1px solid var(--border);
    border-radius: 5px;
    color: #ccc;
    padding: 0.35rem 0.7rem;
    font-size: 0.82rem;
    cursor: pointer;
  }
  .site-logo { font-size: 1.2rem; }
  #main-content { padding: 1.2rem 1.1rem; }
  .song-table { font-size: 0.8rem; }
}
