/* d33znu75 Diaries - Gothic Dark Red & Black Design */

@import url('https://fonts.googleapis.com/css2?family=Cardo:wght@400;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  background-image: url('../assets/background2.png');
  background-attachment: fixed;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: #000000;
  color: #e0e0e0;
  font-family: 'Cardo', 'Georgia', serif;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

a {
  color: #ffffff;
  text-decoration: underline;
}

a:visited {
  color: #ffffff;
}

a:hover {
  color: #ffffff;
}

a:active {
  color: #ff0000;
}

/* Header - Simple title only */
header {
  background: none;
  border: none;
  padding: 10px 20px;
  text-align: center;
  margin: 20px auto;
  box-shadow: none;
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  z-index: 1000;
  width: 100%;
  max-width: 900px;
  border: 3px solid;
  border-color: #c0c0c0 #808080 #808080 #c0c0c0;
  box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #000000, 0 2px 4px rgba(192, 192, 192, 0.5);
  background-image: url('../assets/texture.png');
  background-size: auto;
  background-repeat: repeat;
}

/* Frame corners - top left header */
header::before {
  content: '';
  position: absolute;
  width: 60px;
  height: 60px;
  background-image: url('../assets/frame\ corner.png');
  background-size: contain;
  background-repeat: no-repeat;
  top: -10px;
  left: -8px;
  transform: rotate(0deg);
  z-index: 10;
}

/* Frame corners - top right header */
header::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 60px;
  background-image: url('../assets/frame\ corner.png');
  background-size: contain;
  background-repeat: no-repeat;
  top: -10px;
  right: -10px;
  transform: rotate(90deg);
  z-index: 10;
}

h1 {
  display: none;
}

header img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.tagline {
  display: none;
}

/* Navigation - Now a section like other sections */
nav,
.nav-section {
  position: relative;
  left: auto;
  top: auto;
  width: 100%;
  max-width: 902px;
  height: auto;
  padding: 15px 25px;
  background: rgba(10, 10, 10, 0.9);
  background-image: url('../assets/texture2.png');
  background-size: auto;
  background-repeat: repeat;
  border: 3px solid;
  border-color: #c0c0c0 #808080 #808080 #c0c0c0;
  box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #000000, 0 2px 4px rgba(192, 192, 192, 0.5);
  overflow-y: visible;
  z-index: 999;
  margin: 20px auto;
  text-align: center;
}

/* Frame corners - top left nav */
nav::before,
nav.nav-section::before {
  content: '';
  position: absolute;
  width: 60px;
  height: 60px;
  background-image: url('../assets/frame\ corner.png');
  background-size: contain;
  background-repeat: no-repeat;
  top: -10px;
  left: -8px;
  transform: rotate(0deg);
  z-index: 10;
}

/* Frame corners - top right nav */
nav::after,
nav.nav-section::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 60px;
  background-image: url('../assets/frame\ corner.png');
  background-size: contain;
  background-repeat: no-repeat;
  top: -10px;
  right: -10px;
  transform: rotate(90deg);
  z-index: 10;
}

/* Frame corners - bottom left nav - DISABLED
nav a:last-child::before {
  content: '';
  position: fixed;
  width: 60px;
  height: 60px;
  background-image: url('../assets/frame\ corner.png');
  background-size: contain;
  background-repeat: no-repeat;
  bottom: 80px;
  left: -5px;
  transform: rotate(270deg);
  z-index: 10;
}
*/

/* Frame corners - bottom right nav - DISABLED
nav a:last-child::after {
  content: '';
  position: fixed;
  width: 60px;
  height: 60px;
  background-image: url('../assets/frame\ corner.png');
  background-size: contain;
  background-repeat: no-repeat;
  bottom: 80px;
  right: auto;
  left: 146px;
  transform: rotate(180deg);
  z-index: 10;
}
*/

