/*
Theme Name: Bootstrap Masonry
Version: 1.0
*/

/* =========================================================
   GLOBAL STYLES
========================================================= */

body {
  margin: 0;
  background: #ff2f92;
  font-family: 'Raleway', sans-serif;
}

/* =========================================================
   SITE WRAP
========================================================= */

.site-wrap {
  max-width: 1500px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* =========================================================
   NAVBAR
========================================================= */

.site-navbar {
  background: transparent;
  padding-top: 2.5rem;
}

.site-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  padding-bottom: 0.5rem;
}

/* =========================================================
   BRAND
========================================================= */

.site-navbar .navbar-brand {
  font-family: 'Borel', cursive;
  font-size: 3rem;
  line-height: 1.1;
  margin: 0;
  padding: 0;
  color: #fff;
  text-decoration: none;
}

.navbar-page-title {
  margin-left: 0.25em;
}

.navbar-brand-link {
  color: #fff;
  text-decoration: none;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

.navbar-brand-link:hover,
.navbar-brand-link:focus {
  color: #fff;
  opacity: 0.75;
}

/* =========================================================
   BURGER (always visible)
========================================================= */

.site-navbar .navbar-toggler {
  background: none;
  border: 0;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
}

.site-navbar .navbar-toggler:focus {
  box-shadow: none;
  outline: none;
}

.site-navbar .navbar-toggler-icon {
  display: block;
  width: 1.5em;
  height: 1.5em;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
}

/* =========================================================
   OFF-CANVAS MENU
========================================================= */

.site-offcanvas {
  background: #ff2f92;
  border-left: none;
}

.site-offcanvas .offcanvas-header {
  padding: 1.5rem 1.5rem 0;
}

.site-offcanvas .offcanvas-title {
  font-family: 'Borel', cursive;
  font-size: 2rem;
  color: #fff;
}

.site-offcanvas .offcanvas-body {
  padding: 1.5rem;
}

.site-offcanvas .navbar-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-offcanvas .nav-item {
  margin-bottom: 0.25rem;
}

.site-offcanvas .nav-link {
  font-family: 'Borel', cursive;
  font-size: 1.5rem;
  line-height: 1.4;
  color: #fff;
  padding: 0.4rem 0;
  display: block;
  text-decoration: none;
}

.site-offcanvas .nav-link:hover,
.site-offcanvas .nav-link:focus {
  opacity: 0.75;
}

.site-offcanvas .current-menu-item .nav-link {
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

/* =========================================================
   RESPONSIVE BRAND
========================================================= */

@media (max-width: 991px) {
  .site-navbar .navbar-brand {
    font-size: 2.2rem;
    line-height: 1.2;
  }

  .navbar-page-title {
    display: none;
  }
}

/* =========================================================
   MAIN CONTENT SPACING
========================================================= */

main.site-wrap {
  padding-top: 0;
}

/* =========================================================
   TILES
========================================================= */

.tile {
  display: block;
  position: relative;
  overflow: hidden; /* REQUIRED */
  border-radius: 1.25rem;
}

.tile img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 1.25rem;
  transition: transform 0.4s ease;
}

.tile:hover img {
  transform: scale(1.08);
}

/* =========================================================
   TILE OVERLAY
========================================================= */

.tile-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 1.25rem;
  padding: 1.5rem;

  color: #fff;
  font-family: 'Borel', cursive;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.02em;

  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.tile:hover .tile-overlay,
.tile.active .tile-overlay {
  opacity: 1;
}

.tile-overlay-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.tile-overlay-excerpt {
  font-family: 'Raleway', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.4;
}

/* =========================================================
   POEM TEXT TILE
========================================================= */

.tile--poem {
  background: #fff;
  border-radius: 1.25rem;
  overflow: hidden;
  position: relative;
}

/* Tile sizes: landscape / square / portrait */
.tile--poem-short  { height: 200px; }
.tile--poem-medium { height: 320px; }
.tile--poem-long   { height: 450px; }

.tile-poem-inner {
  padding: 1.5rem 1.5rem 0;
  height: 100%;
  overflow: hidden;
  transition: transform 0.4s ease;
}

.tile:hover .tile-poem-inner {
  transform: scale(1.08);
}

.tile-poem-body {
  font-family: 'Raleway', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.7;
  color: #444;
}

.tile-poem-body p {
  margin: 0 0 0.6rem;
}

.tile-poem-body img,
.tile-poem-body figure {
  display: none;
}

.tile-poem-body a {
  color: #444;
  text-decoration: none;
}

/* Fade-out at the bottom so text trails off */
.tile-poem-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
  pointer-events: none;
  border-radius: 0 0 1.25rem 1.25rem;
}

@media (max-width: 575px) {
  .tile--poem-short  { height: 180px; }
  .tile--poem-medium { height: 280px; }
  .tile--poem-long   { height: 380px; }
}

/* =========================================================
   SINGLE POST - SHARED
========================================================= */

.single-post h1 {
  font-family: 'Borel', cursive;
  font-weight: 400;
  color: #fff;
}

.post-content {
  line-height: 1.7;
  font-size: 1.05rem;
}

.post-content p {
  margin-bottom: 1.2rem;
  color: #fff;
}

.post-content img {
  border-radius: 1.25rem;
}

