@import url('https://fonts.googleapis.com/css2?family=DotGothic16&family=Itim&family=Klee+One:wght@600&family=Mali:wght@500&family=Nunito:wght@700&display=swap');

::selection {
  background: #d95300;
  color: #ffffff;
}

::-moz-selection {
  background: #d95300;
  color: #ffffff;
}

@font-face {
  font-family: 'MSGothicWeb';
  src: local('MS Gothic'), local('MS PGothic'), url('../fonts/MS Gothic.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body, button, input, textarea, select {
  font-family: 'MSGothicWeb', "MS Gothic", "MS PGothic", "Osaka", "MS UI Gothic", "Tahoma", "Verdana", sans-serif !important;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: grayscale;
  font-smooth: never;
  text-rendering: optimizeSpeed;
}

html {
  min-height: 100vh;
  cursor: url('../assets/hatchet.webp'), default !important;
}

*, *:hover, *:active, *:focus, *:focus-within {
  cursor: url('../assets/hatchet.webp'), default !important;
}

body {
  background-image: url('../assets/junkyard-day.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  margin: 0;
  padding: 0;
  color: #d95300;
}

#container {
  width: 850px;
  margin: 0 auto;
  min-height: 100vh;
  background-color: rgba(255, 255, 255, 0.85);
  border-left: 2px solid #d95300;
  border-right: 2px solid #d95300;
  box-shadow: 10px 10px 0px rgba(0,0,0,0.3);
  background-image: linear-gradient(rgba(217, 83, 0, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(217, 83, 0, 0.08) 1px, transparent 1px);
  background-size: 3px 3px;
  display: flex;
  flex-direction: column;
}

#banner {
  height: 180px;
  border-bottom: 2px solid #d95300;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;

  @font-face {
    font-family: 'Aribau Rounded';
    src: local('Aribau Rounded'),
    url('../fonts/AribauRounded.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
  }

}

#banner::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('../banner/header.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: 1;
}

#banner::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('../banner/rena-header-top.webp');
  background-size: cover;
  background-position: center;
  opacity: 1;
  z-index: 2;
}

#banner-text {
  position: relative;
  z-index: 3;
  padding-left: 30px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.1) 100%);
  padding-right: 20px;
  border-radius: 0 10px 10px 0;
}

#banner-text h1 {
  font-family: 'Nunito', sans-serif !important;
  font-size: 34px;
  margin: 0;
  letter-spacing: 2px;
  text-transform: lowercase;
  color: #d95300;
  text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.9);
}

#flex-wrapper {
  display: flex;
  padding: 20px;
  gap: 20px;
  flex: 1;
}

#sidebar {
  width: 170px;
  flex-shrink: 0;
}

.nav-title {
  background: linear-gradient(180deg, #ff8800 0%, #d95300 100%);
  color: white;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: bold;
  text-align: center;
  text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.2);
}

.nav-item {
  display: block;
  border: 1px solid #d95300;
  border-top: none;
  padding: 8px;
  text-decoration: none;
  color: #d95300;
  font-size: 13px;
  background-color: #ffffff;
  transition: 0.1s;
}

.nav-item:hover {
  background-color: #d95300;
  color: #ffffff;
  padding-left: 12px;
}

#profile-box {
  margin-top: 20px;
  border: 1px dashed #d95300;
  padding: 10px;
  min-height: 80px;
  background: rgba(255, 255, 255, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
}

#profile-box img {
  width: 80px;
  height: 28px;
  display: block;
}

#main-content {
  flex: 1;
  min-width: 0;
}

.welcome-box {
  border: 1px solid #d95300;
  margin-bottom: 20px;
  background: white;
}

.box-header {
  background: linear-gradient(180deg, #ff8800 0%, #d95300 100%);
  color: white;
  padding: 5px 10px;
  font-weight: bold;
  font-size: 14px;
  text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.2);
}

.box-body {
  padding: 15px;
  font-size: 13px;
  line-height: 1.6;
  text-align: justify;
  color: #333;
}

.reading-box .box-body, .contact-box .box-body {
  padding: 5px 15px;
}

.reading-box p, .contact-box p {
  margin: 5px 0;
}

.contact-box a,
.reading-box a,
.contact-box a:visited,
.reading-box a:visited {
  color: #d95300;
  text-decoration: underline;
}

.entry {
  border: 1px solid #d95300;
  background: #fff;
  margin-bottom: 20px;
}

