/*
Theme Name: Broken Songs
Author: T.A. Creech
Description: Minimal Author Theme
Version: 1.0
*/

/*
Theme Name: Broken Songs
Author: T.A. Creech
Description: Minimal Author Theme
Version: 1.0
*/

body {
    margin: 0;
    font-family: 'Quicksand', sans-serif;
    background: linear-gradient(137deg,rgba(4, 34, 77, 1) 0%, rgba(100, 47, 56, 1) 50%, rgba(45, 55, 40, 1) 100%);
}

.site-title,
.post-title,
h1, h2 {
  font-family: 'Bilbo', cursive;
}

.post-title,
h1, h2 {
  font-weight: bolder;
  letter-spacing: 0.5px;
}

.layout {
    display: grid;
    grid-template-columns: 3000px 1fr;
    min-height: 100vh;
}

.sidebar {
	width: 260px;
  position: relative;
  padding: 1rem;

  background:
    linear-gradient(rgba(0,0,0,0.9), rgba(0,0,0,0.92)),
    url('http://localhost/wordpress/wp-content/uploads/2026/03/circuit-background-sidebar.gif');

  background-size: 300px; /* repeat pattern */
  background-repeat: repeat;
}

.sidebar {
  animation: drift 30s linear infinite;
}

@keyframes drift {
  0%   { background-position: 0 0; }
  100% { background-position: 100px 100px; }
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 95%;
  padding: 1rem;
  gap: 1rem;
  align-items: center;   /* 👈 centers horizontally */
  text-align: center;    /* 👈 centers text */
  background: rgba(155, 152, 152, 0.4);
  padding: 0.8rem;
  border-radius: 8px;
}

.sidebar-identity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left; /* override your centered sidebar */
}

.identity-logo img {
  width: 50px;
  height: auto;
  display: block;
}

.identity-logo img {
  width: 70px;
  height: 70px;        /* important for perfect circle */
  object-fit: cover;   /* prevents squish */
  border-radius: 50%;  /* 👈 the magic */
  border: 2px solid rgba(49, 40, 67, 0.2);
}

.identity-text .site-title {
  margin: 0;
  font-size: 1.2rem;
}

.identity-text .tagline {
  margin: 0;
  font-size: 1rem;
  opacity: 0.7;
}

.sidebar-current p {
  font-weight: 500;
}

.current-title {
  font-weight: 600;
  color:black;
  text-decoration: none;
}

.current-excerpt {
  font-size: 0.85rem;
  opacity: 0.75;
  line-height: 1.1;
}

.newsletter-embed input {
  width: 100%;
  padding: 0.2rem;
}

.newsletter-embed button {
  width: 100%;
  padding: 0.2rem;
}

.tumblr-icon {
  display: inline-block;
  width: 100px;
  height: 100px;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  animation: floaty 3s ease-in-out infinite;
}

.tumblr-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

@keyframes floaty {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-2px); }
  100% { transform: translateY(0px); }
}

.tumblr-icon:hover {
  opacity: 1;
  animation: glitch 0.3s steps(2, end) infinite;
}

@keyframes glitch {
  0%   { transform: translate(0,0) rotate(0); }
  25%  { transform: translate(-2px,1px) rotate(-6deg); }
  50%  { transform: translate(2px,-1px) rotate(6deg); }
  75%  { transform: translate(-1px,0) rotate(-4deg); }
  100% { transform: translate(0,0) rotate(0); }
}

.tumblr-icon:hover {
  color: #a855f7;
}

.sidebar h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.content {
    padding: 2rem;
    margin: 0 auto;
}

.main-area {
	min-width: 0;
  display: flex;
  flex-direction: column;
}

.content.category {
	max-width: 1000px;
	margin: 0 auto;
	width:100%;
}

