/* =====================================================
   FONDO BLOG
===================================================== */

.blog-body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

.blog-body::before {
  content: "";
  position: fixed;
  inset: 0;

  background: url('../imgs/blog/blog-bg.png') center center no-repeat;
  background-size: cover;

  z-index: -1;
}

/* =====================================================
   LAYOUT MYSPACE
===================================================== */

.myspace-layout {
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  gap: 10px;
  padding: 10px;
  max-width: 1200px;
  margin: 0 auto;
}

.half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 100%;
}

/* =====================================================
   SIDEBARS
===================================================== */

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ascii-art {
  font-family: "Courier New", monospace;
  font-size: 0.5em;
  line-height: 1.2em;
  white-space: pre;
}

/* =====================================================
   CONTENIDO CENTRAL
===================================================== */

.content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* =====================================================
   CAJAS
===================================================== */

.box {
  background: #ededed;
  border: 1px solid #000;
  padding: 10px;
}

.box h2 {
  font-size: 1.4rem;
}

.box h3 {
  font-size: 1.2rem;
}

.box.box-2 {
    background: #000000;
    border-color: #ffffff;
    color: white;
}

.box-2 h2 {
    color: #ff238b;
    margin-bottom: 0;
}

.box.archive a,
.box.links a {
  font-size: 0.9rem;
}

.box.archive ul,
.box.links ul {
    margin-bottom: 0;
}

.box img {
  max-width: 100%;
  height: auto;
}

.center {
  text-align: center;
}

/* =====================================================
   POSTS
===================================================== */

.blog-post-box {
  background: rgba(220, 220, 220, 0.9);
  padding: 20px;
  margin-bottom: 30px;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.blog-post-box:target {
  outline: 2px dashed #aaa;
}

/* =====================================================
   HEADER DE POSTS
===================================================== */

.post-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.post-header small {
  white-space: nowrap;
  text-align: right;
}

/* =====================================================
   TEXTO AUXILIAR
===================================================== */

.myspace-layout .p1 {
  font-size: 0.8em;
  line-height: 1.3em;
  margin-bottom: 0;
}

.myspace-layout .p2 {
  font-size: 0.88em;
  line-height: 1.5em;
  margin-bottom: 1em;
}

.box h4 {
  text-transform: uppercase;
  font-size: 0.67em;
  font-weight: bolder;
  display: table-caption;
  margin-bottom: 1em;
  line-height: 1.2em;
  letter-spacing: 0.5em;
}

/* =====================================================
   LINKS SIDEBAR
===================================================== */

.sidebar a {
  text-decoration: none;
}

.sidebar a:hover {
  text-decoration: underline;
}

.emo-imgs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex-direction: column;
  align-items: center;
}

/* =====================================================
   DETAILS
===================================================== */

details summary {
  cursor: pointer;
  font-weight: bold;
}

/* =====================================================
   TOPBAR
===================================================== */

.topbar {
  width: 100%;
}

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-inner.box-2 {
    margin: 0.7em;
}

/* =====================================================
   BOTONES HEADER
===================================================== */

.top-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
}

.top-links a {
  display: inline-block;
  padding: 0px 5px;

  background: #f5f5f5;

  text-decoration: none;
  font-size: 0.9rem;

  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #666;
  border-bottom: 2px solid #666;
}

.top-links a:hover {
  background: #eaeaea;
}

.top-links a:active {
  border-top: 2px solid #666;
  border-left: 2px solid #666;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;

  transform: translate(1px, 1px);
}

/* LOGO */

.logo {
  display: flex;
  gap: 10px;
  align-items: center;
}

.logo h1 {
  font-size: 1.5rem;
  margin: 0;
  color: #ff238b;
}

.logo img {
  height: 30px;
}

/* =====================================================
   IMÁGENES AUXILIARES
===================================================== */

.pfp-img {
  width: 100%;
}

/* =====================================================
   RESPONSIVE LAYOUT (asides abajo)
===================================================== */

@media (max-width: 768px) {

  .topbar-inner {
    flex-direction: column;
    gap: 10px;
  }

  .logo {
    justify-content: center;
    width: 100%;
  }

  .myspace-layout {
    display: flex;
    flex-direction: column;
  }

  .content {
    order: 1;
  }

  .sidebar.left {
    order: 2;
  }

  .sidebar.right {
    order: 3;
  }

  .pfp-img {
    max-width: 200px !important;
    margin: 0 auto;
    display: block;
  }

  .emo-imgs img {
    max-width: 250px;
  }

}