/*
Theme Name: SubwayMenuPedia WP
Theme URI: https://example.com/
Author: OpenAI
Author URI: https://openai.com/
Description: WordPress theme converted from the uploaded SubwayMenuPedia design, with Customizer-managed ads, footer links, logo, and favicon support.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: subwaymenupedia-wp
*/

html, body {
  margin: 0;
  padding: 0;
  background: #F5F5F5;
}

#root:empty::before {
  content: "Loading...";
  display: block;
  padding: 3rem 1rem;
  text-align: center;
  color: #666;
  font-family: Inter, Arial, sans-serif;
}


body {
  color: #1f2937;
  font-family: Inter, Arial, sans-serif;
}

.smp-shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

.smp-site-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.smp-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.smp-site-title,
.smp-top-nav a {
  color: #111827;
  text-decoration: none;
}

.smp-site-title {
  font-size: 1.25rem;
  font-weight: 800;
}

.smp-top-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.smp-top-nav a {
  font-weight: 600;
}

.smp-content-area {
  padding-top: 32px;
  padding-bottom: 32px;
}

.smp-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.04);
}

.smp-card + .smp-card {
  margin-top: 20px;
}

.smp-entry-title {
  margin: 0 0 10px;
  font-size: 2rem;
  line-height: 1.2;
}

.smp-entry-title a {
  color: inherit;
  text-decoration: none;
}

.smp-entry-meta {
  color: #6b7280;
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.smp-entry-content,
.smp-entry-excerpt {
  line-height: 1.8;
}

.smp-entry-content img {
  max-width: 100%;
  height: auto;
}

.smp-site-footer {
  padding: 28px 0 40px;
  color: #6b7280;
  font-size: 0.95rem;
}



.navigation.pagination {
  margin-top: 28px;
}

.navigation.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.navigation.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 11px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #ffffff;
  color: #111827;
  text-decoration: none;
  font-weight: 700;
  line-height: 1;
  box-sizing: border-box;
}

.navigation.pagination .page-numbers.current {
  background: #111827;
  border-color: #111827;
  color: #ffffff;
}

.navigation.pagination .page-numbers:hover,
.navigation.pagination .page-numbers:focus {
  opacity: 0.92;
}


@media (max-width: 640px) {
  .smp-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .smp-card {
    padding: 20px;
    border-radius: 16px;
  }

  .smp-entry-title {
    font-size: 1.6rem;
  }
}


.smp-related-posts-title {
  margin: 0 0 20px;
  font-size: 1.5rem;
  line-height: 1.25;
}

.smp-related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.smp-related-post-item {
  min-width: 0;
}

.smp-related-post-link {
  display: block;
  height: 100%;
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fafafa;
  color: inherit;
  text-decoration: none;
}

.smp-related-post-thumb {
  margin-bottom: 14px;
  overflow: hidden;
  border-radius: 12px;
}

.smp-related-post-thumb img {
  display: block;
  width: 100%;
  height: auto;
}

.smp-related-post-name {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.4;
}

.smp-related-post-meta {
  margin-bottom: 10px;
  color: #6b7280;
  font-size: 0.92rem;
}

.smp-related-post-excerpt {
  margin: 0;
  color: #374151;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .smp-related-posts-grid {
    grid-template-columns: 1fr;
  }
}


.smp-archive-header {
  margin-bottom: 20px;
}

.smp-archive-item .smp-entry-title {
  font-size: 1.5rem;
}


.smp-archive-actions {
  margin-top: 18px;
}

.smp-read-more-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  background: #111827;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  line-height: 1;
}

.smp-read-more-button:hover,
.smp-read-more-button:focus {
  color: #ffffff;
  opacity: 0.92;
}


.smp-breadcrumbs {
  margin: 0 auto 18px;
  max-width: 960px;
  padding: 0 20px;
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.6;
}

.smp-breadcrumbs a {
  color: #111827;
  text-decoration: none;
  font-weight: 600;
}

.smp-breadcrumb-sep {
  display: inline-block;
  margin: 0 8px;
  color: #9ca3af;
}

.smp-archive-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.smp-archive-header-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.smp-post-search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 320px;
  max-width: 100%;
}

.smp-post-search input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  background: #fff;
  color: #111827;
  font: inherit;
}

.smp-post-search button,
.smp-read-more-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid #111827;
  border-radius: 999px;
  background: #111827;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.smp-article-ad {
  margin-top: 20px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

@media (max-width: 720px) {
  .smp-archive-header-top {
    flex-direction: column;
  }

  .smp-post-search {
    flex: 1 1 auto;
    width: 100%;
  }

  .smp-post-search button {
    padding-left: 16px;
    padding-right: 16px;
  }
}
