/* ==========================================================================
   Adopt Me Trading Values — WordPress additions.

   style.css holds the original site stylesheet unchanged. Everything added for
   WordPress lives here: blog templates, the item page, the value list, and the
   rules that used to sit in <style> blocks inside the old PHP pages.

   Palette carried over from the original design:
     page background  #f0f4f8
     panels           #B4EFFF
     accent           #3b82f6 / #2563eb
     value gradient   #667eea -> #764ba2
   ========================================================================== */

/* Generic content wrappers ------------------------------------------------ */

.amv-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 20px 50px;
}

.amv-wrap--narrow {
  max-width: 780px;
}

.amv-page-title {
  font-size: 36px;
  line-height: 1.2;
  color: #1f2937;
  margin: 0 0 10px;
}

.amv-page-intro {
  color: #4b5563;
  font-size: 18px;
  margin: 0 0 30px;
}

.amv-card {
  background: #ffffff;
  border-radius: 15px;
  padding: 28px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 25px;
}

.amv-card h1,
.amv-card h2,
.amv-card h3 {
  color: #1f2937;
  line-height: 1.25;
}

.amv-card h2 {
  font-size: 26px;
  margin: 30px 0 12px;
}

.amv-card h3 {
  font-size: 20px;
  margin: 24px 0 10px;
}

.amv-card p,
.amv-card li {
  color: #374151;
  font-size: 17px;
  line-height: 1.7;
}

.amv-card ul,
.amv-card ol {
  padding-left: 22px;
}

.amv-card a {
  color: #2563eb;
}

.amv-card img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.amv-card blockquote {
  margin: 20px 0;
  padding: 12px 20px;
  border-left: 4px solid #3b82f6;
  background: #f0f4f8;
  border-radius: 0 10px 10px 0;
}

.amv-card code {
  background: #f0f4f8;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 15px;
}

.amv-card pre {
  background: #1f2937;
  color: #f9fafb;
  padding: 16px;
  border-radius: 10px;
  overflow-x: auto;
}

.amv-card table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
}

.amv-card th,
.amv-card td {
  border: 1px solid #e0e7ff;
  padding: 10px 12px;
  text-align: left;
}

.amv-card th {
  background: #f0f4f8;
}

/* Post list --------------------------------------------------------------- */

.amv-post-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
}

.amv-post-card {
  background: #ffffff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.amv-post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.amv-post-card__thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.amv-post-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.amv-post-card__title {
  font-size: 20px;
  margin: 0 0 8px;
  line-height: 1.3;
}

.amv-post-card__title a {
  color: #1f2937;
  text-decoration: none;
}

.amv-post-card__title a:hover {
  color: #2563eb;
}

.amv-post-card__meta {
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 10px;
}

.amv-post-card__excerpt {
  color: #4b5563;
  font-size: 16px;
  line-height: 1.6;
  flex: 1;
}

.amv-post-card__more {
  margin-top: 14px;
  align-self: flex-start;
  padding: 8px 18px;
  background: #3b82f6;
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 15px;
}

.amv-post-card__more:hover {
  background: #2563eb;
}

/* Single post ------------------------------------------------------------- */

.amv-post-meta {
  color: #6b7280;
  font-size: 15px;
  margin-bottom: 20px;
}

.amv-post-thumb img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  margin-bottom: 25px;
}

/* Pagination -------------------------------------------------------------- */

.amv-pagination {
  margin-top: 35px;
  text-align: center;
}

.amv-pagination .page-numbers {
  display: inline-block;
  padding: 10px 16px;
  margin: 0 4px;
  background: #ffffff;
  color: #2563eb;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.amv-pagination .page-numbers.current,
.amv-pagination .page-numbers:hover {
  background: #3b82f6;
  color: #ffffff;
}

/* Item page --------------------------------------------------------------- */

.item-detail-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
}

.item-header {
  text-align: center;
  margin-bottom: 40px;
}

