/* ═══════════════════════════════════════
   CODE-PANDA.COM
   Colors from the original site
   ═══════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Russo+One&family=Oxygen:wght@300;400;700&family=Raleway:wght@400;600&display=swap');

:root {
  --maroon:      #330000;
  --red:         #660000;
  --dark-orange: #7e3219;
  --orange:      #cc6633;
  --beige:       #f4c491;
  --gold:        #E0B649;
}

*, *::before, *::after { box-sizing: border-box; }

/* ── Body ──────────────────────────────── */

body {
  margin: 0;
  padding: 0;
  background-color: var(--red);
  background-image: url('../images/background.svg');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center right;
  background-attachment: fixed;
  font-family: 'Oxygen', Verdana, sans-serif;
  color: var(--beige);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}


/* ── Banner / Header ───────────────────── */

#banner {
  background-color: var(--dark-orange);
  margin: 0;
}

.logo-pane {
  background-image: url('../images/banner_bg.svg');
  background-position: -2px 0;
  background-size: cover;
  padding: 12px 0;
  text-align: center;
}

.logo-pane img {
  height: 110px;
  max-width: 100%;
}

/* ── Kanji divider ─────────────────────── */

.kanji-divider {
  width: 100%;
  background-image: url('../images/kanji_text.svg');
  background-repeat: repeat-x;
  background-size: 8em 90%;
  border-top: 0.1875em solid black;
  border-bottom: 0.1875em solid black;
  height: 35px;
}

.kanji-divider.orange { background-color: var(--orange); }
.kanji-divider.beige  { background-color: var(--beige); }

/* ── Navigation bar ────────────────────── */

.nav-row {
  width: 100%;
}

.navigation-bar {
  background-color: var(--orange);
  float: right;
  display: flex;
  align-items: center;
  height: 2.4em;
  padding-left: 3em;
  border-left: 3px solid black;
  border-bottom: 3px solid black;
  border-bottom-left-radius: 50px;
  gap: 0.2em;
}

.navigation-bar a {
  font-family: 'Russo One', sans-serif;
  font-size: 1.2em;
  color: var(--beige);
  text-decoration: none;
  padding: 0 0.7em;
}

.navigation-bar a:hover,
.navigation-bar a.active {
  color: var(--maroon);
}

/* clearfix so nav-row wraps the float */
.nav-row::after {
  content: '';
  display: block;
  clear: both;
}

/* ── Main content area ─────────────────── */

.page-body {
  flex: 1;
  margin: 2.5em 0;
}

/* col-md-10 col-md-offset-1 equivalent — used on blog/post/links/examples */
.content-col {
  width: 83%;
  margin: 0 auto;
}

/* ── Information panel ─────────────────── */

.information-panel {
  font-size: 12pt;
  padding: 40px;
  background-color: var(--beige);
  border: 4px solid var(--orange);
  border-radius: 5px;
  font-family: 'Raleway', sans-serif;
  color: #333;
  margin-bottom: 2em;
}

.information-panel h1,
.information-panel h2,
.information-panel h3 {
  color: var(--dark-orange);
  font-family: 'Oxygen', sans-serif;
  border-bottom: 1px solid var(--orange);
  padding-bottom: 4px;
}

.information-panel h1 { font-size: 2em; margin-top: 0; }
.information-panel h2 { font-size: 1.4em; }

.information-panel a            { color: var(--orange); }
.information-panel a:hover      { color: var(--dark-orange); }

.information-panel code {
  background: rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.15);
  padding: 0 4px;
  font-size: 0.9em;
  border-radius: 2px;
}

.information-panel pre {
  background: #1e1e1e;
  border-left: 4px solid var(--orange);
  border-radius: 0 3px 3px 0;
  padding: 14px;
  overflow-x: auto;
  margin: 1em 0;
}

.information-panel pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--beige);
  font-size: 0.88em;
}

.information-panel blockquote {
  border-left: 4px solid var(--orange);
  margin-left: 0;
  padding: 8px 16px;
  color: #666;
  background: rgba(0,0,0,0.05);
  font-style: italic;
}

