/* Wrestling News Theme Main Stylesheet */

/* Header */
.site-header {
  background-color: var(--color-header-bg);
  color: var(--color-header-text);
  height: var(--header-height);
  display: flex;
  align-items: center;
  position: relative;
  z-index: 100;
  border-bottom: 2px solid var(--color-primary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.site-header.is-sticky {
  position: sticky;
  top: 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-branding {
  display: flex;
  align-items: center;
}

.site-title-link {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #ffffff;
}

.logo-accent {
  background-color: var(--color-primary);
  color: #ffffff;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.logo-text {
  color: #ffffff;
  margin-left: 0.25rem;
}

/* Primary Navigation */
.primary-nav {
  display: none;
}

@media (min-width: 900px) {
  .primary-nav {
    display: block;
  }
}

.nav-menu-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-menu-list a {
  color: var(--color-nav-link);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.5rem 0;
  position: relative;
}

.nav-menu-list a:hover {
  color: var(--color-primary);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 900px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: -300px;
  width: 280px;
  height: 100vh;
  background-color: #0b0f19;
  color: #ffffff;
  z-index: 1000;
  transition: left 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 20px rgba(0,0,0,0.5);
}

.mobile-drawer.is-open {
  left: 0;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
  border-bottom: 1px solid #1e293b;
}

.mobile-logo-text {
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--color-primary);
}

.mobile-drawer-close {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.8rem;
  cursor: pointer;
}

.mobile-drawer-body {
  padding: 1.25rem;
  overflow-y: auto;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-list a {
  color: #e2e8f0;
  font-weight: 700;
  font-size: 1.1rem;
  display: block;
}

/* Search Modal */
.search-toggle-btn {
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
}

.search-modal {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.95);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.search-modal.is-active {
  display: flex;
}

.search-modal-content {
  width: 100%;
  max-width: 600px;
  position: relative;
}

.search-modal-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 2.5rem;
  cursor: pointer;
}

.search-form {
  display: flex;
  gap: 0.5rem;
}

.search-field {
  flex: 1;
  padding: 0.9rem 1.25rem;
  font-size: 1.1rem;
  border: 2px solid var(--color-primary);
  border-radius: 8px;
  background: #ffffff;
}

.search-submit-btn {
  background-color: var(--color-primary);
  color: #ffffff;
  border: none;
  padding: 0.9rem 1.5rem;
  font-weight: 800;
  border-radius: 8px;
  cursor: pointer;
}

/* Featured Hero Grid */
.featured-news-section {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.featured-grid-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .featured-grid-container {
    grid-template-columns: 1.5fr 1fr;
  }
}

.featured-hero-card {
  position: relative;
  border-radius: var(--card-radius);
  overflow: hidden;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  background-color: #0f172a;
}

.featured-img-wrap {
  position: absolute;
  inset: 0;
}

.featured-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.featured-hero-card:hover .featured-img-wrap img {
  transform: scale(1.04);
}

.featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0) 20%, rgba(15,23,42,0.92) 100%);
}

.featured-hero-content {
  position: relative;
  z-index: 2;
  padding: 1.75rem;
  color: #ffffff;
}