.item-image-large {
  width: 250px;
  height: 250px;
  object-fit: contain;
  background: #f0f4f8;
  border-radius: 20px;
  padding: 30px;
  margin: 0 auto 20px;
  display: block;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.item-title {
  font-size: 42px;
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 10px;
}

.item-category {
  font-size: 20px;
  color: #6b7280;
  text-transform: capitalize;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.value-card {
  background: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.value-card-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 10px;
}

.value-display {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
  border-radius: 10px;
  font-size: 32px;
  font-weight: bold;
  text-align: center;
}

.back-button {
  display: inline-block;
  padding: 12px 30px;
  background: #3b82f6;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  margin-bottom: 30px;
  transition: background 0.3s ease;
}

.back-button:hover {
  background: #2563eb;
}

.not-available {
  opacity: 0.5;
  background: #e5e7eb;
}

.not-available .value-display {
  background: #9ca3af;
}

.item-related {
  margin-top: 50px;
}

.item-related h2 {
  font-size: 24px;
  color: #1f2937;
  margin-bottom: 18px;
}

.item-related__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.item-related__list a {
  display: inline-block;
  padding: 8px 16px;
  background: #ffffff;
  border-radius: 8px;
  color: #2563eb;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.item-related__list a:hover {
  background: #3b82f6;
  color: #ffffff;
}

@media (max-width: 768px) {
  .item-title {
    font-size: 32px;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .amv-page-title {
    font-size: 28px;
  }
}

/* Value list page --------------------------------------------------------- */

.global-calculator {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 25px;
  margin: 20px auto;
  max-width: 1400px;
  border-radius: 15px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.global-calculator h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 28px;
}

.global-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.filter-controls {
  background: white;
  max-width: 1400px;
  margin: 20px auto;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.pet-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-top: 30px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding: 20px;
}

.pet-card {
  background: white;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pet-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

@media (max-width: 1200px) {
  .pet-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 800px) {
  .pet-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .pet-grid {
    grid-template-columns: 1fr;
  }
}

/* Guide strip and calculator border, previously inline in home.php --------- */

.guide {
  text-align: center;
  padding: 20px;
  background-color: #B4EFFF;
  font-size: 18px;
}

@media (max-width: 480px) {
  .guide {
    font-size: 15px;
  }
}

@media (max-width: 400px) {
  .guide {
    font-size: 13px;
  }
}

@media (max-width: 350px) {
  .guide {
    font-size: 10px;
  }
}

.border {
  background-color: #B4EFFF;
  border-radius: 25px;
  margin: calc(8px + 1.5625vw);
  text-align: left;
}

@media (max-width: 480px) {
  .border {
    background-color: #B4EFFF;
    border-radius: 25px;
    margin: calc(4px + 0.75vw);
    text-align: left;
  }
}

/* Navigation active state, previously inline in nav.php -------------------- */

.navigation__link.active {
  background-color: #2563eb;
  border-radius: 5px;
}

/* Footer ------------------------------------------------------------------ */

.amv-footer {
  padding: 20px;
}

.amv-footer p {
  text-align: center;
  margin: 0 0 8px;
}

.amv-footer a {
  color: #3b82f6;
  text-decoration: none;
}

.amv-footer a:hover {
  text-decoration: underline;
}

/* Utility ----------------------------------------------------------------- */

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* ==========================================================================
   Legal and content pages
   Lifted from the <style> blocks that were inline in the original
   privacy.php / terms.php / disclaimer.php, which WordPress would strip
   from post content.
   ========================================================================== */

/* from pages/privacy.php */
.content-page {
        max-width: 900px;
        margin: 40px auto;
        padding: 30px;
        background: white;
        border-radius: 15px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .page-header {
        text-align: center;
        padding-bottom: 30px;
        border-bottom: 2px solid #e5e7eb;
        margin-bottom: 30px;
    }

    .page-header h1 {
        font-size: 36px;
        color: #1f2937;
        margin-bottom: 10px;
    }

    .last-updated {
        color: #6b7280;
        font-size: 14px;
    }

    .content-section {
        margin-bottom: 30px;
    }

    .content-section h2 {
        font-size: 24px;
        color: #374151;
        margin-bottom: 15px;
        padding-top: 10px;
    }

    .content-section p {
        font-size: 16px;
        line-height: 1.8;
        color: #4b5563;
        margin-bottom: 15px;
    }

    .content-section ul {
        margin-left: 30px;
        margin-bottom: 15px;
    }

    .content-section li {
        font-size: 16px;
        line-height: 1.8;
        color: #4b5563;
        margin-bottom: 8px;
    }

    .content-section strong {
        color: #1f2937;
    }

    @media (max-width: 768px) {
        .content-page {
            margin: 20px;
            padding: 20px;
        }

        .page-header h1 {
            font-size: 28px;
        }

        .content-section h2 {
            font-size: 20px;
        }
    }

/* from pages/disclaimer.php */
.content-page {
        max-width: 900px;
        margin: 40px auto;
        padding: 30px;
        background: white;
        border-radius: 15px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .page-header {
        text-align: center;
        padding-bottom: 30px;
        border-bottom: 2px solid #e5e7eb;
        margin-bottom: 30px;
    }

    .page-header h1 {
        font-size: 36px;
        color: #1f2937;
        margin-bottom: 10px;
    }

    .last-updated {
        color: #6b7280;
        font-size: 14px;
    }

    .content-section {
        margin-bottom: 30px;
    }

    .content-section h2 {
        font-size: 24px;
        color: #374151;
        margin-bottom: 15px;
        padding-top: 10px;
    }

    .content-section p {
        font-size: 16px;
        line-height: 1.8;
        color: #4b5563;
        margin-bottom: 15px;
    }

    .content-section ul {
        margin-left: 30px;
        margin-bottom: 15px;
    }

    .content-section li {
        font-size: 16px;
        line-height: 1.8;
        color: #4b5563;
        margin-bottom: 8px;
    }

    .content-section strong {
        color: #1f2937;
    }

    .highlight-box {
        background: #dbeafe;
        border-left: 4px solid #3b82f6;
        padding: 15px 20px;
        border-radius: 8px;
        font-weight: 500;
        color: #1e40af;
    }

    .warning-box {
        background: #fef3c7;
        border-left: 4px solid #f59e0b;
        padding: 15px 20px;
        border-radius: 8px;
        font-weight: 500;
        color: #92400e;
    }

    @media (max-width: 768px) {
        .content-page {
            margin: 20px;
            padding: 20px;
        }

        .page-header h1 {
            font-size: 28px;
        }

        .content-section h2 {
            font-size: 20px;
        }
    }