.information-panel img { max-width: 100%; }

/* ── Gold border accent ────────────────── */

.gold-border {
  border-top: 5px solid var(--gold);
  border-bottom: 5px solid var(--gold);
}

/* ── Section header label ──────────────── */

.section-label {
  font-family: 'Russo One', sans-serif;
  font-size: 1.1em;
  color: var(--beige);
  border-bottom: 2px solid var(--gold);
  margin-bottom: 1em;
  padding-bottom: 4px;
  letter-spacing: 1px;
}

/* ── Post list ─────────────────────────── */

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

.post-list li {
  padding: 10px 0;
  border-bottom: 1px dashed #bbb;
}

.post-list li:last-child { border-bottom: none; }

.post-date {
  font-size: 0.8em;
  color: #7a5030;
}

.post-title a {
  color: var(--dark-orange);
  font-weight: bold;
  text-decoration: none;
  font-size: 1.05em;
}

.post-title a:hover { color: var(--orange); text-decoration: underline; }

.post-desc {
  color: #555;
  font-size: 0.9em;
}

/* ── Post page ─────────────────────────── */

.post-meta {
  font-size: 0.82em;
  color: #7a5030;
  border-bottom: 1px dashed #bbb;
  padding-bottom: 8px;
  margin-bottom: 1.2em;
}


.back-link {
  display: inline-block;
  margin-bottom: 1.2em;
  font-size: 0.9em;
  color: var(--orange);
  text-decoration: none;
  font-family: 'Russo One', sans-serif;
}

.back-link:hover { color: var(--dark-orange); }

/* ── Home intro (panel left, mascot right) */
/* Matches Bootstrap col-md-offset-1 + col-md-6 + col-md-4 */

.home-intro {
  display: flex;
  align-items: flex-start;
  margin-left: 8.33%;
  margin-right: 8.33%;
}

.home-intro-text {
  width: 60%;         /* col-md-6 of the 83% content area = 50% of page */
  flex-shrink: 0;
  padding-right: 15px;
  margin-bottom: 0;
}

.home-intro-mascot {
  width: 40%;         /* col-md-4 of the 83% content area = 33% of page */
  flex-shrink: 0;
  padding-left: 15px;
}

.home-intro-mascot img {
  width: 100%;
  display: block;
}

@media screen and (max-width: 768px) {
  .home-intro {
    flex-direction: column;
    margin-left: 0;
    margin-right: 0;
  }
  .home-intro-text  { width: 100%; padding-right: 0; }
  .home-intro-mascot {
    width: 60%;
    margin: 1em auto 0;
    padding-left: 0;
  }
}

/* ── "All posts" link ──────────────────── */

.all-posts-link {
  display: block;
  margin-top: 1em;
  font-family: 'Russo One', sans-serif;
  color: var(--orange);
  text-decoration: none;
}

.all-posts-link:hover { color: var(--dark-orange); }

/* ── Links list ────────────────────────── */

.links-list {
  list-style: none;
  padding: 0;
}

.links-list li {
  padding: 10px 0;
  border-bottom: 1px dashed #bbb;
}

.links-list li:last-child { border-bottom: none; }

/* ── Footer ────────────────────────────── */

.footer-credit {
  background-color: var(--orange);
  color: var(--beige);
  padding: 1em 2em;
  text-align: center;
  font-family: 'Oxygen', sans-serif;
  font-size: 0.88em;
}

.footer-credit a {
  color: var(--beige);
  text-decoration: none;
}

.footer-credit a:hover { color: var(--maroon); }

/* ── Responsive ────────────────────────── */

@media screen and (max-width: 768px) {
  .navigation-bar {
    float: none;
    width: 100%;
    height: auto;
    padding: 0.4em 1em;
    border-left: none;
    border-bottom: 3px solid black;
    border-radius: 0;
    flex-wrap: wrap;
    gap: 0;
  }

  .navigation-bar a {
    display: block;
    padding: 0.4em 0.6em;
    width: 100%;
  }

}