a {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.post-title {
  font-size: 2.2rem;
}

h2 {
  font-size: 1.8rem;
}

h3 {
  font-size: 1.1rem;
}

.front-post {
  max-width:900px; /* or whatever feels right */
  margin-bottom: 2rem;
}

.front-post-cover img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.front-post-cover {
  float: none;
  margin-top: 30px;
  flex: 0 0 220px; /* fixed width */
}

.front-post-info {
  flex: 1;
  min-width: 0;
}

.front-post-link {
  display: flex;
  gap: 1rem;
  align-items: flex-start;

  background: rgba(155, 152, 152, 0.6);
  padding: 1rem;
  border-radius: 8px;

  text-decoration: none;
  color: inherit;

  transition: background 0.2s ease, transform 0.1s ease;
}

.site-header {
  padding: 1rem 2rem;
  background: rgba(155, 152, 152, 0.4);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-nav {
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
}

.top-nav .menu {
  list-style: none;
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.top-nav .menu li {
  margin: 0;
}

.top-nav .menu a {
  text-decoration: none;
  color: inherit;
}

.top-nav .menu {
  list-style: none;
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.top-nav .menu li {
  position: relative; /* important for dropdown positioning */
}

.top-nav .menu ul {
  position: absolute;
  top: 100%;
  right: 0;

  list-style: none;
  margin: 0;
  padding: 0.5rem 0;

  background: rgba(155, 152, 152, 0.4);
  min-width: 180px;

  display: none; /* hidden by default */
}

.top-nav .menu li:hover > ul {
  display: block;
}

.top-nav .menu ul li {
  width: 100%;
}

.top-nav .menu ul a {
  display: block;
  padding: 0.5rem 1rem;
  white-space: nowrap;
}

.top-nav .menu ul a:hover {
  background: rgba(155, 152, 152, 0.4);
}

.single .post {
  max-width: 700px;
  margin: 0 auto;
}

.single .post-title {
  margin-bottom: 0.5rem;
}

.single .post-meta {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-bottom: 2rem;
}

.single .post-content {
  line-height: 1.6;
}

.single .post-content p:first-of-type {
  margin-top: 0;
}

.single .post-reviews,
.single .post-awards,
.single .post-notes {
  margin-top: 3rem;
}

.single .placeholder {
  opacity: 0.5;
  font-style: italic;
}

.single .post-body {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.single .post-text {
  flex: 1;
}

.single .post-body {
  display: block;
}

.single .post-cover {
  float: left;
  width: 220px;
  margin: 0 2rem 1rem 0;
}

.single .post-cover img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.single .post-content::after {
  content: "";
  display: block;
  clear: both;
}

.single .post {
  background: rgba(155, 152, 152, 0.6);
  padding: 2rem;
  border-radius: 10px;
}

.category-posts {
  display: grid !important;
  gap: 1rem;
  margin-top: 2rem;
	justify-items: center;
  grid-template-columns: repeat(4, 1fr) !important;
}

.single .post-content {
  line-height: 1.6;
}

.single .post-title {
  margin-top: 0;
    margin-bottom: 10px;
}

.single .post-reviews,
.single .post-awards,
.single .post-notes,
.single .buy-links {
  margin-top: 2.5rem;
}

.single hr {
  border: none;
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 2rem 0;
}

.single .post {
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

body {
  font-size: 16px;
}

p {
  font-size: 1rem;
}

.post-meta {
  display: none;
}

.category-post-link {
  text-decoration: none;
  color: inherit;
}

.category-post-cover img {
  width: 100%;
  height: auto;
  display: block;
}

.category-post-title {
  margin-top: 0.5rem;
  font-size: 1.1rem;
}

.category-post-excerpt {
  font-size: 0.9rem;
  opacity: 0.7;
}

.category-post {
  background: rgba(155, 152, 152, 0.6);
  padding: 1rem;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.category-post:hover {
  background: rgba(77, 74, 74, 0.7);
}

.category-posts .front-post {
  width: auto;
  max-width: 100%;
  margin: 0;
}

.category-posts > * {
  min-width: 0;
}

.buy-links {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.buy-button {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;

  background: rgba(255,255,255,0.1);
  color: white;

  transition: background 0.2s ease;
}

.buy-button:hover {
  background: rgba(255,255,255,0.2);
}

.sidebar-nav {
  display: none;
}

.mobile-header {
  display: none;
}

.comments-area {
  background: rgba(155, 152, 152, 0.6);
  padding: 1rem;
  border-radius: 8px;
  margin-top: 2rem;
}

@media (max-width: 768px) {

  /* Layout collapse */
  .layout {
    grid-template-columns: 1fr;
  }

  /* Hide desktop nav */
  .top-nav {
    display: none;
  }

  /* Show mobile header */
  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
  }

  .mobile-identity {
    font-size: 0.9rem;
    flex: 1;
    text-align: center;
  }

  /* Sidebar becomes slide-out */
  .sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 260px;
    height: 100vh;
    z-index: 1000;
    transition: left 0.3s ease;
  }

  .sidebar.active {
    left: 0;
  }

  /* Overlay */
  .sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 900;
  }

  .sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }

  /* Sidebar nav visible */
  .sidebar-nav {
    display: block;
  }

  /* Hide sidebar newsletter (optional, you chose this) */
  .sidebar-newsletter {
    display: none;
  }

  /* Front post layout */
  .front-post-link {
    flex-direction: column;
    align-items: flex-start;
  }

  .front-post-cover {
    max-width: 200px;
    margin: 0 auto;
  }

  /* Content padding */
  .content {
    padding: 1.2rem;
  }

  .sidebar-menu {
  list-style: none;
  padding: 0;
  margin-top: 2%;
}

.sidebar-menu li {
  list-style: none;
}

.sidebar-menu a {
  color: black;
  text-decoration: none;
  display: block;
  padding: 0.4rem 0;
}

.sidebar-menu a:hover {
  opacity: 0.7;
}

.sidebar-menu ul {
  padding-left: 1rem;
}
	
  .category-posts {
    grid-template-columns: 1fr !important;
  }

  .category-post-cover img {
    width: 100% !important; /* fix that 50% from desktop */
  }

}


/* --- DESKTOP HARD RESET --- */
@media (min-width: 769px) {
  .sidebar {
    position: sticky !important;
    left: 0 !important;
    display: block !important;
    width: auto !important;
  }

  .layout {
    grid-template-columns: 300px 1fr !important;
  }

  .top-nav {
    display: flex !important;
  }

  .mobile-header {
    display: none !important;
  }

  .sidebar-overlay {
    display: none !important;
  }
}