/*
Theme Name: Sporta Jaunumi
Theme URI: https://sportajaunumi.com
Author: SportaJaunumi.com
Description: Custom theme replicating SportaJaunumi Vite layout with WordPress-powered content.
Version: 1.0.0
Text Domain: sportajaunumi
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Merriweather:wght@400;700&family=Oswald:wght@400;500;700&display=swap');

:root {
  --brand-red: #D61F26;
  --brand-dark: #1A1A1A;
  --brand-gray: #F4F4F4;
  --brand-hover: #B91C22;
  --font-sans: 'Inter', sans-serif;
  --font-display: 'Oswald', sans-serif;
  --font-serif: 'Merriweather', serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--brand-dark);
  background-color: #fff;
  margin: 0;
}

body.modal-open {
  overflow: hidden;
}

 .site-header .primary-menu {
  list-style: none;
  display: none;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
}

@media (min-width: 1200px) {
  .site-header .primary-menu {
    display: flex;
  }
  .site-header .primary-menu a {
    font-size: 0.85rem;
    text-transform: uppercase;
    padding: 0.35rem 0.75rem;
    border-radius: 0.5rem;
    transition: background 0.2s;
  }
  .site-header .primary-menu a:hover {
    background: var(--brand-hover);
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ticker-pill {
  display: none;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.15);
}

@media (min-width: 992px) {
  .ticker-pill {
    display: inline-flex;
  }
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
  0% { opacity: 0.3; }
  50% { opacity: 1; }
  100% { opacity: 0.3; }
}

.prefs-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.9rem;
  border-radius: 0.5rem;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.prefs-trigger .icon {
  font-size: 1rem;
}

.icon-button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.mobile-menu-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 20px;
  height: 2px;
  background: #fff;
  display: block;
}

.mobile-menu {
  display: none;
  background: var(--brand-red);
  color: #fff;
  padding: 1rem;
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu__list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.mobile-menu__list li {
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.mobile-menu__list a {
  display: block;
  padding: 0.75rem 0;
  text-transform: uppercase;
}

.mobile-menu .prefs-trigger {
  width: 100%;
  justify-content: center;
  border-color: #fff;
}

*, *::before, *::after {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding-inline: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-primary {
  background: var(--brand-red);
  color: #fff;
}

.btn-outline {
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
}

.badge {
  display: inline-flex;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  text-transform: uppercase;
}

.badge-pill {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.grid {
  display: grid;
}

.site-main {
  min-height: 60vh;
}

.personalized {
  background: #f9fafb;
  border-bottom: 1px solid #eee;
  padding: 1rem 0 2rem;
}

.text-link {
  color: var(--brand-red);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-transform: uppercase;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2vw, 2rem);
}

.section-title::before {
  content: '';
  width: 6px;
  height: 36px;
  background: var(--brand-red);
  border-radius: 999px;
}

.hero {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  background: #000;
  color: #fff;
}

.hero__image {
  width: 100%;
  height: clamp(320px, 50vw, 520px);
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0,0,0,0.8), rgba(0,0,0,0.35));
}

.hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  gap: 1.5rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
}

.article-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  border: 1px solid #eee;
  border-radius: 1rem;
  transition: border-color 200ms ease, transform 200ms ease;
  background: #fff;
  position: relative;
}

.article-card:hover {
  border-color: rgba(214,31,38,0.3);
  transform: translateY(-3px);
}

.article-card__category {
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brand-red);
}

.article-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
}

.article-card__excerpt {
  color: #5c5c5c;
  font-size: 0.95rem;
}

.article-card__meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: #8c8c8c;
}

.sidebar {
  border-left: 1px solid #eee;
  padding-left: 2rem;
}

.layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .layout {
    grid-template-columns: 2fr 1fr;
  }
}

.sidebar-widget {
  margin-bottom: 2.5rem;
}

.sidebar-widget h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1rem;
}

.sidebar .podcast-card {
  background: #0f172a;
  color: #fff;
  border-radius: 1rem;
  padding: 1.5rem;
}

.sidebar .newsletter-card {
  border: 1px solid #eee;
  padding: 1.5rem;
  border-radius: 1rem;
}

.sidebar .newsletter-card input {
  width: 100%;
  padding: 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid #ddd;
  margin-bottom: 0.75rem;
}

.infobar {
  background: var(--brand-gray);
  border-bottom: 1px solid #eee;
}

.infobar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.infobar__tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.infobar__tag {
  font-size: 0.85rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid #ddd;
  color: #555;
  background: #fff;
}

.preferences-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 2000;
}

.preferences-modal.is-visible {
  display: flex;
}

.preferences-modal__panel {
  background: #fff;
  border-radius: 1.5rem;
  padding: clamp(1.5rem, 2vw, 2.5rem);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
}

.preferences-modal__options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.preferences-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid #ddd;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  font-size: 0.85rem;
}

.preferences-chip.is-active {
  border-color: var(--brand-red);
  color: var(--brand-red);
}

.preferences-modal input[type="text"] {
  width: 100%;
  padding: 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid #ddd;
  margin-bottom: 0.75rem;
}

.single-post a {
  color: var(--brand-red);
}

.footer {
  background: var(--brand-dark);
  color: #bcbcbc;
  padding: 3rem 0;
  margin-top: 4rem;
  border-top: 4px solid var(--brand-red);
}

.footer h3, .footer h4 {
  color: #fff;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer__columns {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  padding-top: 1.5rem;
  font-size: 0.75rem;
}

@media (max-width: 1024px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    border-left: none;
    padding-left: 0;
  }
}

@media (max-width: 768px) {
  .hero__content {
    position: relative;
  }
  .hero__overlay {
    position: absolute;
  }
  .infobar__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
