/* blog.css — Blog page styles */

/* Layer stack:
   -1 — body background image (sunset photo)
   0  — #bg-canvas (decorative 3D layer)
   1  — page content
   100 — #transition-overlay
*/

body {
  background-color: #000;
  background-image: url('../../3dmodels/IMG_20220702_214248_1.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #fff;
}

/* Dark overlay on body so text stays readable over the photo */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 0;
  pointer-events: none;
}

/* 3D model viewer container */
#model-viewer {
  position: fixed;
  right: 32rem;
  top: 50%;
  transform: translateY(-50%);
  width: 340px;
  height: 460px;
  z-index: 2;
  border-radius: 14px;
  background: transparent;
  border: 1px solid rgba(11, 21, 22, 0.22);
  backdrop-filter: blur(2ppx);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  pointer-events: none;
}


/* Canvas fills the container */
#bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Corner accent pieces */
.model-viewer-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  z-index: 10;
  border-color: rgba(206, 66, 101, 0.7);
  border-style: solid;
}
.model-viewer-corner.tl { top: 8px; left: 8px;  border-width: 1px 0 0 1px; border-radius: 3px 0 0 0; }
.model-viewer-corner.tr { top: 8px; right: 8px; border-width: 1px 1px 0 0; border-radius: 0 3px 0 0; }
.model-viewer-corner.bl { bottom: 8px; left: 8px;  border-width: 0 0 1px 1px; border-radius: 0 0 0 3px; }
.model-viewer-corner.br { bottom: 8px; right: 8px; border-width: 0 1px 1px 0; border-radius: 0 0 3px 0; }

/* Floating "3D" badge */
.model-viewer-label {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: #e0510fb3;
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  z-index: 10;
  text-transform: uppercase;
}

@media (max-width: 860px) {
  #model-viewer {
    width: 220px;
    height: 300px;
    right: 1rem;
  }
}

#transition-overlay {
  position: fixed;
  inset: 0;
  background: #000000;
  opacity: 1;
  transition: opacity 0.6s ease;
  z-index: 100;
  pointer-events: none;
}

.top-banner,
nav,
main,
footer {
  position: relative;
  z-index: 2;
}

/* Blog feed — anchored to the left */
.blog-feed {
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin: 2rem 0 2rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.blog-entry {
  background: rgba(21, 20, 21, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 1.4rem 1.6rem;
  backdrop-filter: blur(6px);
}

.entry-date {
  display: block;
  font-size: 0.75rem;
  opacity: 0.5;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.entry-title {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  font-weight: 700;
}

.entry-body p {
  font-size: 0.95rem;
  line-height: 1.7;
  opacity: 0.85;
}
