/* ==========================================================================
   Brandverse — WordPress-only styles
   Layered on top of css/style.css (the untouched original stylesheet) to cover
   the pieces a static site never had: comments, sidebar widgets, pagination,
   post navigation, search results and empty states.
   Uses the same CSS variables declared in css/style.css.
   ========================================================================== */

/* ===== Empty states (404, no results, no posts) ===== */
.bv-empty {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 20px;
}

.bv-empty h2 {
  font-family: var(--font-heading);
  font-size: clamp(26px, 4vw, 38px);
  color: var(--white);
  margin-bottom: 14px;
}

.bv-empty p {
  color: var(--text-muted);
  margin-bottom: 28px;
}

.bv-404-code {
  font-family: var(--font-heading);
  font-size: clamp(90px, 18vw, 180px);
  font-weight: 700;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}

/* ===== Search ===== */
.bv-search-bar {
  max-width: 520px;
  margin: 0 auto 40px;
}

.bv-search-bar form,
.widget_search form,
.wp-block-search__inside-wrapper {
  display: flex;
  gap: 10px;
}

.bv-search-bar input[type="search"],
.widget_search input[type="search"],
.wp-block-search__input {
  flex: 1;
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(212, 168, 83, 0.2);
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: border-color var(--transition);
}

.bv-search-bar input[type="search"]:focus,
.widget_search input[type="search"]:focus,
.wp-block-search__input:focus {
  border-color: var(--gold);
}

.bv-search-bar input[type="submit"],
.widget_search input[type="submit"],
.wp-block-search__button {
  padding: 14px 24px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--gradient);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  transition: opacity var(--transition);
}

.bv-search-bar input[type="submit"]:hover,
.widget_search input[type="submit"]:hover,
.wp-block-search__button:hover {
  opacity: 0.88;
}

.bv-result-count {
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 32px;
  font-size: 14px;
}

/* ===== Pagination ===== */
.bv-pagination {
  margin-top: 56px;
}

.bv-pagination-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

.bv-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(212, 168, 83, 0.18);
  background: var(--surface-2);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all var(--transition);
}

.bv-pagination a.page-numbers:hover {
  border-color: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
}

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

.bv-pagination .page-numbers.dots {
  border-color: transparent;
  background: transparent;
}

/* ===== Post navigation (prev / next) ===== */
.bv-post-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 50px auto 0;
}

.bv-post-nav-link {
  display: block;
  padding: 22px 26px;
  border-radius: var(--radius);
  border: 1px solid rgba(212, 168, 83, 0.15);
  background: var(--surface-2);
  text-decoration: none;
  transition: all var(--transition);
}

.bv-post-nav-link:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}

.bv-post-nav-link span {
  display: block;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.bv-post-nav-link strong {
  display: block;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 17px;
  line-height: 1.4;
}

.bv-post-nav-next {
  text-align: right;
}

/* ===== Post tags ===== */
.bv-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 30px 0 10px;
}

/* ===== Sidebar widgets ===== */
.bv-sidebar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.bv-sidebar .widget {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid rgba(212, 168, 83, 0.15);
  background: var(--surface-2);
}

.bv-sidebar .widget-title,
.bv-sidebar .wp-block-heading {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--white);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(212, 168, 83, 0.15);
}

.bv-sidebar ul {
  list-style: none;
}

.bv-sidebar li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.bv-sidebar li:last-child {
  border-bottom: none;
}

.bv-sidebar a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.bv-sidebar a:hover {
  color: var(--gold);
}

/* ===== Footer extra widget area ===== */
.footer-extra {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ===== Comments ===== */
.bv-comments {
  max-width: 900px;
  margin: 60px auto 0;
  padding-top: 50px;
  border-top: 1px solid rgba(212, 168, 83, 0.15);
}

.bv-comments-title,
.bv-comments #reply-title {
  font-family: var(--font-heading);
  font-size: 26px;
  color: var(--white);
  margin-bottom: 28px;
}

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

.bv-comment-list .children {
  margin-left: 32px;
  padding-left: 20px;
  border-left: 1px solid rgba(212, 168, 83, 0.15);
}

.bv-comment-list li.comment,
.bv-comment-list li.pingback {
  margin-bottom: 22px;
}

.bv-comment-list .comment-body {
  padding: 24px 26px;
  border-radius: var(--radius);
  border: 1px solid rgba(212, 168, 83, 0.12);
  background: var(--surface-2);
}

.bv-comment-list .comment-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.bv-comment-list .comment-author img {
  border-radius: 50%;
}

.bv-comment-list .comment-author .fn {
  color: var(--white);
  font-weight: 600;
  font-style: normal;
}

.bv-comment-list .comment-author .says {
  display: none;
}

.bv-comment-list .comment-metadata {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.bv-comment-list .comment-metadata a {
  color: var(--text-muted);
  text-decoration: none;
}

.bv-comment-list .comment-content p {
  color: var(--text);
  margin-bottom: 10px;
}

.bv-comment-list .reply a {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
}

.bv-comment-list .comment-awaiting-moderation {
  display: block;
  font-size: 13px;
  color: var(--primary-light);
  margin-bottom: 10px;
}

.bv-comments-closed {
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 24px;
}

.bv-comment-notes {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.bv-comment-form .form-group {
  margin-bottom: 18px;
}

.bv-comment-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.bv-comment-form input[type="text"],
.bv-comment-form input[type="email"],
.bv-comment-form input[type="url"],
.bv-comment-form textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(212, 168, 83, 0.2);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: border-color var(--transition);
}

.bv-comment-form input:focus,
.bv-comment-form textarea:focus {
  border-color: var(--gold);
}

.bv-comment-form .form-submit {
  margin-top: 10px;
}

.bv-comment-form .submit {
  cursor: pointer;
  border: none;
}

.comment-respond .comment-reply-title small a {
  font-size: 14px;
  color: var(--primary);
  margin-left: 10px;
}

/* ===== Editor / block content inside .blog-detail-content ===== */
.blog-detail-content .wp-block-image img,
.blog-detail-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.blog-detail-content blockquote,
.blog-detail-content .wp-block-quote {
  margin: 26px 0;
  padding: 20px 26px;
  border-left: 3px solid var(--gold);
  background: rgba(212, 168, 83, 0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text);
  font-style: italic;
}

.blog-detail-content pre,
.blog-detail-content .wp-block-code {
  overflow-x: auto;
  padding: 20px;
  border-radius: var(--radius-sm);
  background: var(--darker);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 14px;
}

.blog-detail-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}

.blog-detail-content th,
.blog-detail-content td {
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.blog-detail-content th {
  background: var(--surface-2);
  color: var(--white);
}

.page-links {
  margin-top: 24px;
  color: var(--text-muted);
  font-size: 14px;
}

.page-links a {
  color: var(--gold);
  text-decoration: none;
  margin: 0 4px;
}

/* ===== Admin bar offset ===== */
body.admin-bar .navbar {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .navbar {
    top: 46px;
  }
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .bv-post-nav-next {
    text-align: left;
  }

  .bv-comment-list .children {
    margin-left: 12px;
    padding-left: 12px;
  }

  .bv-search-bar form {
    flex-direction: column;
  }
}
