/* Kellos Custom Header Styles */

.site-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  background: #111;
  color: #fff;
  width: 100vw;
  height: 200px;
  max-width: 100vw;
  position: relative;
  z-index: 0;
}

.header-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  max-width: 100vw;
  margin: 0;
  padding: 12px 16px;
  display: flex;
  gap: 24px;
}

.site-branding {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-title a {
  color: #fff;
  text-decoration: none;
  font-size: 24px;
  font-weight: bold;
  font-family: serif;
}

.site-description {
  color: #ccc;
  margin: 0;
  font-size: 14px;
  font-family: sans-serif;
}

.custom-header-nav {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
}

.custom-menu {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.custom-menu a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 2px;
  transition: color 0.3s ease, border-bottom 0.3s ease;
}

.custom-menu a:hover,
.custom-menu .current-menu-item > a {
  color: #ffcc00;
  border-bottom: 2px solid #ffcc00;
}

.site-logo img,
.custom-logo {
  max-width: 170px;
  height: auto;
  display: block;
}

/* Mobile Menu Button */
.kellos-burger {
  display: none;
  background: #222;
  color: #fff;
  border: 0;
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.kellos-burger:hover {
  background: #333;
}

/* Mobile Styles */
@media (max-width: 900px) {
  .kellos-burger {
    display: inline-block;
  }

  .custom-header-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 16px;
    width: 250px;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 0;
  }

  .custom-header-nav.is-open {
    display: block;
  }

  .custom-menu {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .custom-menu li {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
  }

  .custom-menu a {
    display: block;
    padding: 14px 16px;
    width: 100%;
    box-sizing: border-box;
  }

  .header-inner {
    flex-wrap: wrap;
    position: relative;
  }

  .site-branding {
    order: 1;
  }

  .kellos-burger {
    order: 2;
  }

  .custom-header-nav {
    order: 3;
    width: 250px;
  }
}

/* Main Content Styles */
.site-main {
  padding: 40px 0;
  background: #fff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.post-item {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.post-thumbnail img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.entry-header {
  padding: 20px;
}

.entry-title {
  margin: 0 0 10px 0;
  font-size: 20px;
  line-height: 1.3;
}

.entry-title a {
  color: #333;
  text-decoration: none;
}

.entry-title a:hover {
  color: #ffcc00;
}

.entry-meta {
  color: #666;
  font-size: 14px;
  margin-bottom: 15px;
}

.entry-content {
  padding: 0 20px 20px;
  color: #555;
  line-height: 1.6;
}

.read-more {
  display: inline-block;
  background: #ffcc00;
  color: #333;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.read-more:hover {
  background: #e6b800;
}

/* Single Post Styles */
.single-post {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.single-post .post-thumbnail img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.single-post .entry-title {
  font-size: 32px;
  margin: 30px 30px 20px 30px;
  color: #333;
}

.single-post .entry-meta {
  margin: 0 30px 30px 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.single-post .entry-meta span {
  display: inline-block;
  margin-right: 20px;
}

.single-post .entry-content {
  padding: 0 30px 30px 30px;
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

.single-post .entry-content p {
  margin-bottom: 20px;
}

.single-post .entry-content h2,
.single-post .entry-content h3,
.single-post .entry-content h4 {
  color: #333;
  margin: 30px 0 15px 0;
}

.single-post .entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.single-post .entry-footer {
  padding: 20px 30px 30px 30px;
  border-top: 1px solid #eee;
}

.tags {
  margin-bottom: 20px;
}

.tags a {
  display: inline-block;
  background: #f5f5f5;
  color: #666;
  padding: 4px 8px;
  margin: 2px;
  border-radius: 3px;
  text-decoration: none;
  font-size: 12px;
  transition: background-color 0.3s ease;
}

.tags a:hover {
  background: #ffcc00;
  color: #333;
}

/* Post Navigation */
.post-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.nav-previous,
.nav-next {
  flex: 1;
}

.nav-previous {
  text-align: left;
}

.nav-next {
  text-align: right;
}

.nav-previous a,
.nav-next a {
  display: inline-block;
  background: #ffcc00;
  color: #333;
  padding: 10px 15px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.nav-previous a:hover,
.nav-next a:hover {
  background: #e6b800;
}

/* Pagination */
.navigation.pagination {
  text-align: center;
  margin-top: 40px;
}

.nav-links {
  display: inline-flex;
  gap: 10px;
}

.page-numbers {
  display: inline-block;
  padding: 8px 12px;
  background: #f5f5f5;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.page-numbers:hover,
.page-numbers.current {
  background: #ffcc00;
  color: #333;
}

/* No Posts */
.no-posts {
  text-align: center;
  padding: 60px 20px;
}

.no-posts h2 {
  color: #333;
  margin-bottom: 20px;
}

.no-posts p {
  color: #666;
  font-size: 16px;
}

/* Footer Styles */
.site-footer {
  background: #111;
  color: #fff;
  padding: 20px 0;
  margin-top: auto;
  text-align: center;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  text-align: center;
}

.site-info {
  margin: 0;
  text-align: center;
}

.site-info p {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  color: #ccc;
  font-size: 14px;
  text-align: center;
}

.text-center {
  text-align: center !important;
}

/* Ensure footer stays at bottom */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-content {
  flex: 1;
}
