/* ==============================================
   ZENIEA - Web2.0 Archive Style
   ============================================== */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 100%;
}

/* Layout */
#page {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#header {
  text-align: center;
  padding: 12px 0 8px 0;
}

#logo {
  display: inline-block;
}

#logo a {
  font-size: 28px;
  font-weight: bold;
  letter-spacing: 6px;
  text-decoration: none;
}

#content-wrapper {
  flex: 1;
  padding: 20px 0;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

#footer {
  text-align: center;
  padding: 15px;
  font-size: 11px;
}

/* Navigation */
#zeniea-linkbar {
  padding: 0;
  text-align: center;
}

.linkbar {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 6px 10px;
  list-style: none;
  gap: 4px;
}

.linkbar li {
  display: inline;
}

.linkbar a {
  text-decoration: none;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 3px;
  transition: background 0.15s ease;
}

.linkbar a:hover {
  text-decoration: underline;
}

.theme-switcher {
  margin-left: auto;
  display: flex;
  gap: 2px;
}

.theme-switcher a {
  padding: 3px 6px;
  font-size: 10px;
  opacity: 0.7;
}

.theme-switcher a.active {
  opacity: 1;
  font-weight: bold;
}

/* Content Boxes */
.content {
  border-radius: 5px;
  padding: 5px;
}

#sideboob {
  max-width: 800px;
  margin: 0 auto;
  padding: 15px;
  text-align: center;
}

/* Comic Page Styles */
.cmspagetitle h1 {
  margin: 0;
  padding: 3px;
  text-align: center;
}

.cmsimage {
  border: 2px solid;
  max-width: 100%;
}

.cmsimageframe {
  text-align: center;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.cmsdialogue {
  text-align: center;
  font-size: 10pt;
  padding: 10px 0;
}

.cmscommand {
  margin: 8px 0;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cmscommand .cmd-arrow {
  font-family: monospace;
  font-size: 14px;
  opacity: 0.6;
}

.cmscommand a {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid;
  border-radius: 20px;
  text-decoration: none;
  font-size: 13px;
  transition: all 0.15s ease;
}

.cmscommand a:hover {
  transform: translateX(4px);
}

.cmsmenu {
  margin: 15px 0 0 0;
  padding: 10px 0;
  text-align: left;
  font-size: 12px;
  border-top: 1px solid;
  border-color: inherit;
  opacity: 0.8;
}

.cmsmenu a {
  margin-right: 15px;
  text-decoration: none;
}

.cmsmenu a:hover {
  text-decoration: underline;
}

.nav-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.nav-secondary {
  opacity: 0.6;
  font-size: 11px;
}

/* Comic Header */
.comic-header {
  margin-bottom: 5px;
}

.comic-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.6;
}

/* About Page */
.about-section {
  text-align: left;
  margin: 20px 0;
  padding: 15px;
  border-radius: 5px;
}

.about-section h2 {
  margin: 0 0 10px 0;
  font-size: 14px;
}

.about-section p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

/* Author's Note */
#authorNote {
  border: 3px dashed;
  margin: 15px 5px;
  padding: 10px;
  font-size: medium;
  text-align: left;
}

#protip {
  text-align: center;
  font-size: 8pt;
  margin-top: 10px;
}

/* Comic Cards */
.comic-selector {
  margin: 20px 0;
}

.comic-card {
  border: 1px solid;
  border-radius: 8px;
  padding: 15px;
  margin: 10px 0;
  text-align: left;
  display: block;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.comic-card:hover {
  transform: translateY(-2px);
}

.comic-card h3 {
  margin: 0 0 8px 0;
}

.comic-card p {
  margin: 0 0 10px 0;
  font-size: 12px;
}

.comic-meta {
  font-size: 11px;
  opacity: 0.7;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid;
  border-radius: 4px;
  text-decoration: none;
  margin: 3px;
  cursor: pointer;
  font-size: 12px;
}

.btn:hover {
  opacity: 0.85;
}

/* Error States */
.error {
  opacity: 0.7;
  font-style: italic;
}

/* Misc */
.intro {
  font-size: 13px;
  max-width: 600px;
  margin: 0 auto 20px auto;
}

/* Bottom Panels */
#bottom-panels {
  display: flex;
  gap: 15px;
  max-width: 800px;
  margin: 15px auto 0 auto;
  padding: 0 15px;
}

