/*
Theme Name: SVI Network Theme
Theme URI: https://svinews.com
Author: SVI Media
Description: Fast, lightweight, modern Bootstrap WordPress news theme.
Version: 1.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: svi-network
*/

/*
 * Design Tokens & Colors
 */
:root {
  --svired: #661713;
  --svired-hover: #52120f;
  --svired-light: #fdf5f5;
  --svired-border: #e8d0cf;
  --svi-dark: #1a1a1a;
  --svi-gray: #555555;
  --svi-light-gray: #f8f9fa;
  --svi-border-color: #e9ecef;
}

body {
  color: var(--svi-dark);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  background-color: #ffffff;
}

/* SVI Red Utility Classes */
.bg-svired {
  background-color: var(--svired) !important;
}

.text-svired {
  color: var(--svired) !important;
}

.border-svired {
  border-color: var(--svired) !important;
}

.btn-outline-svired {
  color: var(--svired);
  border: 1px solid var(--svired);
  background-color: transparent;
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: 2rem;
  transition: all 0.15s ease-in-out;
}

.btn-outline-svired:hover,
.btn-outline-svired:focus,
.btn-outline-svired:active {
  color: #ffffff !important;
  background-color: var(--svired) !important;
  border-color: var(--svired) !important;
}

/*
 * Header & Navigation
 */
.site-header-wrapper {
  background-color: #ffffff;
  border-bottom: 1px solid var(--svi-border-color);
}

.site-sticky-navbar {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1030;
}

.logo {
  max-width: 220px;
  height: auto;
  display: inline-block;
}

@media (max-width: 767px) {
  .logo {
    max-height: 42px !important;
  }
}

.menu-container {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.menu-container ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.35rem;
  width: 100%;
}

.menu-container li {
  margin: 0;
}

.menu-container a {
  display: inline-block;
  text-decoration: none;
  color: var(--svired);
  background-color: transparent;
  border: 1px solid var(--svired);
  font-weight: 500;
  line-height: 1.15;
  font-size: 0.725rem;
  text-align: center;
  padding: 0.22rem 0.55rem;
  border-radius: 0.3rem;
  white-space: nowrap;
  transition: all 0.15s ease-in-out;
}

.menu-container a:hover {
  color: #ffffff;
  background-color: var(--svired);
  border-color: var(--svired);
}

.menu-container a:focus {
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(102, 23, 19, 0.2);
}

@media (min-width: 768px) {
  .menu-container {
    width: auto;
  }
  .menu-container ul {
    gap: 0.45rem;
    justify-content: flex-end;
  }
  .menu-container a {
    font-size: 0.8rem;
    padding: 0.28rem 0.65rem;
  }
}

/* Secondary Navbar (Red Bar) */
.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  font-size: 0.925rem;
  padding: 0.5rem 0.85rem;
  letter-spacing: 0.015em;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
  color: #ffffff;
  background-color: var(--svired-hover);
  border-radius: 0.25rem;
}

/*
 * Section Headings
 */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--svired);
  padding-bottom: 0.4rem;
  margin-bottom: 1.25rem;
  margin-top: 2rem;
}

.section-header h2,
.section-header h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--svired);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.section-header .section-more-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--svired);
  text-decoration: none;
  transition: color 0.15s ease-in-out;
}

.section-header .section-more-link:hover {
  color: var(--svired-hover);
  text-decoration: underline;
}

/*
 * Modern News Cards
 */
.news-card {
  border: 1px solid var(--svi-border-color);
  border-radius: 0.5rem;
  background-color: #ffffff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
}

.news-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #f0f0f0;
  overflow: hidden;
}

.news-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.news-card:hover .news-card-img-wrap img {
  transform: scale(1.03);
}

.news-card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.news-card-title a {
  color: var(--svi-dark);
  text-decoration: none;
  transition: color 0.15s ease-in-out;
}

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

.news-card-meta {
  font-size: 0.775rem;
  color: #6c757d;
  margin-top: auto;
}

/*
 * Hero / Lead Story Card
 */
.hero-story-card {
  border: 1px solid var(--svi-border-color);
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: #ffffff;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.15s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.hero-story-card:hover {
  box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.1);
}

.hero-story-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #f0f0f0;
  overflow: hidden;
}

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

.hero-story-card:hover .hero-story-img-wrap img {
  transform: scale(1.02);
}

.hero-story-body {
  padding: 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.hero-story-title {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.hero-story-title a {
  color: var(--svi-dark);
  text-decoration: none;
  transition: color 0.15s ease;
}

.hero-story-title a:hover {
  color: var(--svired);
}

/*
 * Trending List (Numbered ranking)
 */
.trending-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.trending-item {
  display: flex;
  align-items: flex-start;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--svi-border-color);
  gap: 0.75rem;
}

.trending-item:last-child {
  border-bottom: none;
}

.trending-rank {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--svired-light);
  color: var(--svired);
  border: 1px solid var(--svired-border);
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trending-link {
  color: var(--svi-dark);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  transition: color 0.15s ease-in-out;
}

.trending-link:hover {
  color: var(--svired);
}

/*
 * Event List Items
 */
.event-item {
  display: flex;
  align-items: flex-start;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--svi-border-color);
  gap: 0.75rem;
}

.event-item:last-child {
  border-bottom: none;
}

.event-date-badge {
  flex-shrink: 0;
  width: 44px;
  border-radius: 0.375rem;
  background-color: var(--svired);
  color: #ffffff;
  text-align: center;
  overflow: hidden;
}

.event-date-badge .event-month {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  background-color: var(--svired-hover);
  padding: 0.1rem 0;
}

.event-date-badge .event-day {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.1;
  padding: 0.2rem 0;
}

.event-title {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}

.event-title a {
  color: var(--svi-dark);
  text-decoration: none;
  transition: color 0.15s ease;
}

.event-title a:hover {
  color: var(--svired);
}

.event-meta {
  font-size: 0.75rem;
  color: #6c757d;
  margin-top: 0.15rem;
}

/*
 * Article / Single Post Editorial Typography
 */
.single-post-article {
  max-width: 820px;
  margin: 0 auto;
}

.article-title {
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #111111;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .article-title {
    font-size: 1.75rem;
  }
}

.article-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: #6c757d;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--svi-border-color);
}

.article-byline .author-name {
  font-weight: 700;
  color: var(--svi-dark);
}

.article-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #222222;
}

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

.article-content h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.article-content h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.375rem;
  margin: 1rem 0;
}

.article-featured-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}

/*
 * Ad Containers & Conversion
 */
.ad-slot-wrapper {
  margin: 2rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fafafa;
  border-radius: 0.375rem;
  overflow: hidden;
}

.ad-slot-wrapper iframe {
  border: 0;
  display: block;
}

.embed-responsive {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
}

.embed-responsive-21by9::before {
  display: block;
  content: "";
  padding-top: 42.85714%;
}

.embed-responsive .embed-responsive-item,
.embed-responsive iframe,
.embed-responsive embed,
.embed-responsive video,
.embed-responsive object {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Image Captions */
.wp-caption {
  max-width: 100%;
  padding: 8px;
  text-align: center;
  background-color: #f8f9fa;
  border: 1px solid var(--svi-border-color);
  border-radius: 0.375rem;
  margin: 1.5rem auto;
}

.wp-caption img {
  max-width: 100% !important;
  height: auto;
  margin: 0 auto;
}

.wp-caption-text {
  font-size: 0.85rem;
  color: #6c757d;
  margin-top: 0.5rem;
  margin-bottom: 0;
  font-style: italic;
}
