/* =========================================================
   wolispace  –  template.css
   Mirrors the original wolispace.css layout but written for
   the new index.php / template.html structure.
   ========================================================= */

/* --- Reset & base ---------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Tahoma, Arial, Helvetica, sans-serif;
  color: rgba(255, 255, 255, .85);
  background: #000000;
}

/* --- Layout ---------------------------------------------- */
#header {
  position: absolute;
  top: 0; left: 180px;
  right: 0; height: 70px;
  padding: 10px 16px;
  background: url('/html/nav_images/body_top.gif') no-repeat left top;
  z-index: 10;
}

#header h1 {
  font-size: 1.4em;
  font-weight: bold;
  color: #ffffff;
  letter-spacing: 0.05em;
  text-shadow: -1px -1px 1px black;
}

#nav {
  position: absolute;
  top: 0; left: 0;
  width: 175px;
  padding-top: 70px;
  display: flex;
  flex-direction: column;
  background: url('/html/nav_images/left_top.gif') no-repeat left top,
              url('/html/nav_images/left_middle.gif') repeat-y left top;
}

/* Nav column bottom cap — mirrors left_top.gif at the top */
#nav-cap {
  margin-top: auto;
  width: 200px;
  height: 120px;           /* natural size of left_bottom.gif (200x120) */
  flex-shrink: 0;
  background: url('/html/nav_images/left_bottom.gif') no-repeat left top;
}

/* Decorative box image pinned to the bottom of the sidebar */
#nav-bottom {
  width: 144px;
  height: 131px;           /* natural size of form_background.gif (144x131) */
  flex-shrink: 0;
  background: url('/html/nav_images/form_background.gif') no-repeat left top;
}


#nav a,
#home-link {
  display: block;
  padding: 3px 8px 3px 16px;
  text-decoration: none;
  color: #ffff00;
  line-height: 1.6;
  text-shadow: -1px 1px 2px black;
}

#home-link {
  font-weight: bold;
  margin-bottom: 4px;
  padding-left: 16px;
}

#nav a:hover,
#home-link:hover { color: #f08787; }

#nav a.active {
  color: #ffffff;
  font-weight: bold;
}

.subnav {
  padding-left: 12px;
}

#main {
  margin-left: 185px;
  margin-top: 68px;
  padding: 12px 20px 40px;
  min-height: 100vh;
}

/* --- Breadcrumbs ----------------------------------------- */
#breadcrumbs {
  font-size: 0.78em;
  color: #aaaaaa;
  margin-bottom: 8px;
}

#breadcrumbs a { color: #ffff00; text-decoration: none; }
#breadcrumbs a:hover { color: #f08787; }
.bc-sep { color: #555555; margin: 0 4px; }

/* --- Page title ------------------------------------------ */
#page-title {
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 14px;
  border-bottom: 1px solid #333;
  padding-bottom: 6px;
  text-transform: capitalize;
}

/* --- Content area ---------------------------------------- */
#content {
  line-height: 1.6;
  max-width: 700px;
}

#content a { color: #ffff00; text-decoration: none; }
#content a:hover { color: #f08787; }
#content a:visited { color: #ffff00; }

/* --- Sub-folder cards ------------------------------------ */
.folder-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.folder-card {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid #444;
  background: #111;
  color: #ffff00 !important;
  text-decoration: none;
  font-size: 0.9em;
  border-radius: 3px;
  transition: background 0.15s, color 0.15s;
  text-transform: capitalize;
}

.folder-card:hover {
  background: #222;
  color: #ff0000 !important;
  border-color: #ff0000;
}

/* --- Thumbnail grid -------------------------------------- */
.thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.thumbnails a {
  display: inline-block;
  border: 2px solid transparent;
  transition: border-color 0.15s;
}

.thumbnails a:hover { border-color: #ff0000; }

.thumbnails img {
  display: block;
  max-width: 120px;
  max-height: 90px;
  object-fit: cover;
}

/* --- Single image view ----------------------------------- */
.image-view {
  text-align: center;
  margin-top: 10px;
}

.image-view img {
  max-width: 100%;
  max-height: 75vh;
  border: 1px solid #333;
}

/* --- Image pager ----------------------------------------- */
.pager {
  margin-top: 14px;
  font-size: 0.85em;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.pager a {
  display: inline-block;
  padding: 2px 8px;
  background: #111;
  border: 1px solid #444;
  color: #ffff00;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.1s;
}

.pager a:hover { background: #222; color: #ff0000; border-color: #ff0000; }

.pager a.current {
  background: #333;
  color: #ffffff;
  border-color: #ffffff;
  font-weight: bold;
}

/* --- Fixed nav links (below auto-generated folders) ------ */
#nav a.fixed-link:first-of-type,
.fixed-link:first-of-type {
  /* no easy way to target "first fixed-link" in pure CSS,
     so we add top margin via a generated separator rule below */
}

/* Separator before the first fixed link */
#nav a.fixed-link {
  color: gold;
}

/* --- Responsive ------------------------------------------ */
@media (max-width: 600px) {
  #header { left: 0; }
  #nav    { display: none; }
  #main   { margin-left: 0; }
}