.panel {
  border-radius: 5px;
  padding: 12px;
}

.panel-recent {
  flex: 1;
}

.panel-news {
  flex: 2;
}

.panel h3 {
  margin: 0 0 10px 0;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.recent-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.recent-list li {
  padding: 4px 0;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
}

.recent-list a {
  text-decoration: none;
}

.recent-list a:hover {
  text-decoration: underline;
}

.recent-comic {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.5;
  margin: 0 8px;
}

.date {
  font-size: 10px;
  opacity: 0.6;
}

.news-entry h4 {
  margin: 0 0 4px 0;
  font-size: 13px;
}

.news-entry .date {
  display: block;
  margin-bottom: 8px;
}

.news-entry p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}

/* ==============================================
   THEMES
   ============================================== */

/* Classic - Pink */
body.theme-classic {
  background-color: #ffdefb;
  color: #000;
}

.theme-classic a { color: #AD61AC; }
.theme-classic #logo a { color: #AD61AC; }

.theme-classic .content,
.theme-classic .panel {
  border: 1px solid #AD61AC;
  background: #FFF2FF;
  box-shadow: 0px 2px 5px 0px rgba(173, 97, 172, 0.3);
}

.theme-classic #zeniea-linkbar {
  background: #AD61AC;
  box-shadow: 0px 2px 5px 0px rgba(173, 97, 172, 0.4);
}