nav a {
  display: inline-block;
  margin: 5px 10px;
  padding: 10px 15px;
  background: linear-gradient(to bottom, #000000e0, #1d1d1de0);
  color: #ffffff;
  text-decoration: none;
  border: 2px solid #240000;
  border-radius: 3px;
  font-weight: bold;
  font-size: 14px;
  transition: all 0.2s;
  text-align: center;
  font-family: 'Arial', sans-serif;
  position: relative;
}

nav a:hover {
  background: linear-gradient(to bottom, #410000, #420000);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(139, 0, 0, 0.5);
}

/* Container for content - right side */
.container {
  margin-left: auto;
  margin-right: auto;
  margin-top: 0;
  margin-bottom: 80px;
  width: 100%;
  max-width: 900px;
  position: relative;
  min-height: auto;
}

/* Main content wrapper - no frame corners on container */

/* Blog list positioning */
.blog-list {
  position: relative;
}

/* Grey frame styling for corners */
.writeup,
.featured-section,
.homepage-intro,
#about {
  position: relative;
  border: 3px solid;
  border-color: #c0c0c0 #808080 #808080 #c0c0c0;
  background: rgba(10, 10, 10, 0.9);
  box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #000000, 0 2px 4px rgba(192, 192, 192, 0.5);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Frame corners - top left */
.featured-section::before,
.homepage-intro::before {
  content: '';
  position: absolute;
  width: 60px;
  height: 60px;
  background-image: url('../assets/frame\ corner.png');
  background-size: contain;
  background-repeat: no-repeat;
  top: -8px;
  left: -9px;
  transform: rotate(0deg);
  z-index: 10;
}

/* Frame corners - bottom left for homepage-intro
.homepage-intro h2::before {
    content: '';
    position: fixed;
    width: 60px;
    height: 60px;
    background-image: url('../assets/frame\ corner.png');
    background-size: contain;
    background-repeat: no-repeat;
    bottom: 34px;
    left: 804px;
    transform: rotate(270deg);
    z-index: 10;
} */

/* Frame corners - top right */
.featured-section::after,
.homepage-intro::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 60px;
  background-image: url('../assets/frame\ corner.png');
  background-size: contain;
  background-repeat: no-repeat;
  top: -8px;
  right: -10px;
  transform: rotate(90deg);
  z-index: 10;
}

/* Frame corners - bottom right for homepage-intro
.homepage-intro h2::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 60px;
  background-image: url('../assets/frame\ corner.png');
  background-size: contain;
  background-repeat: no-repeat;
  bottom: -151px;
  right: -34px;
  transform: rotate(180deg);
  z-index: 10;
} */

/* Homepage intro */
.homepage-intro {
  padding: 25px;
  margin: 20px 0;
  position: relative;
  display: flex;
  gap: 30px;
  background-image: url('../assets/texture.png');
  background-size: auto;
  background-repeat: repeat;
}

/* Homepage-only: plain black welcome section */
.homepage-intro.homepage-intro-plain {
  background: #000000;
  background-image: none;
}

.homepage-intro-left {
  width: 180px;
  display: flex;
  align-items: center;
}

.homepage-intro-avatar {
  width: 180px;
  height: 180px;
  border-radius: 8px;
  border: 2px solid #8b0000;
  overflow: hidden;
  margin-bottom: 15px;
  background-color: #000000;
}

.homepage-intro-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.homepage-intro-name {
  color: #8b0000;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  text-shadow: 2px 2px 4px #000000;
  font-family: 'Cardo', serif;
}

.homepage-intro-right {
  flex-grow: 1;
}

.homepage-intro h2 {
  color: #8b0000;
  font-size: 28px;
  margin-bottom: 15px;
  margin-top: 0;
  text-shadow: 2px 2px 4px #000000;
  font-family: 'UnifrakturMaguntia', serif;
  border-bottom: 2px solid #8b0000;
  padding-bottom: 10px;
  position: relative;
  text-align: center;
}

.homepage-intro p {
  color: #e0e0e0;
  line-height: 1.8;
  margin-bottom: 12px;
  font-size: 14px;
}

/* Featured section with frame corners */
.featured-section {
  padding: 25px;
  margin: 30px 0;
  position: relative;
}

/* Top-left corner of featured-section */
.featured-section::before {
  content: '';
  position: absolute;
  width: 60px;
  height: 60px;
  background-image: url('../assets/frame\ corner.png');
  background-size: contain;
  background-repeat: no-repeat;
  top: -8px;
  left: -9px;
  transform: rotate(0deg);
  z-index: 10;
}

/* Top-right corner of featured-section */
.featured-section::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 60px;
  background-image: url('../assets/frame\ corner.png');
  background-size: contain;
  background-repeat: no-repeat;
  top: -8px;
  right: -10px;
  transform: rotate(90deg);
  z-index: 10;
}

/* Bottom corners using box-shadow trick - add to blog-list
.featured-section .blog-list::before {
  content: '';
  position: absolute;
  width: 60px;
  height: 60px;
  background-image: url('../assets/frame\ corner.png');
  background-size: contain;
  background-repeat: no-repeat;
  bottom: -55px;
  left: -34px;
  transform: rotate(270deg);
  z-index: 10;
} */