/* =========================================================
   HERE BIO PAGE
========================================================= */

.single-post--bio .post-content .has-background {
  border-radius: 1.25rem;
}

/* =========================================================
   SINGLE POST - DEFAULT LAYOUT
========================================================= */

.single-hero img {
  width: 100%;
  border-radius: 1.25rem;
}

.single-body {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================
   SINGLE POST - POEM LAYOUT
========================================================= */

.single-poem {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.single-poem-image {
  flex: 0 0 30%;
  max-width: 30%;
}

.single-poem-image img {
  width: 100%;
  border-radius: 1.25rem;
}

.single-poem-text {
  flex: 1;
  min-width: 0;
  background: #fff;
  padding: 2rem;
  border-radius: 1.25rem;
}

.single-poem-text h1 {
  color: #111;
}

.single-poem-text .post-content,
.single-poem-text .post-content p {
  color: #111;
}

.single-poem-text .post-content a {
  color: #111;
}

@media (max-width: 767px) {
  .single-poem {
    flex-direction: column;
    gap: 1.5rem;
  }

  .single-poem-image {
    flex: none;
    max-width: 60%;
  }
}

/* =========================================================
   SINGLE POST - PAINTING LAYOUT
========================================================= */

.single-painting {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.single-painting-image img {
  width: 100%;
  border-radius: 1.25rem;
}

.single-painting-text {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================
   SINGLE POST - PDF LAYOUT
========================================================= */

.single-pdf {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.single-pdf-image {
  flex: 0 0 30%;
  max-width: 30%;
}

.single-pdf-image img {
  width: 100%;
  border-radius: 1.25rem;
}

.single-pdf-text {
  flex: 1;
  min-width: 0;
}

@media (max-width: 767px) {
  .single-pdf {
    flex-direction: column;
    gap: 1.5rem;
  }

  .single-pdf-image {
    flex: none;
    max-width: 60%;
  }
}

/* =========================================================
   SINGLE POST - EXTERNAL LAYOUT
========================================================= */

.single-external {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.single-external-image img {
  width: 100%;
  border-radius: 1.25rem;
}

.single-external-text {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================
   VIEW BUTTONS (PDF + EXTERNAL)
========================================================= */

.btn-view-pdf,
.btn-view-external {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 1rem 1.5rem;
  border: 2px solid #fff;
  border-radius: 0.5rem;
  color: #fff;
  font-family: 'Raleway', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-view-pdf:hover,
.btn-view-pdf:focus,
.btn-view-external:hover,
.btn-view-external:focus {
  background: #fff;
  color: #ff2f92;
  text-decoration: none;
}

.btn-view-pdf .bi,
.btn-view-external .bi {
  font-size: 1.4rem;
}

/* =========================================================
   LISTEN TO POEM BUTTON
========================================================= */

.btn-listen-poem {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 1rem 1.5rem;
  border: 2px solid #ff2f92;
  border-radius: 0.5rem;
  background: none;
  color: #ff2f92;
  font-family: 'Raleway', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-listen-poem:hover,
.btn-listen-poem:focus {
  background: #ff2f92;
  color: #fff;
}

.btn-listen-poem.is-playing {
  background: #ff2f92;
  color: #fff;
}

.btn-listen-poem .bi {
  font-size: 1.4rem;
}

/* ── Audio progress bar ── */

.poem-audio-progress {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.6rem;
  padding: 0 0.25rem;
}

.poem-audio-track {
  flex: 1;
  height: 6px;
  background: #e0e0e0;
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.poem-audio-fill {
  height: 100%;
  width: 0%;
  background: #ff2f92;
  border-radius: 3px;
  transition: width 0.1s linear;
}

.poem-audio-time {
  font-family: 'Raleway', sans-serif;
  font-size: 0.8rem;
  color: #999;
  white-space: nowrap;
  min-width: 5.5em;
  text-align: right;
}

/* =========================================================
   DOWNLOAD POEM BUTTON
========================================================= */

.btn-download-poem {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 1rem 1.5rem;
  border: 2px solid #ff2f92;
  border-radius: 0.5rem;
  color: #ff2f92;
  font-family: 'Raleway', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-download-poem:hover,
.btn-download-poem:focus {
  background: #ff2f92;
  color: #fff;
  text-decoration: none;
}

.btn-download-poem .bi {
  font-size: 1.2rem;
}

/* =========================================================
   WHITE LINKS IN POST CONTENT
========================================================= */

.post-content a {
  color: #fff;
}

.post-content a:hover,
.post-content a:focus {
  color: #fff;
  opacity: 0.75;
}

/* =========================================================
   FOOTER
========================================================= */

.site-footer {
  color: #fff;
}

.site-footer small {
  font-family: 'Raleway', sans-serif;
  font-size: 0.9rem;
}

.footer-copyright {
  display: block;
  width: 100%;
  text-align: center;
}

.instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Borel', cursive;
  font-size: 2rem;
  color: #fff;
  text-decoration: none;
}

.instagram-link,
.instagram-link:hover,
.instagram-link:focus,
.instagram-link:active,
.instagram-link:visited {
  color: #fff;
  text-decoration: none;
}

.instagram-link .bi {
  font-size: 2rem;
}
