

/*
Theme Name: Sport
Theme URI: https://example.com/
Author: Sorrroka
Description: Custom theme with modular structure (assets, inc)
Version: 1.0
*/


body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  overflow-x:hidden;
}

html{
      overflow-x:hidden;
}

.site-main {
  padding: 0px 20px;
}

div {
padding:.5rem;
}
@media (max-width:768px){
	div {
padding:0;
}
}

/* ===================== СПОРТ-КАТЕГОРИИ ===================== */

.category-scroll-section {
  z-index:3;
  padding: 14px 0;
  position: relative;
  overflow: hidden;
}

.category-scroll-wrapper {
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.category-scroll {
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
}

.category-scroll::-webkit-scrollbar {
  display: none;
}

.scroll-menu-list {
  display: flex;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
  align-items: center;
}

.scroll-menu-list li {
  display: flex;
  align-items: center;
}

.scroll-menu-list a {
  display: flex;
  background: #0a0a0a;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius); /* менее скруглённый */
  color: var(--color-text, #fff);
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  font-weight: 500;
  font-size: 15px;
}

.scroll-menu-list a:hover,
.scroll-menu-list a:focus {
  background: var(--color-accent, #00ff88);
  color: #000;
}

.scroll-menu-list a:hover img,
.scroll-menu-list a:focus img {
  filter: invert(0%);
}

.scroll-menu-list a img {
  width: 20px;
  height: 20px;
  filter: invert(100%); /* делает белым SVG при тёмном фоне */
  transition: filter 0.2s ease;
}

.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-accent);
  border: none;
  font-size: 20px;
  padding: 6px 10px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  display: none;
  transition: background 0.2s ease;
}

.scroll-btn:hover {
  color: grey;
}

.scroll-btn.left {
  left: 0;
}

.scroll-btn.right {
  right: 0;
}

.scroll-btn.visible {
  display: block;
}


/* САМА СЕКЦИЯ */
.hero-section {
    position: relative;
    display: flex;
    padding: 0px 40px;
    background: url(/wp-content/themes/sport/assets/img/hero-bg.webp) no-repeat center / cover;
}

/* ЗАТЕМНЕНИЕ ВНЕШНЕЕ — СЛИЯНИЕ С ФОНОМ */
.hero-section::before {
  content: "";
  position: absolute;
  top: -100px;
  left: -100px;
  right: -100px;
  bottom: -100px;
  z-index: 3;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 30%, #000 65%);
  pointer-events: none;
}

/* Левый блок с текстом */
.hero-text{
    z-index:4;
}
.hero-content {
	width: 88vw;
	color: white;
	display: flex;
	flex-direction: row;
	Gap:80px;
	padding: 0 20px;
	align-items: center;
	justify-content: center;
}

.hero-content h1 {
  font-size: var(--h1-size);
  text-transform: uppercase;
  font-weight: bold;
  color:var(--color-accent);
  text-shadow: 0 0 12px var(--color-accent);
  margin: 0 0 20px;
}

.hero-content p {
  color:var(--color-text);
  font-size: 16px;
}

/* Персонаж */
.hero-character {
  z-index: 2;
  max-width: 50%;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  padding-right: 20px;
}

.hero-character img {
  max-height: 520px;
  object-fit: contain;
  margin-bottom: -30px;
  filter: drop-shadow(0 0 10px rgba(0, 255, 200, 0.25));
}

/* Мобильный */
@media (max-width: 768px) {
  .hero-section {
    flex-direction: column;
    align-items: center;
    padding: 60px 20px 40px;
    text-align: center;
  }

  .hero-content{
    max-width: 100%;
    flex-direction:column;
    justify-content: center;
    
  }

}

/* Logo */
.site-logo img {
  height: 36px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.site-logo:hover img {
  transform: scale(1.05);
  filter: drop-shadow(0 0 6px var(--color-accent));
}

.breadcrumbs {
  background-color: var(--color-bg);
  padding: 16px 0;
  font-size: 14px;
  color: var(--color-muted);
}

.breadcrumbs a {
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumbs a:hover {
  color: var(--color-accent);
}

.breadcrumbs span {
  color: var(--color-muted);
}

.breadcrumbs .breadcrumb_last {
  font-weight: 500;
  color: var(--color-text);
}


/* Sidebar & widgets */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
  margin-top: 40px;
}

@media (max-width: 992px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    margin-top: 40px;
  }
}

.main-content {
  padding:0 1rem;
}

.main-column {
  flex: 1 1 70%;
}

.site-sidebar {
  flex: 0 0 30%;
}

.front-sidebar .widget {
  margin-bottom: 30px;
  background: var(--color-header);
  padding: 0;
  border-radius: var(--radius);
}

.widget-title {
  font-size: 16px;
  color: var(--color-accent);
  margin-bottom: 10px;
}

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

.front-sidebar .widget li {
  margin-bottom: 8px;
}

.front-sidebar .widget a {
  color: var(--color-fg);
  transition: color 0.3s;
}
.front-sidebar .widget a:hover {
  color: var(--color-accent);
}

.front-sidebar input[type=email] {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-fg);
  margin-bottom: 10px;
}