.theme-classic .linkbar a { color: #fff; }
.theme-classic .linkbar a:hover { background: rgba(255, 255, 255, 0.2); }
.theme-classic .theme-switcher a { color: rgba(255,255,255,0.7); }
.theme-classic .theme-switcher a.active { color: #fff; }

.theme-classic h1, .theme-classic .cmspagetitle h1 { color: #AD61AC; }
.theme-classic .cmsimage { border-color: #AD61AC; }
.theme-classic .cmscommand a { border-color: #AD61AC; background: #fff; color: #AD61AC; }
.theme-classic .cmscommand a:hover { background: #AD61AC; color: #fff; }
.theme-classic .comic-card { border-color: #AD61AC; background: #FFF2FF; }
.theme-classic .comic-card:hover { box-shadow: 0 4px 12px rgba(173, 97, 172, 0.25); }
.theme-classic .btn { background: #FFF2FF; border-color: #AD61AC; color: #AD61AC; }
.theme-classic .btn:hover { background: #AD61AC; color: #fff; }
.theme-classic .panel h3 { color: #AD61AC; }
.theme-classic #footer { color: #888; }
.theme-classic #footer a { color: #AD61AC; }

/* Below - Dark Space Blue */
body.theme-below {
  background: #0F1528;
  color: #9DAAD9;
}

.theme-below a { color: #7A9CCF; }
.theme-below #logo a { color: #9DAAD9; }

.theme-below .content,
.theme-below .panel {
  background: #1A2237;
  border: 1px solid #2A3550;
  box-shadow: 0px 2px 5px 0px rgba(0,0,0,0.5);
}

.theme-below #zeniea-linkbar {
  background: #1A2237;
  box-shadow: 0px 2px 5px 0px rgba(0,0,0,0.4);
}

.theme-below .linkbar a { color: #9DAAD9; }
.theme-below .linkbar a:hover { background: rgba(157,170,217,0.1); }
.theme-below .theme-switcher a { color: rgba(157,170,217,0.5); }
.theme-below .theme-switcher a.active { color: #9DAAD9; }

.theme-below h1, .theme-below .cmspagetitle h1 { color: #9DAAD9; }
.theme-below .cmsimage { border-color: #2A3550; }
.theme-below .cmscommand a { border-color: #567194; background: #0F1528; color: #7A9CCF; }
.theme-below .cmscommand a:hover { background: #567194; color: #0F1528; }
.theme-below .comic-card { border-color: #2A3550; background: #141B31; }
.theme-below .comic-card:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5); }
.theme-below .btn { background: #1A2237; border-color: #567194; color: #7A9CCF; }
.theme-below .btn:hover { background: #567194; color: #0F1528; }
.theme-below .panel h3 { color: #7A9CCF; }
.theme-below #footer { color: #567194; }
.theme-below #footer a { color: #9DAAD9; }

/* Modern - Cyan/Dark */
body.theme-modern {
  background: #1a1a2e;
  color: #eee;
}

.theme-modern a { color: #00d4ff; }
.theme-modern #logo a { color: #00d4ff; }

.theme-modern .content,
.theme-modern .panel {
  border: 1px solid #0f3460;
  background: #16213e;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.theme-modern #zeniea-linkbar {
  background: linear-gradient(to bottom, #0f3460, #16213e);
}

.theme-modern .linkbar a { color: #00d4ff; }
.theme-modern .linkbar a:hover { background: rgba(0, 212, 255, 0.15); }
.theme-modern .theme-switcher a { color: rgba(0,212,255,0.5); }
.theme-modern .theme-switcher a.active { color: #00d4ff; }

.theme-modern h1, .theme-modern .cmspagetitle h1 { color: #00d4ff; }
.theme-modern .cmsimage { border-color: #0f3460; }
.theme-modern .cmscommand a { border-color: #00d4ff; background: #0f3460; color: #00d4ff; }
.theme-modern .cmscommand a:hover { background: #00d4ff; color: #1a1a2e; }
.theme-modern .comic-card { border-color: #0f3460; background: #16213e; }
.theme-modern .comic-card:hover { box-shadow: 0 4px 12px rgba(0, 212, 255, 0.15); }
.theme-modern .btn { background: #0f3460; border-color: #00d4ff; color: #00d4ff; }
.theme-modern .btn:hover { background: #00d4ff; color: #1a1a2e; }
.theme-modern .panel h3 { color: #00d4ff; }
.theme-modern #footer { color: #666; }
.theme-modern #footer a { color: #00d4ff; }

/* Darksky - Indigo */
body.theme-darksky {
  background: linear-gradient(to bottom, #0c0c1e 0%, #1a1a3e 50%, #0c0c1e 100%);
  background-attachment: fixed;
  color: #d0d0e0;
}

.theme-darksky a { color: #9090ff; }
.theme-darksky #logo a { color: #b0b0ff; text-shadow: 0 0 10px rgba(144,144,255,0.5); }

.theme-darksky .content,
.theme-darksky .panel {
  border: 1px solid #3030a0;
  background: rgba(20, 20, 60, 0.9);
  box-shadow: 0 0 20px rgba(100, 100, 255, 0.1);
}

.theme-darksky #zeniea-linkbar {
  background: linear-gradient(to right, #1a1a3e, #2a2a5e, #1a1a3e);
}

.theme-darksky .linkbar a { color: #9090ff; }
.theme-darksky .linkbar a:hover { background: rgba(144, 144, 255, 0.2); }
.theme-darksky .theme-switcher a { color: rgba(144,144,255,0.5); }
.theme-darksky .theme-switcher a.active { color: #b0b0ff; }

.theme-darksky h1, .theme-darksky .cmspagetitle h1 {
  color: #b0b0ff;
  text-shadow: 0 0 10px rgba(144, 144, 255, 0.5);
}
.theme-darksky .cmsimage { border-color: #4040b0; }
.theme-darksky .cmscommand a { border-color: #5050c0; background: rgba(30,30,80,0.8); color: #a0a0ff; }
.theme-darksky .cmscommand a:hover { background: #5050c0; color: #fff; }
.theme-darksky .comic-card { border-color: #3030a0; background: rgba(20, 20, 60, 0.9); }
.theme-darksky .comic-card:hover { box-shadow: 0 4px 16px rgba(100, 100, 255, 0.2); }
.theme-darksky .btn { background: rgba(30, 30, 80, 0.8); border-color: #5050c0; color: #a0a0ff; }
.theme-darksky .btn:hover { background: #5050c0; color: #fff; }
.theme-darksky .panel h3 { color: #9090ff; }
.theme-darksky #footer { color: #5050a0; }
.theme-darksky #footer a { color: #9090ff; }

/* ==============================================
   RESPONSIVE
   ============================================== */

@media (max-width: 800px) {
  #logo a { font-size: 22px; letter-spacing: 4px; }
  .linkbar { flex-wrap: wrap; }
  .theme-switcher { margin-left: 0; width: 100%; justify-content: center; margin-top: 4px; }
  #sideboob { padding: 10px; }
  #bottom-panels { flex-direction: column; }
  .panel-recent, .panel-news { flex: none; }
}