.cat-pill {
  display: inline-block;
  background-color: var(--color-primary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.cat-pill-sm {
  display: inline-block;
  background-color: #1e293b;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.35rem;
}

.featured-hero-title {
  color: #ffffff;
  font-size: clamp(1.4rem, 2.5vw + 0.8rem, 2.1rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.featured-hero-title a {
  color: #ffffff;
}

.featured-hero-title a:hover {
  color: #cbd5e1;
}

.featured-meta {
  font-size: 0.85rem;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.featured-sub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 500px) {
  .featured-sub-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.featured-sub-card {
  background: var(--color-card-bg);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
}

.sub-img-wrap {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.sub-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.featured-sub-card:hover .sub-img-wrap img {
  transform: scale(1.05);
}

.sub-card-content {
  padding: 0.85rem 1rem;
}

.sub-card-title {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 0.35rem;
}

.sub-card-date {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* Champions Section */
.champions-section {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.section-header {
  margin-bottom: 1.25rem;
  border-left: 4px solid var(--color-primary);
  padding-left: 0.85rem;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 900;
  text-transform: uppercase;
}

.section-subtitle {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.champions-scroll-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.champion-card {
  background: var(--color-card-bg);
  border-radius: var(--card-radius);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-primary);
  padding: 1.25rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  position: relative;
  text-align: center;
}

.champ-promo-badge {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 0.7rem;
  font-weight: 900;
  color: var(--color-primary);
  background: rgba(217, 4, 41, 0.08);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.champ-image-wrap {
  width: 80px;
  height: 80px;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--color-primary);
}

.champ-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.champ-title-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.2rem;
}

.champ-holder-name {
  font-size: 1.1rem;
  font-weight: 900;
  margin-bottom: 0.25rem;
}

.champ-reign-date {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* Main Posts Stream & Cards */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.news-post-card {
  background: var(--color-card-bg);
  border-radius: var(--card-radius);
  border: 1px solid var(--color-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.news-post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.card-thumb-link {
  aspect-ratio: 16/9;
  overflow: hidden;
  display: block;
}

.card-thumb-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-post-card:hover .card-thumb-link img {
  transform: scale(1.05);
}

.card-content {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.cat-badge {
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--color-primary);
  letter-spacing: 0.04em;
}

.card-time {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.card-title {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.card-title a:hover {
  color: var(--color-primary);
}

.card-excerpt {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
  flex: 1;
}

.card-meta-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  padding-top: 0.65rem;
}

/* Sidebar Widgets */
.sidebar-widget {
  background: var(--color-card-bg);
  border-radius: var(--card-radius);
  border: 1px solid var(--color-border);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.widget-title {
  font-size: 1.15rem;
  font-weight: 900;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-border);
  text-transform: uppercase;
}

.most-read-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.most-read-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.rank-number {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1;
  min-width: 24px;
}

.most-read-title {
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.3;
}

.most-read-title a:hover {
  color: var(--color-primary);
}

.most-read-meta {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* Event Compact Widget */
.event-card-compact {
  border-left: 3px solid var(--color-primary);
  padding-left: 0.75rem;
  margin-bottom: 0.85rem;
}

.event-promo-tag {
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--color-primary);
}

.event-compact-title {
  font-size: 0.95rem;
  font-weight: 800;
}

.event-compact-meta {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* Load More Button */
.load-more-wrap {
  text-align: center;
  margin-top: 2rem;
}

.load-more-btn {
  background-color: var(--color-primary);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.85rem 2rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color var(--transition-fast);
  min-height: 44px;
}

.load-more-btn:hover {
  background-color: var(--color-primary-hover);
}

/* Single Article Styling */
.single-article-wrap {
  background: var(--color-card-bg);
  border-radius: var(--card-radius);
  border: 1px solid var(--color-border);
  padding: 0.85rem 1rem;
}

/* Mobile Full-Width Edge-to-Edge Rules */
@media (max-width: 639px) {
  html, body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  .site-container {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  .site-main {
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow-x: hidden !important;
  }
  
  .single-article-wrap {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0.25rem 0 !important;
  }
  
  .article-featured-figure {
    margin-left: -0.75rem !important;
    margin-right: -0.75rem !important;
    margin-top: 0.75rem !important;
    margin-bottom: 0.75rem !important;
    width: calc(100% + 1.5rem) !important;
    border-radius: 0 !important;
    overflow: hidden !important;
  }
  
  .article-featured-img {
    border-radius: 0 !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
  }

  .related-posts-section {
    width: 100% !important;
    padding: 0 !important;
    margin-top: 1.5rem !important;
  }

  .related-grid {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
    width: 100% !important;
  }

  .related-card {
    width: 100% !important;
    border-radius: 0.75rem !important;
  }
  
  .post-card-featured,
  .post-card {
    border-radius: 0.5rem !important;
  }
}

@media (min-width: 640px) {
  .single-article-wrap {
    padding: 1.5rem;
  }
}

@media (min-width: 900px) {
  .single-article-wrap {
    padding: 2rem;
  }
}

.article-headline {
  font-size: clamp(1.65rem, 3vw + 0.9rem, 3.25rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: #0f172a;
  margin-top: 0.5rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-border);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.article-lead-excerpt {
  font-size: 1.15rem;
  font-weight: 600;
  font-style: italic;
  color: #334155;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  padding: 0.75rem 1rem;
  background: rgba(217, 4, 41, 0.06);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 8px 8px 0;
}

.article-entry-content h2 {
  font-size: clamp(1.35rem, 2vw + 0.8rem, 2rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  color: #0f172a;
  margin-top: 2rem;
  margin-bottom: 0.85rem;
  padding-left: 0.75rem;
  border-left: 4px solid var(--color-primary);
}

.article-entry-content h3 {
  font-size: clamp(1.15rem, 1.5vw + 0.7rem, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #1e293b;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.meta-author-avatar img {
  border-radius: 50%;
}

.meta-byline {
  font-size: 0.9rem;
}

.meta-dates {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.article-featured-figure {
  margin-bottom: 2rem;
  border-radius: var(--card-radius);
  overflow: hidden;
}

.article-featured-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.featured-img-caption {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 0.5rem;
}

.article-body-content {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--color-text);
  margin-bottom: 2rem;
}

.article-body-content p {
  margin-bottom: 1.5rem;
}

/* Share Bar */
.article-share-bar {
  background: #f1f5f9;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.share-label {
  font-weight: 800;
  font-size: 0.9rem;
}

.share-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.share-btn {
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #ffffff;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.btn-facebook { background: #1877f2; }
.btn-x { background: #000000; }
.btn-whatsapp { background: #25d366; }
.btn-telegram { background: #229ed9; }
.btn-copy { background: #475569; border: none; cursor: pointer; }

/* Author Box */
.author-bio-box {
  background: #f8fafc;
  border: 1px solid var(--color-border);
  border-radius: var(--card-radius);
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.author-avatar-wrap img {
  border-radius: 50%;
}

.author-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.author-description {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
  background-color: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding-top: 3rem;
  padding-bottom: 2rem;
  margin-top: auto;
  border-top: 3px solid var(--color-primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-branding {
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: 0.85rem;
}

.footer-description {
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer-title {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
}

/* Sticky Sidebar Desktop */
@media (min-width: 900px) {
  .sidebar-area.is-sticky-sidebar {
    position: sticky;
    top: 80px;
    align-self: flex-start;
  }
}

/* Google Discover Optimized Title Rules - No awkward word wrap or single word isolation */
.card-title,
.featured-hero-title,
.sub-card-title,
.most-read-title,
.single-post-title {
  text-transform: none !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  hyphens: none !important;
}