.front-sidebar button,
.front-sidebar input[type=submit] {
  width: 100%;
  padding: 10px;
  background: var(--color-accent);
  color: var(--color-bg);
  border: none;
  border-radius: var(--radius);
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}
.front-sidebar button:hover,
.front-sidebar input[type=submit]:hover {
  background: #00e6a0;
}

/* mainpage */
.featured-news {
  padding: 40px 0;
  background: var(--color-bg);
  color: var(--color-text);
}

.featured-news .section-header h2 {
  font-size: 24px;
  margin-bottom: 24px;
}

.featured-news .section-header h2 a {
	font-size: var(--h2-size);
  color: var(--color-text);
  text-decoration: none;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  row-gap: 60px;
  column-gap: 20px;
}

.news-card {
  background: var(--color-muted-bg, #111);
  border-radius: var(--border-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast);
}

.news-card:hover {
  transform: scale(1.01);
}

.news-card .thumb img {
  border-radius: var(--border-radius);
  width: 100%;
  height: auto;
  display: block;
}

.news-content {
  padding: var(--padding-base);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.news-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9em;
  color: var(--color-muted);
  margin-bottom: 8px;
}

.news-content h3 {
  font-size: 1.1em;
  margin: 0 0 10px;
  line-height: 1.4;
}

.news-content h3 a {
  color: var(--color-text);
  text-decoration: none;
}

.news-content .excerpt {
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
}

.news-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  font-size: 14px;
}

.news-footer .date {
  color: var(--color-muted);
}

.news-footer .read-btn {
  color: var(--color-bg);
  text-decoration: none;
  transition: color 0.3s;
}

.news-footer .read-btn:hover {
  color: var(--color-accent-hover);
}


.news-card {
  background: #111;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 16px;
  height: 100%;
  justify-content: space-between;
}

.thumb {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.thumb.with-gradient::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.7));
  pointer-events: none;
}

.news-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  margin-top: 12px;
}

.news-content h3 {
  font-size: 16px;
  margin: 0 0 8px;
  flex-shrink: 0;
}

.news-content h3 a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.news-content h3 a:hover {
  color: var(--color-accent-hover);
}

.news-content .excerpt {
  font-size: 14px;
  color: #ccc;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: auto;
}

.news-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-top: 14px;
}

.news-footer .date {
  color: var(--color-muted);
}

.read-btn {
  color: var(--color-bg);
  background: var(--color-accent-hover);
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 500;
  transition: color 0.3s;
  text-decoration: none;
}

.read-btn:hover {
  color: var(--color-accent-hover);
}

.section-footer {
  margin-top: 24px;
  text-align: right;
}

.all-posts-btn {
  background: var(--color-accent);
  color: #000;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.3s;
}

.all-posts-btn:hover {
  background: var(--color-accent-hover);
}


.section-footer {
  margin-top: 70px;
  text-align: center;
}

.all-posts-btn {
  padding: 10px 20px;
  background: var(--color-bg);
  border: 1px solid var(--color-accent);
  border-radius: var(--border-radius);
  color: var(--color-accent);
  text-decoration: none;
  transition: background var(--transition-fast);
}