/* .featured-section .blog-list::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 60px;
  background-image: url('../assets/frame\ corner.png');
  background-size: contain;
  background-repeat: no-repeat;
  bottom: -55px;
  right: -34px;
  transform: rotate(180deg);
  z-index: 10;
} */

.featured-section h2 {
  color: #e0e0e0;
  font-size: 28px;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px #000000;
  font-family: 'Cardo', serif;
  border-bottom: 2px solid #c0c0c0;
  padding-bottom: 10px;
}

/* Blog list / Featured articles grid */
.blog-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 20px;
  position: relative;
}

.blog-card {
  background: linear-gradient(to bottom, #1a0000, #0f0000);
  border: 2px solid #8b0000;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 0 10px rgba(139, 0, 0, 0.4);
  display: flex;
  /* flex-direction: row-reverse;
  height: 220px; */
}

.blog-card:hover {
  background: linear-gradient(to bottom, #330000, #1a0000);
  border-color: #ffffff;
  box-shadow: 0 0 20px rgba(139, 0, 0, 0.6);
  transform: scale(1.02);
}

.blog-card-thumbnail {
  width: 260px;
  /* height: 100%; */
  overflow: hidden;
  /* background-color: #000000; */
  border-left: 2px solid #8b0000;
  flex-shrink: 0;
  object-fit: cover;
}

.blog-card-thumbnail img {
  width: 100%;
  height: 100%;
  transition: transform 0.3s;
}

.blog-card:hover .blog-card-thumbnail img {
  transform: scale(1.08);
}

.blog-card-content {
  padding: 15px;
  background-image: url('../assets/texture.png');
  background-size: auto;
  background-repeat: repeat;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.blog-card h3 {
  color: #8b0000;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 5px;
  margin-top: 0;
  text-shadow: 1px 1px 2px #000000;
  font-family: 'UnifrakturMaguntia', serif;
}

.blog-card .date {
  color: #ffffff;
  font-size: 12px;
  margin-bottom: 8px;
  margin-top: 0;
  font-weight: bold;
  font-family: 'Courier New', monospace;
}

.blog-card p {
  color: #d0d0e0;
  font-size: 13px;
  margin-top: 0;
  margin-bottom: 0;
  line-height: 1.4;
  flex-grow: 1;
}

.blog-card .tags {
  margin-top: auto;
  padding-top: 8px;
  margin-bottom: 0;
}

.blog-card .tag {
  display: inline-block;
  background-color: #330000;
  color: #ffffff;
  padding: 3px 8px;
  margin: 3px 3px 0 0;
  font-size: 11px;
  border: 1px solid #8b0000;
  font-family: 'Arial', sans-serif;
}

/* Remove patchnotes section */
.patchnotes {
  display: none;
}

.divider {
  display: none;
}

/* Writeup page */
.writeup {
  padding: 30px;
  margin: 20px 0;
  position: relative;
}

.writeup h1 {
  color: #8b0000;
  font-size: 36px;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px #000000;
  font-family: 'UnifrakturMaguntia', serif;
  border-bottom: 3px solid #8b0000;
  padding-bottom: 15px;
}

.writeup-meta {
  background: rgba(0, 0, 0, 0.6);
  border-left: 4px solid #8b0000;
  padding: 12px;
  margin-bottom: 20px;
  color: #ffffff;
  font-size: 13px;
  font-family: 'Courier New', monospace;
}

.writeup-meta .tag {
  display: inline-block;
  background-color: #330000;
  color: #ffffff;
  padding: 3px 8px;
  margin: 4px 4px 0 0;
  font-size: 11px;
  border: 1px solid #8b0000;
}

.writeup h2 {
  color: #8b0000;
  font-size: 24px;
  margin-top: 25px;
  margin-bottom: 15px;
  border-bottom: 2px solid #8b0000;
  padding-bottom: 10px;
  text-shadow: 1px 1px 2px #000000;
  font-family: 'UnifrakturMaguntia', serif;
}

.writeup h3 {
  color: #8b0000;
  font-size: 18px;
  margin-top: 15px;
  margin-bottom: 10px;
  font-weight: bold;
  font-family: 'UnifrakturMaguntia', serif;
}

.writeup p {
  color: #e0e0e0;
  margin-bottom: 15px;
  line-height: 1.7;
}

.writeup ul,
.writeup ol {
  margin-left: 30px;
  margin-bottom: 15px;
}

.writeup li {
  color: #e0e0e0;
  margin-bottom: 8px;
}

.writeup code {
  background-color: #000000;
  color: #00ff00;
  padding: 3px 6px;
  border: 1px solid #004400;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  text-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
}

.writeup pre {
  background-color: #000000;
  border: 2px solid #8b0000;
  padding: 15px;
  overflow-x: auto;
  margin-bottom: 20px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  line-height: 1.4;
  box-shadow: inset 0 0 0 1px #330000;
}

.writeup pre code {
  color: #00ff00;
  background: transparent;
  border: none;
  padding: 0;
  text-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
}

.writeup blockquote {
  border-left: 4px solid #8b0000;
  padding-left: 15px;
  margin: 15px 0;
  color: #ffffff;
  font-style: italic;
  background: rgba(139, 0, 0, 0.15);
  padding: 15px;
}

.writeup a {
  color: #ffffff;
  text-decoration: underline;
}

.writeup a:visited {
  color: #ffffff;
}

.writeup a:hover {
  color: #ffffff;
}

.writeup img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border: 3px solid #8b0000;
  box-shadow: 0 0 15px rgba(139, 0, 0, 0.5);
  cursor: pointer;
  background-color: #000000;
  padding: 5px;
  transition: all 0.2s;
}

.writeup img:hover {
  border-color: #ffffff;
  box-shadow: 0 0 25px rgba(139, 0, 0, 0.8);
}

/* Lightbox Modal */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  overflow: auto;
}

.lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border: 4px solid #8b0000;
  box-shadow: 0 0 30px rgba(139, 0, 0, 0.8);
}