.entry-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  background: linear-gradient(180deg, #ffffff 0%, #ffecd9 100%);
  padding: 5px 15px;
  border-bottom: 1px solid #d95300;
}

.entry-meta {
  font-size: 11px;
  color: #d95300;
}

.entry-title {
  font-size: 16px;
  margin: 0;
  font-weight: bold;
  color: #d95300;
}

.entry-body {
  padding: 10px 15px;
  line-height: 1.5;
  color: #000;
  font-size: 14px;
  text-align: justify;
}

.entry-body p {
  margin: 0 0 8px 0;
}

.entry-body p:last-child {
  margin-bottom: 0;
}

#footer {
  border-top: 1px solid #d95300;
  padding: 10px 20px;
  font-size: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'DotGothic16', sans-serif !important;
}

#footer a {
  color: #d95300;
  text-decoration: none;
  font-weight: bold;
  font-family: 'DotGothic16', sans-serif !important;
}

.debian-red {
  color: #ff0055 !important;
}

#scrobble-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 10px 15px;
}

#scrobble-text {
  flex: 1;
}

#scrobble-text p {
  margin: 0;
}

#scrobble-art {
  width: 64px;
  height: 64px;
  border: 1px solid #d95300;
  box-shadow: 2px 2px 0px rgba(217, 83, 0, 0.2);
}

#gb-submit {
  background: linear-gradient(180deg, #ff8800 0%, #d95300 100%) !important;
  color: white !important;
  border: 1px solid #a64000 !important;
  text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

#gb-submit:hover {
  background: linear-gradient(180deg, #d95300 0%, #a64000 100%) !important;
}

#counter-box {
  margin-top: 20px;
  border: 1px dashed #d95300;
  padding: 10px;
  background: rgba(255, 255, 255, 0.6);
  text-align: center;
}

.counter-title {
  font-size: 10px;
  font-weight: bold;
  color: #d95300;
  text-transform: uppercase;
  margin-bottom: 5px;
  letter-spacing: 1px;
}

#hit-count {
  font-family: 'Itim', cursive !important;
  background: #2e1500;
  color: #ffaa55;
  font-size: 18px;
  font-weight: bold;
  padding: 4px 10px;
  border: 2px solid #d95300;
  border-radius: 8px;
  letter-spacing: 3px;
  display: inline-block;
  box-shadow: 2px 2px 0px rgba(217, 83, 0, 0.2);
}

#button-zone {
  width: 100%;
  text-align: center;
  padding: 15px 0;
  box-sizing: border-box;
  clear: both;
}

#button-zone a {
  display: inline-block;
  margin: 0 4px;
}

#button-zone img {
  width: 88px;
  height: 31px;
  image-rendering: pixelated;
  border: 1px solid #d95300;
  transition: opacity 0.2s;
}

#button-zone img:hover {
  opacity: 0.8;
}

#dashboard-link {
  text-align: center;
  padding: 6px;
  font-size: 11px;
}

#dashboard-link a {
  color: #d95300;
  text-decoration: none;
  opacity: 0.4;
}

#dashboard-link a:hover {
  opacity: 1;
}

body.night-theme {
  color: #003366;
  background-image: url('../assets/furude-shrine-night.webp');
}

body.night-theme ::selection {
  background: #0055aa;
  color: #ffffff;
}

body.night-theme ::-moz-selection {
  background: #0055aa;
  color: #ffffff;
}

body.night-theme #container {
  border-color: #003366;
  background-image: linear-gradient(rgba(0, 51, 102, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 51, 102, 0.08) 1px, transparent 1px);
}

body.night-theme #banner {
  border-bottom-color: #003366;
}

body.night-theme #banner-text h1 {
  color: #003366;
  text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.6);
}

body.night-theme .nav-title, body.night-theme .box-header {
  background: linear-gradient(180deg, #0055aa 0%, #003366 100%);
}

body.night-theme .nav-item {
  border-color: #003366;
  color: #003366;
}

body.night-theme .nav-item:hover {
  background-color: #003366;
  color: #ffffff;
}

body.night-theme #profile-box, body.night-theme .welcome-box, body.night-theme .entry {
  border-color: #003366;
}

body.night-theme .contact-box a,
body.night-theme .reading-box a,
body.night-theme .contact-box a:visited,
body.night-theme .reading-box a:visited {
  color: #0055aa;
}

