/**
 * WordPress-specific overrides and blog layout styles.
 *
 * @package Mayur_Paneliya
 */

.custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.custom-logo {
  max-height: 48px;
  width: auto;
}

/* Blog / content layout */
.site-main {
  padding: 120px 0 80px;
  min-height: 50vh;
}

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

.page-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
}

.entry-content,
.entry-summary {
  color: var(--text-muted);
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content img,
.wp-block-image img {
  border-radius: var(--radius-sm);
}

.wp-block-quote {
  border-left: 3px solid var(--primary);
  padding-left: 1.25rem;
  color: var(--text);
}

/* Content cards for archive loops */
.content-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.content-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.content-card__thumb img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.content-card__body {
  padding: 1.5rem;
}

.content-card__title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  margin: 0 0 0.75rem;
}

.content-card__title a {
  color: var(--text);
}

.content-card__meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

/* Sidebar */
.widget-area .widget {
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.widget-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
}

.widget a {
  color: var(--text-muted);
}

.widget a:hover {
  color: var(--primary-light);
}

/* Comments */
.comments-area {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.comment-list {
  list-style: none;
  padding: 0;
}

.comment-body {
  padding: 1.25rem;
  margin-bottom: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
}

.comment-form .submit {
  background: var(--gradient);
  border: none;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
}

/* 404 */
.error-404 {
  text-align: center;
  padding: 80px 0;
}

.error-404 .page-title {
  font-size: clamp(3rem, 8vw, 6rem);
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Search form */
.search-form {
  display: flex;
  gap: 0.5rem;
  max-width: 480px;
  margin: 0 auto;
}

.search-form .search-field {
  flex: 1;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 50px;
  padding: 0.75rem 1.25rem;
}

.search-form .search-submit {
  background: var(--gradient);
  border: none;
  color: #fff;
  border-radius: 50px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
}

/* Screen reader */
.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;
}

/* Alignments */
.alignwide {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
}

.has-sidebar .content-area {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
}

@media (max-width: 991px) {
  .has-sidebar .content-area {
    grid-template-columns: 1fr;
  }
}

/* Pagination */
.navigation.pagination {
  margin-top: 2.5rem;
}

.navigation.pagination .nav-links {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.navigation.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.navigation.pagination .page-numbers.current,
.navigation.pagination .page-numbers:hover {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
}

/* Contact form AJAX states */
.form-success.show {
  display: block;
}

.contact__form .is-loading {
  opacity: 0.7;
  pointer-events: none;
}