.lightbox-close {
  position: absolute;
  top: 15px;
  right: 25px;
  color: #8b0000;
  font-size: 44px;
  font-weight: bold;
  cursor: pointer;
  z-index: 2001;
  transition: color 0.2s;
  text-shadow: 1px 1px 3px #000000;
}

.lightbox-close:hover {
  color: #ffffff;
}

.lightbox-caption {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  color: #8b0000;
  font-size: 14px;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.95);
  padding: 10px 15px;
  border: 2px solid #8b0000;
  max-width: 80%;
  font-family: 'Arial', sans-serif;
}

/* Back button */
.back-button {
  display: inline-block;
  background: #1a0000;
  color: #ffffff;
  padding: 10px 20px;
  border: 2px solid #8b0000;
  text-decoration: none;
  font-weight: bold;
  margin-bottom: 20px;
  transition: all 0.2s;
  box-shadow: 0 0 10px rgba(139, 0, 0, 0.4);
  font-size: 13px;
  font-family: 'Arial', sans-serif;
  cursor: pointer;
}

.back-button:hover {
  background: #8b0000;
  color: #ffff00;
  box-shadow: 0 0 20px rgba(139, 0, 0, 0.6);
}

/* Footer */
footer {
  position: fixed;
  bottom: 0;
  left: -4px;
  right: 0;
  background: rgba(0, 0, 0, 0.9);
  border-top: 3px solid;
  border-color: #c0c0c0 #808080 #808080 #c0c0c0;
  padding: 15px;
  text-align: center;
  color: #ffffff;
  font-size: 12px;
  font-family: 'Courier New', monospace;
  box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #000000, 0 -2px 4px rgba(192, 192, 192, 0.5);
  z-index: 998;
}

footer p {
  margin: 5px 0;
}

/* About section */
#about {
  padding: 25px;
  margin: 30px 0;
  text-align: center;
}

#about h2 {
  color: #8b0000;
  font-size: 28px;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px #000000;
  font-family: 'UnifrakturMaguntia', serif;
  border-bottom: 2px solid #8b0000;
  padding-bottom: 10px;
}

#about p {
  color: #e0e0e0;
  font-size: 14px;
  margin-bottom: 10px;
  line-height: 1.6;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 14px;
}

::-webkit-scrollbar-track {
  background: #000000;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #8b0000, #330000);
  border: 1px solid #8b0000;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #cc0000, #8b0000);
}

/* Responsive */
@media (max-width: 768px) {
  nav {
    position: relative;
    width: 100%;
    height: auto;
    top: auto;
    left: auto;
    right: auto;
    border-right: none;
    border-bottom: 3px solid #8b0000;
    padding: 15px;
    margin-top: 0;
  }

  nav a {
    display: inline-block;
    margin: 5px;
  }

  .container {
    margin-left: 0;
    width: 100%;
    margin-top: 100px;
  }

  footer {
    margin-left: 0;
  }
}