body.night-theme .entry-header {
  background: linear-gradient(180deg, #ffffff 0%, #e6f0ff 100%);
  border-bottom-color: #003366;
}

body.night-theme .entry-meta, body.night-theme .entry-title {
  color: #003366;
}

body.night-theme #footer {
  border-top-color: #003366;
}

body.night-theme #footer a {
  color: #003366;
}

body.night-theme #scrobble-art {
  border-color: #003366;
  box-shadow: 2px 2px 0px rgba(0, 51, 102, 0.2);
}

body.night-theme #gb-submit {
  background: linear-gradient(180deg, #0055aa 0%, #003366 100%) !important;
  border-color: #002244 !important;
}

body.night-theme #gb-submit:hover {
  background: linear-gradient(180deg, #003366 0%, #002244 100%) !important;
}

body.night-theme #counter-box {
  border-color: #0055aa;
  background: rgba(0, 51, 102, 0.1);
}

body.night-theme .counter-title {
  color: #003366;
}

body.night-theme #hit-count {
  background: #001122;
  color: #88ccff;
  border-color: #0055aa;
  box-shadow: 2px 2px 0px rgba(0, 51, 102, 0.2);
}

body.night-theme .moe-deco {
  color: #0055aa;
}

body.night-theme .counter-sub {
  color: #003366;
}

body.night-theme #banner::after {
  background-image: url('../banner/rika-header-top.webp');
}

body.night-theme .welcome-box form {
  border-top-color: #003366 !important;
}

body.night-theme #gb-name, body.night-theme #gb-message {
  border-color: #003366 !important;
  background-color: #f4f8ff !important;
  color: #003366 !important;
}

body.night-theme #button-zone img {
  border-color: #003366;
}

body.night-theme #dashboard-link a {
  color: #003366;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 20px 0;
  clear: both;
}

.pagination a {
  display: inline-block;
  font-family: 'Itim', cursive !important;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  padding: 4px 12px;
  background-color: #ffffff;
  color: #d95300;
  border: 2px solid #d95300;
  border-radius: 4px;
  box-shadow: 2px 2px 0px rgba(217, 83, 0, 0.2);
  transition: all 0.1s;
}

.pagination a:hover, .pagination a.active {
  background: linear-gradient(180deg, #ff8800 0%, #d95300 100%);
  color: #ffffff;
  text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.2);
}

.pagination a:active {
  box-shadow: none;
  transform: translateY(2px) translateX(2px);
}

body.night-theme .pagination a {
  background-color: #f4f8ff;
  color: #003366;
  border-color: #003366;
  box-shadow: 2px 2px 0px rgba(0, 51, 102, 0.2);
}

body.night-theme .pagination a:hover, body.night-theme .pagination a.active {
  background: linear-gradient(180deg, #0055aa 0%, #003366 100%);
  color: #ffffff;
}

.stats-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  overflow-x: auto;
  padding: 5px;
}

.stats-wrapper pre {
  font-family: "Courier New", Courier, monospace !important;
  font-size: 12px;
  line-height: 1.2;
  margin: 0;
  white-space: pre;
  cursor: text !important;
}

#debian-ascii {
  font-weight: bold;
}

body.night-theme #neofetch-stats {
  color: #003366;
}

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

@media (max-width: 900px) {
  #container {
    width: 100%;
    border-left: none;
    border-right: none;
    box-shadow: none;
  }
}

@media (max-width: 600px) {
  #banner {
    height: 120px;
  }

  #banner-text h1 {
    font-size: 22px;
  }

  #flex-wrapper {
    flex-direction: column;
    padding: 10px;
    gap: 10px;
  }

  #sidebar {
    width: 100%;
  }

  #counter-box {
    margin-top: 10px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }

  #profile-box {
    min-height: auto;
  }

  .nav-item {
    padding: 10px 8px;
    font-size: 14px;
  }

  .box-body {
    font-size: 12px;
    padding: 10px;
  }

  .entry-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .entry-title {
    font-size: 14px;
  }

  #scrobble-container {
    flex-direction: column;
    align-items: flex-start;
  }

  #scrobble-art {
    width: 48px;
    height: 48px;
  }

  #footer {
    flex-direction: column;
    text-align: center;
    gap: 4px;
    font-size: 9px;
  }

  #button-zone img {
    width: 66px;
    height: 23px;
  }

  .pagination a {
    font-size: 13px;
    padding: 4px 8px;
  }

  #gb-name, #gb-message {
    font-size: 16px;
  }
}