/*
Theme Name: Dynamic Theme
*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  line-height: 1.5;
  color: #333;
  background-color: #f5f5f5;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.section-container {
  position: relative;
  z-index: 2;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-button,
.about-button,
.game-button,
.theme-button {
  display: inline-block;
  padding: 16px 40px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 30px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  width: fit-content;
  background-color: var(--color-primary);
  color: #ffffff;
  line-height: 1.5;
  text-align: center;
}

.hero-button:hover,
.about-button:hover,
.game-button:hover,
.theme-button:hover {
  transform: translateY(-2px);
}

.hero-button:focus,
.about-button:focus,
.game-button:focus,
.theme-button:focus {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.3);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .hero-button,
  .about-button,
  .game-button,
  .theme-button {
    padding: 14px 32px;
    font-size: 14px;
    letter-spacing: 0.5px;
  }
}

@media (max-width: 480px) {
  .hero-button,
  .about-button,
  .game-button,
  .theme-button {
    padding: 12px 28px;
    font-size: 13px;
  }
}

.site-header {
  background-color: var(--color-primary);
  position: var(--nav-position, sticky);
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
  width: 100%;
  max-width: 1440px;
  padding: 0 20px;
  margin: 0 auto;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  width: 100%;
}

.site-branding {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.site-branding .custom-logo,
.site-branding img {
  height: 40px;
  width: auto;
  display: block;
}
@media (max-width: 767px) {
  .site-branding img {
    height: 50px !important;
  }
}
.site-title-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 24px;
  font-weight: 700;
  transition: opacity 0.3s ease;
}

.site-title-link:hover {
  opacity: 0.9;
}

.custom-logo-link {
  display: block;
  line-height: 1.5;
}

.main-navigation {
  display: flex;
  align-items: center;
}

.primary-menu-container {
  display: block;
}

.nav-menu,
.primary-menu-container ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 35px;
  margin: 0;
  padding: 0;
}

.nav-menu li,
.primary-menu-container li {
  margin: 0;
}

.nav-menu a,
.primary-menu-container a {
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: opacity 0.3s ease;
  padding: 5px 0;
}

.nav-menu a:hover,
.primary-menu-container a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a {
  color: var(--nav-menu-hover-color, #f59e0b);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: 20px;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 28px;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background-color: #ffffff;
  transition: all 0.3s ease;
  transform-origin: center;
}

.menu-toggle.active .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (min-width: 769px) {
  .mobile-menu-header {
    display: none;
  }

  .nav-menu .sub-menu,
  .primary-menu-container .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #6b2fc7;
    min-width: 200px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 999;
  }

  .nav-menu li:hover > .sub-menu,
  .primary-menu-container li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-menu .sub-menu a,
  .primary-menu-container .sub-menu a {
    display: block;
    padding: 12px 20px;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-menu .sub-menu a:hover,
  .primary-menu-container .sub-menu a:hover {
    background-color: var(--nav-menu-hover-color, #f59e0b);
    opacity: 1;
    color: #ffffff;
  }
}

.site-content {
  padding: 60px 0;
}

.posts-container {
  display: grid;
  gap: 40px;
}

.post-item {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.post-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.entry-header {
  padding: 30px;
  padding-bottom: 20px;
}

.entry-title {
  font-size: 32px;
  margin-bottom: 10px;
  line-height: 1.5;
}

.entry-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.entry-title a:hover {
  color: #3b82f6;
}

.entry-meta {
  font-size: 14px;
  color: #666;
}

.entry-meta span {
  margin-right: 15px;
}

.post-thumbnail {
  width: 100%;
  height: auto;
}

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

.entry-content {
  padding: 0 30px 30px;
}

.entry-content p {
  margin-bottom: 15px;
}

.read-more {
  display: inline-block;
  margin-top: 15px;
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: #2563eb;
  text-decoration: underline;
}

.site-footer {
  background-color: #1f2937;
  color: #fff;
  padding: 40px 0;
}

.footer-navigation {
  margin-bottom: 30px;
}

.footer-menu-container ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.footer-menu-container a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-menu-container a:hover {
  color: #fff;
}

.site-info {
  text-align: center;
  font-size: 14px;
  color: #9ca3af;
}

.site-info a {
  color: #60a5fa;
  text-decoration: none;
}

.site-info a:hover {
  text-decoration: underline;
}

.posts-navigation {
  margin-top: 40px;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  justify-content: space-between;
}

.nav-links a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
}

.nav-links a:hover {
  text-decoration: underline;
}

.no-results {
  background-color: #fff;
  padding: 40px;
  border-radius: 8px;
  text-align: center;
}

.no-results .page-title {
  font-size: 36px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .header-container {
    padding: 0 20px;
  }

  .menu-toggle {
    display: block;
  }

  .primary-menu-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-primary);
    z-index: 9999;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
  }

  .primary-menu-container.active {
    display: block;
  }

  .mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mobile-menu-logo {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
  }

  .mobile-menu-close {
    display: block;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    color: #ffffff;
    font-size: 32px;
    line-height: 1.5;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-menu-close:hover {
    opacity: 0.8;
  }

  .nav-menu,
  .primary-menu-container ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 30px 20px;
  }

  .nav-menu li,
  .primary-menu-container li {
    border-bottom: none;
    margin-bottom: 20px;
  }

  .nav-menu a,
  .primary-menu-container a {
    display: block;
    padding: 0;
    font-size: 18px;
    font-weight: 500;
    color: #ffffff;
  }

  .nav-menu a:hover,
  .primary-menu-container a:hover {
    color: var(--nav-menu-hover-color, #f59e0b);
    opacity: 1;
  }

  .nav-menu .sub-menu,
  .primary-menu-container .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background-color: transparent;
    margin: 10px 0 0 20px;
    width: auto;
  }

  .nav-menu .sub-menu a,
  .primary-menu-container .sub-menu a {
    padding-left: 0;
    font-size: 16px;
    opacity: 0.9;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  .mobile-menu-overlay {
    display: none !important;
  }

  .entry-title {
    font-size: 24px;
  }

  .posts-container {
    grid-template-columns: 1fr;
  }

  .footer-menu-container ul {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .site-title {
    font-size: 24px;
  }

  .entry-header,
  .entry-content {
    padding: 20px;
  }

  .site-content {
    padding: 40px 0;
  }
}

.screen-reader-text {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  z-index: 999999;
  padding: 8px 16px;
  background: var(--color-primary);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 6px;
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.alignleft {
  float: left;
  margin-right: 20px;
}

.alignright {
  float: right;
  margin-left: 20px;
}

.aligncenter {
  display: block;
  margin: 0 auto;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 14px;
  color: #666;
  margin-top: 5px;
}

.sticky {
  position: relative;
}

.gallery-caption {
  font-size: 14px;
  color: #666;
}

.bypostauthor {
  font-weight: bold;
}
