/*
Theme Name: PS5 - Worldpanel Theme
Description: A beautiful and modern WordPress theme with clean, professional design
Version: 1.0.0
Author: Worldpanel
Text Domain: worldpanel
*/

/* Custom CSS is loaded via the assets manager */

/* PHP template layouts. Keep these independent of Tailwind utilities. */
.ps-post-layout {
  max-width: 80rem;
  margin-inline: auto;
  padding: 2rem 1rem;
}

.ps-post-layout--single {
  max-width: 56rem;
}

.ps-page-layout {
  min-height: 100vh;
}

.ps-post-card,
.ps-page-content--card {
  background-color: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 5%);
}

.ps-post-card {
  overflow: hidden;
}

.ps-post-list .ps-post-card {
  transition: box-shadow 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.ps-post-list .ps-post-card:hover {
  box-shadow:
    0 4px 6px -1px rgb(0 0 0 / 10%),
    0 2px 4px -2px rgb(0 0 0 / 10%);
}

.ps-post-body,
.ps-page-content {
  padding: 1.5rem;
}

.ps-post-list-header {
  margin-bottom: 3rem;
  text-align: center;
}

.ps-post-list-title {
  margin-bottom: 1rem;
  color: #111827;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 2.5rem;
}

.ps-post-list-description {
  max-width: 42rem;
  margin-inline: auto;
  color: #4b5563;
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.ps-post-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.ps-post-thumbnail {
  display: block;
}

.ps-post-thumbnail-image,
.ps-post-featured-image {
  width: 100%;
  height: 12rem;
  object-fit: cover;
}

.ps-post-featured-image {
  height: 16rem;
}

.ps-post-featured,
.ps-post-header {
  margin-bottom: 2rem;
}

.ps-post-categories,
.ps-post-excerpt {
  margin-bottom: 1rem;
}

.ps-post-category {
  display: inline-block;
  margin-inline-end: 0.5rem;
  border-radius: 9999px;
  background-color: #e0e7ff;
  padding: 0.25rem 0.75rem;
  color: #3730a3;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
}

.ps-post-category:hover {
  background-color: #c7d2fe;
}

.ps-post-list .ps-post-categories {
  margin-bottom: 0.75rem;
}

.ps-post-list .ps-post-category {
  margin-inline-end: 0;
  padding-inline: 0.5rem;
  font-size: 0.75rem;
  line-height: 1rem;
}

.ps-post-title {
  margin-bottom: 0.75rem;
  color: #111827;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
}

.ps-post-layout--single .ps-post-title {
  margin-bottom: 1.5rem;
  font-size: 1.875rem;
}

.ps-post-category,
.ps-post-link,
.ps-post-page-number,
.ps-post-navigation-link,
.ps-post-pagination-link,
.ps-post-home-link {
  transition:
    color 150ms cubic-bezier(0.4, 0, 0.2, 1),
    background-color 150ms cubic-bezier(0.4, 0, 0.2, 1),
    border-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.ps-post-link:hover,
.ps-post-search-query {
  color: #4f46e5;
}

.ps-post-excerpt,
.ps-post-summary {
  color: #4b5563;
  line-height: 1.625;
}

.ps-post-meta,
.ps-post-meta-item,
.ps-post-tags-inner {
  display: flex;
  align-items: center;
}

.ps-post-meta,
.ps-post-navigation-label {
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.ps-post-meta-item {
  margin-inline-end: 1rem;
}

.ps-post-meta-icon {
  width: 1rem;
  height: 1rem;
  margin-inline-end: 0.25rem;
}

.ps-post-layout--single .ps-post-meta {
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.ps-post-layout--single .ps-post-meta-item {
  margin-inline-end: 1.5rem;
  margin-bottom: 0.5rem;
}

.ps-post-layout--single .ps-post-meta-icon {
  margin-inline-end: 0.5rem;
}

.ps-post-meta .ps-post-meta-comments {
  margin-inline-end: 0;
}

.ps-post-summary,
.ps-post-page-links {
  border-radius: 0.5rem;
  background-color: #f9fafb;
  padding: 1rem;
}

.ps-post-summary {
  font-size: 1.25rem;
}

.ps-post-page-links,
.ps-post-comments {
  margin-top: 2rem;
}

.ps-post-page-label,
.ps-post-tags-label {
  color: #374151;
  font-weight: 500;
}

.ps-post-page-number {
  display: inline-block;
  margin-inline: 0.25rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.25rem;
  background-color: #fff;
  padding: 0.25rem 0.75rem;
}

.ps-post-page-number:hover {
  background-color: #eef2ff;
}

.ps-post-tags,
.ps-post-navigation {
  margin-top: 2rem;
  border-top: 1px solid #e5e7eb;
  padding-top: 1.5rem;
}

.ps-post-tags-inner {
  flex-wrap: wrap;
}

.ps-post-tags-label {
  margin-inline-end: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.ps-post-navigation-inner {
  display: flex;
  justify-content: space-between;
}

.ps-post-navigation-link {
  display: flex;
  align-items: center;
  color: #4f46e5;
}

.ps-post-navigation-link:hover {
  color: #4338ca;
}

.ps-post-navigation-link--next {
  margin-inline-start: auto;
  text-align: end;
}

.ps-post-navigation-icon,
.ps-post-pagination-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.ps-post-navigation-icon {
  margin-inline-end: 0.5rem;
}

.ps-post-navigation-link--next .ps-post-navigation-icon {
  margin-inline-start: 0.5rem;
  margin-inline-end: 0;
}

.ps-post-navigation-title {
  font-weight: 500;
}

.ps-post-pagination {
  display: flex;
  justify-content: center;
}

.ps-post-pagination-inner {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.ps-post-pagination-link {
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  background-color: #fff;
  padding: 0.5rem 1rem;
  color: #374151;
}

.ps-post-pagination-link.current {
  border: 0;
  background-color: #4f46e5;
  color: #fff;
  font-weight: 500;
}

.ps-post-pagination-link:not(.current):hover {
  background-color: #f9fafb;
}

.ps-post-empty {
  padding-block: 4rem;
  text-align: center;
}

.ps-post-empty-content {
  max-width: 28rem;
  margin-inline: auto;
}

.ps-post-empty-icon {
  width: 4rem;
  height: 4rem;
  margin-inline: auto;
  margin-bottom: 1rem;
  color: #9ca3af;
}

.ps-post-empty-title {
  margin-bottom: 0.5rem;
  color: #111827;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 2rem;
}

.ps-post-empty-description {
  margin-bottom: 1.5rem;
  color: #4b5563;
}

.ps-post-home-link {
  display: inline-block;
  border-radius: 0.375rem;
  background-color: #4f46e5;
  padding: 0.75rem 1.5rem;
  color: #fff;
  font-weight: 500;
}

.ps-post-home-link:hover {
  background-color: #4338ca;
}

.ps-search-container {
  width: 100%;
}

/* Preserve the breakpoints in the stylesheet currently served by the PHP theme. */
@media (min-width: 640px) {
  .ps-post-layout {
    padding-inline: 1.5rem;
  }

  .ps-search-container {
    max-width: 640px;
  }
}

@media (min-width: 768px) {
  .ps-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ps-search-container {
    max-width: 768px;
  }
}

@media (min-width: 1024px) {
  .ps-post-layout {
    padding-inline: 2rem;
  }

  .ps-post-layout--single .ps-post-body,
  .ps-page-content {
    padding: 2rem;
  }

  .ps-post-list-title {
    font-size: 3rem;
    line-height: 1;
  }

  .ps-post-layout--single .ps-post-title {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }

  .ps-post-featured-image {
    height: 20rem;
  }

  .ps-post-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ps-search-container {
    max-width: 1024px;
  }
}

@media (min-width: 1280px) {
  .ps-search-container {
    max-width: 1280px;
  }
}

@media (min-width: 1536px) {
  .ps-search-container {
    max-width: 1536px;
  }
}

/* Prose styling for content areas */
.prose {
  color: #374151;
  max-width: 65ch;
}

.prose p {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
  color: #111827;
  font-weight: 600;
  line-height: 1.25;
}

.prose h1 {
  font-size: 2.25em;
  margin-top: 0;
  margin-bottom: 0.8888889em;
}

.prose h2 {
  font-size: 1.5em;
  margin-top: 2em;
  margin-bottom: 1em;
}

.prose h3 {
  font-size: 1.25em;
  margin-top: 1.6em;
  margin-bottom: 0.6em;
}

.prose a {
  color: #4f46e5;
  text-decoration: underline;
  font-weight: 500;
}

.prose a:hover {
  color: #3730a3;
}

.prose strong {
  color: #111827;
  font-weight: 600;
}

.prose ul,
.prose ol {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  padding-inline-start: 1.625em;
}

.prose li {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

.prose blockquote {
  font-weight: 500;
  font-style: italic;
  color: #111827;
  border-inline-start-width: 0.25rem;
  border-inline-start-color: #e5e7eb;
  quotes: '\201C' '\201D' '\2018' '\2019';
  margin-top: 1.6em;
  margin-bottom: 1.6em;
  padding-inline-start: 1em;
}

.prose img {
  margin-top: 2em;
  margin-bottom: 2em;
}

.prose figure {
  margin-top: 2em;
  margin-bottom: 2em;
}

.prose code {
  color: #111827;
  font-weight: 600;
  font-size: 0.875em;
}

.prose pre {
  color: #e5e7eb;
  background-color: #374151;
  overflow-x: auto;
  font-size: 0.875em;
  line-height: 1.7142857;
  margin-top: 1.7142857em;
  margin-bottom: 1.7142857em;
  border-radius: 0.375rem;
  padding-top: 0.8571429em;
  padding-inline-end: 1.1428571em;
  padding-bottom: 0.8571429em;
  padding-inline-start: 1.1428571em;
}

.prose table {
  width: 100%;
  table-layout: auto;
  text-align: start;
  margin-top: 2em;
  margin-bottom: 2em;
  font-size: 0.875em;
  line-height: 1.7142857;
}

.prose thead {
  color: #111827;
  font-weight: 600;
  border-bottom-width: 1px;
  border-bottom-color: #d1d5db;
}

.prose tbody tr {
  border-bottom-width: 1px;
  border-bottom-color: #e5e7eb;
}

.prose th,
.prose td {
  padding-inline-start: 0.5714286em;
  padding-inline-end: 0.5714286em;
  padding-top: 0.5714286em;
  padding-bottom: 0.5714286em;
}

/* WordPress specific classes */
.wp-block-image {
  margin: 2em 0;
}

.wp-block-quote {
  border-inline-start: 4px solid #e5e7eb;
  padding-inline-start: 1em;
  margin: 1.6em 0;
  font-style: italic;
}

.wp-block-quote cite {
  font-style: normal;
  font-size: 0.875em;
  color: #6b7280;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .prose {
    font-size: 16px;
    line-height: 1.75;
  }

  .prose h1 {
    font-size: 2em;
  }

  .prose h2 {
    font-size: 1.5em;
  }
}