.all-posts-btn:hover {
  background: var(--color-accent);
  color: var(--color-bg);
}

.no-posts {
  color: var(--color-muted);
  text-align: center;
}

.live-matches {
  margin-top: 40px;
}

.match-table {
  width: 100%;
  border-collapse: collapse;
  background: #121212;
  border-radius: 6px;
  overflow: hidden;
}

.match-table th,
.match-table td {
  padding: 12px;
  text-align: center;
  border-bottom: 1px solid #222;
}

.match-table th {
  background: #1a1a1a;
  color: #0f0;
}

.match-table td {
  font-size: 14px;
}

.match-table .live {
  color: red;
  font-weight: bold;
}

.match-table .halftime {
  color: #ff0;
}
.video-section {
  margin-top: 40px;
}

.video-section h2 {
  font-size: var(--h2-size);
  margin-bottom: 20px;
  color: #fff;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.video-card {
  background: #121212;
  padding: 10px;
  border-radius: 8px;
  transition: box-shadow 0.2s ease;
}

.video-card:hover {
  box-shadow: 0 0 10px rgba(0, 255, 153, 0.2);
}

.video-card iframe {
  width: 100%;
  height: 180px;
  border: none;
  border-radius: 6px;
  margin-bottom: 10px;
}

.video-card p {
  font-size: 14px;
  color: #ccc;
}
.promo-banner {
	
  background: url();
  margin-top: 60px;
  background: radial-gradient(ellipse at center, #111 0%, #000 100%);
  box-shadow: inset 0 0 80px rgba(0, 255, 136, 0.15);
  text-align: center;
  padding: 40px 20px;
  border-radius: 10px;
}

.promo-banner h2 {
  font-size: 28px;
  color: #0f0;
  margin-bottom: 10px;
}

.promo-banner p {
  font-size: 16px;
  color: #ccc;
  margin-bottom: 20px;
}

.btn-cta {
  display: inline-block;
  background: #0f0;
  color: #000;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.btn-cta:hover {
  background: #00cc66;
}
.site-footer {
  background: var(--color-bg);
  color: var(--color-text);
  padding: 40px 0 20px;
  font-size: 14px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.footer-logo img {
  display: block;
  height: auto;
}

.footer-description {
  margin-top: 10px;
  max-width: 280px;
  line-height: 1.4;
  color: var(--color-muted);
}

.footer-stats p {
  margin: 4px 0;
  font-size: 13px;
  color: var(--color-muted);
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  margin-bottom: 8px;
}

.footer-menu a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-menu a:hover {
  color: var(--color-accent);
}

.footer-social {
  margin-top: 20px;
  display: flex;
  gap: 12px;
}

.footer-social img {
  filter: brightness(0) invert(1);
  transition: transform 0.3s;
}

.footer-social img:hover {
  transform: scale(1.2);
}

.footer-subscribe h4 {
  margin-bottom: 10px;
  color: var(--color-text);
}

.subscribe-form {
  display: flex;
  gap: 10px;
}

.subscribe-form input[type="email"] {
  padding: 10px;
  border-radius: var(--border-radius);
  border: none;
  width: 200px;
  background-color: var(--color-bg);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.subscribe-form input[type="email"]::placeholder {
  color: var(--color-muted);
}

.btn-subscribe {
  background-color: var(--color-accent);
  color: #000;
  padding: 10px 16px;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background 0.3s;
}

.btn-subscribe:hover {
  background-color: var(--color-accent-hover);
}

.footer-bottom {
  text-align: center;
  font-size: 13px;
  color: var(--color-muted);
}

.footer-menu a:hover {
  color: var(--color-accent);
  text-shadow: 0 0 6px var(--color-accent);
}


.footer-tags {
  display: flex;
  flex-direction:column;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 0;
}

.footer-tags a {
  width: max-content;
  display: inline-block;
  padding: 6px 12px;
  background-color: #222;
  color: var(--color-text);
  font-size: 0.9rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.footer-tags a:hover {
  background-color: var(--color-accent);
  color: #000;
}

.footer-tags li::marker {
	font-size: 0px;
}

/* АРХИВ */
.news-grid.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 60px;
  column-gap:20px;
}
