/*
Theme Name: Sound Badger Blog
Author: Your Name
Description: A simple blog/journal WordPress theme
Version: 1.0
*/

body {
  margin:0;
  font-family: sans-serif;
  background: white;
}

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

/* Navbar basics */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 2rem;
    background-color: white;
    border-bottom: 1px solid #ddd;
    box-sizing: border-box;
    z-index: 1000;
  }
  
  /* Logo */
  .logo img {
    width: 60px;
    height: 60px;
    object-fit: contain;
  }
  
  /* Nav links */
  .nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .nav-links li {
    margin-left: 2rem;
  }
  
  .nav-links a {
    text-decoration: none;
    color: #333;
    font-size: 1.2rem;
    
  }
 
  /* Burger menu - default hidden */
  .burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 20px;         /* exact height for spacing */
    cursor: pointer;
    z-index: 1001;        /* above nav-links */
  }
  
  .burger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.4s ease;
  }
  
  /* Toggle to X */
  .burger.toggle span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  
  .burger.toggle span:nth-child(2) {
    opacity: 0;   /* hide middle line */
  }
  
  .burger.toggle span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }
  
  /* Mobile styles */
  @media (max-width: 768px) {
    .burger {
      display: flex;
    }
  
.nav-links {
            display: flex;
            flex-direction: column;
            position: absolute;
            top: 100%;
            left: 0;
            width: 100%;
            background-color: white;
            text-align: center;
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            overflow: hidden;
            max-height: 0;                  /* hidden by default */
            transition: max-height 0.4s ease;
            z-index: 1000;
          }
  
          .nav-links.show {
            max-height: 500px;              /* enough for all links */
          }
  
    .nav-links li {
      margin: 0;
      padding: 1rem 0;
    }
  }
  
.site-content {
    padding-top: 100px !important; /* forces spacing below navbar */
    max-width: 800px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}
.blog-title{
    font-family: helvetica, Sans-Serif;
    color:red;
}

.post h2{
    font-weight:300;
    color: #333;
    letter-spacing: 1.2;
    
}

.post p,
.post li {
    font-size: 1.1rem;
    line-height: 2rem;
}


/*New post styling*/
.post-preview {
    background: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 6px;
}

.post-preview img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
}

.post-preview h2 a {
    text-decoration: none;
    color: #000;
}

.single-post img {
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
}
/* Youtubecss */

.wp-block-embed-youtube {
    max-width: 100%;
    margin: 0 auto;
}

.wp-block-embed-youtube .wp-block-embed__wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
}

.wp-block-embed-youtube iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}