/*
Theme Name: Personal Blog Bootstrap Theme
Theme URI: https://matteodallombra.net
Author: Matteo Dall'Ombra & ChatGPT
Author URI: https://matteodallombra.net
Description: Responsive personal blog theme using Bootstrap 5 and Google Sans Code font.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: personal-blog
*/


:root {
  --bs-primary: #15171A;
  --bs-body-color: #15171A;
  --bs-body-bg: rgb(253,246,232);
  --edger-accent: rgb(181,217,210);
}

body {
  font-family: 'Google Sans Code', monospace;
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
}

a {
  color: rgb(143,255,233);
}

a:hover {
  color: rgb(143,255,233);
}

.post-card {
  border: none;
}

.post-card .card-img-top {
  border-radius: 15px;
  border: 8px solid #15171A;
  box-shadow: 8px 8px 0 var(--edger-accent);
  aspect-ratio: 16/9;
  object-fit: cover;
}

.post-image-wrapper {
  position: relative;
}

.post-image-wrapper .post-title-overlay {
  position: absolute;
  bottom: -10px;
  right: -10px;
}

.post-title-overlay {
  display: inline-block;
}

.post-title-overlay a {
  color: #fff;
  text-decoration: none;
  display: inline-block;
}

.post-title-overlay span {
  background-color: #15171A;
  color: #fff;
  padding: 0 .35rem;
  border-radius: 0.25rem;
}

.linked-article-title a {
  color: #15171A;
}

.linked-article-title span {
  background-color: rgb(178,208,251);
  color: #15171A;
  box-shadow: 0.5rem 0 0 rgb(178,208,251), -0.5rem 0 0 rgb(178,208,251);
}

.post-date {
  background-color: rgb(248,216,142);
  color: #15171A;
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  box-shadow: 4px 4px 0 #000;
  font-weight: bold;
  text-decoration: none;
}

.post-date:hover {
  text-decoration: none;
}

.pagination .page-link {
  color: #15171A;
  background-color: var(--edger-accent);
  border: 1px solid #15171A;
  box-shadow: 4px 4px 0 #15171A;
  margin: 0 0.25rem;
}

.pagination .page-item.active .page-link,
.pagination .page-link:hover {
  color: #15171A;
}

.pagination .page-item.active .page-link {
  background-color: rgb(248,216,142);
}

.btn-primary {
  background-color: rgb(208,171,228);
  border-color: rgb(208,171,228);
  color: #15171A;
  border-radius: 0.25rem;
  box-shadow: 4px 4px 0 #000;
  font-weight: bold;
}

.btn-primary:hover {
  background-color: rgb(208,171,228);
  border-color: rgb(208,171,228);
  color: #15171A;
}


/* Navigation links reuse .post-date styling */
.navbar-nav .nav-link {
  margin: 0 0.5rem;
}

.navbar-nav .nav-link:hover {
  color: #15171A;
}

.site-icon {
  border-radius: 15px;
  border: 8px solid #15171A;
  box-shadow: 8px 8px 0 var(--edger-accent);
  width: 100px;
  height: auto;
}

.site-tagline {
  color: #15171A;
  font-weight: bold;
  display: block;
  width: 100%;
  text-align: center;
  font-size: 1.125rem;
}

.navbar-brand {
  width: 100%;
  justify-content: center;
}

.apps-showcase {
  background-color: rgb(248,216,142);
  border: 2px solid #15171A;
  border-radius: 0.75rem;
  box-shadow: 8px 8px 0 #15171A;
  padding: 1rem;
}

.apps-showcase-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.apps-showcase-title {
  margin: 0;
  font-size: 1.5rem;
}

.apps-showcase-link {
  color: #15171A;
  font-weight: bold;
}

.app-tile {
  background-color: rgb(253,246,232);
  border: 2px solid #15171A;
  border-radius: 0.5rem;
  padding: 0.75rem;
  box-shadow: 4px 4px 0 #15171A;
  display: flex;
  flex-direction: column;
}

.app-tile-icon {
  width: 40px;
  height: 40px;
  border-radius: 0.75rem;
  border: 2px solid #15171A;
}

.app-tile-title {
  font-size: 1.1rem;
}

.app-tile-tagline {
  margin-bottom: 0.85rem;
  min-height: 3.2em;
}

.app-tile .btn {
  margin-top: auto;
  align-self: flex-start;
}

@media (min-width: 768px) {
  .navbar-brand,
  .site-tagline {
    width: auto;
  }
}

@media (max-width: 767.98px) {
  .apps-showcase {
    padding: 0.85rem;
  }

  .apps-showcase-title {
    width: 100%;
  }

  .app-tile-tagline {
    min-height: 0;
  }
}

.content iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  display: block;
  margin: 0 auto;
}

.content blockquote {
  background-color: rgb(244,192,208);
  padding: 1rem 1.25rem;
  border-radius: 0.25rem;
  box-shadow: 6px 6px 0 #000;
  margin: 1.5rem 0;
}

.card-body a:not(.btn),
.content a {
  color: rgb(255,181,204);
}

.card-body a:not(.btn):hover,
.content a:hover {
  color: rgb(255,181,204);
}

.post-image,
.content img {
  border-radius: 15px;
  border: 8px solid #15171A;
  box-shadow: 8px 8px 0 var(--edger-accent);
  width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem 0;
}

.post-image {
  aspect-ratio: 16/9;
  object-fit: cover;
}

.single .post-image {
  aspect-ratio: auto;
  object-fit: initial;
}

.tako-icon {
  max-width: 150px;
  height: auto;
  border-radius: 15px;
  border: 8px solid #15171A;
  box-shadow: 8px 8px 0 var(--edger-accent);
  transform: rotate(-8deg);
}

.tw-screenshot-placeholder {
  border-radius: 15px;
  border: 8px solid #15171A;
  box-shadow: 8px 8px 0 var(--edger-accent);
  width: 100%;
  aspect-ratio: 9/16;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.05);
  color: #15171A;
  font-weight: bold;
}