/*
Theme Name: Vivu TV Theme
Theme URI: https://vivutv.example.com
Author: VivuTV
Author URI: https://vivutv.example.com
Description: Vivu TV Custom Theme
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: vivutv
*/
/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base */
:root {
  --color-primary: #0dbd49;
  --color-secondary: #f2152d;
  --color-dark: #1a1d23;
  --color-darker: #15171c;
  --color-gray-2: #686b71;
  --color-gray: #727782;
  --color-gray-dark: #4a4d54;
  --color-gray-darker: #36363d;
  --color-white: #ffffff;
  --color-telegram: #0088cc;
  --gradient-primary: linear-gradient(90deg, #f4af61 0%, #ec376e 100%);
  --gradient-gray: linear-gradient(-180deg, rgba(0, 0, 0, 0) 0%, #000000 100%);
}

body {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  line-height: 1.21;
  color: var(--color-white);
  background-color: var(--color-dark);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.text-primary {
  color: var(--color-primary);
}

.text-secondary {
  color: #9a9a9a;
}

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

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

ul {
  list-style: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 12px;
  transition: opacity 0.3s;
}

.btn:hover {
  opacity: 0.9;
}

.btn img {
  width: 16px;
  height: 16px;
  margin-right: 6px;
}

.btn--telegram {
  background-color: white;
  color: var(--color-telegram);
}

.btn--readmore {
  background-color: #404348;
  border-radius: 13px;
  color: white;
}

.btn--bet {
  background-color: var(--color-secondary);
}

.btn--user {
  background-color: var(--color-gray-dark);
  padding: 6px;
}

.btn--user img {
  margin-right: 0;
}

.btn--primary {
  padding: 0.75rem;
  background-color: var(--color-primary);
}

.btn--secondary {
  padding: 0.75rem;
  background-color: var(--color-secondary);
}

.btn--watch {
  background-color: var(--color-primary);
}

.btn--more {
  background-color: var(--color-gray-dark);
  padding: 12px 24px;
}

/* Top Contact */
.top-contact {
  background: var(--gradient-primary);
  padding: 10px 0;
  text-align: center;
}

.top-contact p {
  font-size: 20px;
  font-weight: 700;
}

/* Header */
.header {
  background-color: var(--color-darker);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__inner > div {
  gap: 1rem;
}

.logo {
  max-width: 150px;
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
}

.nav__toggle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav__menu {
  display: flex;
  gap: 1rem;
}

.nav__item {
  position: relative;
}

.nav__item a {
  font-weight: 700;
  transition: color 0.3s;
}

.nav__item a:hover,
.nav__item a.active {
  color: var(--color-primary);
}

.nav__close {
  display: none;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--color-darker);
  min-width: 200px;
  border-radius: 10px;
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li {
  list-style: none;
}

.dropdown a {
  color: var(--color-white);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  display: block;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.dropdown a:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.header__buttons {
  display: flex;
  gap: 8px;
}

/* Ads */

.ads {
  margin-top: 1rem;
}

/* Hero */
.hero {
  padding: 60px 0;
  background-image: url("../images/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: rgba(0, 0, 0, 0.5); */
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
}

.hero h1 {
  font-size: 46px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 30px;
}

.hero p {
  font-weight: 500;
  max-width: 800px;
}

/* Featured Matches */
.featured-matches {
  padding: 3rem 0;
  background-color: var(--color-darker);
}

.featured-matches h2 {
  color: var(--color-white);
  font-size: 24px;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.featured-matches h2::before {
  content: " ";
  margin-right: 1rem;
  border: 2px solid var(--color-primary);
}

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

.match-card {
  background-color: var(--color-dark);
  border-radius: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.match-card__body {
  width: 100%;
  padding: 1.5rem;
}

.match-card__score {
  font-size: 2rem;
  font-weight: 700;
  color: white;
}

.match-card__time {
  font-size: 14px;
}

.match-card__teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.match-card__footer {
  background-color: var(--color-gray-dark);
  width: 100%;
  padding: 0.5rem 0.75rem;
  display: flex;
  justify-content: space-between;
}

.match-card__buttons {
  display: flex;
  gap: 0.5rem;
}

.match-card__blv {
  display: flex;
  align-items: center;
}

.match-card__blv img {
  margin-right: 0.25rem;
}

.team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.team__logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.team__name {
  color: var(--color-white);
  font-weight: 500;
}

.match-card__vs {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  white-space: nowrap;
  color: var(--color-gray);
  font-weight: 500;
}

.match-card__league {
  display: flex;
  align-self: center;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem;
  width: 10rem;
  font-size: 0.75rem;
  color: var(--color-gray);
  overflow: hidden;
  text-overflow: ellipsis;
  background-color: var(--color-gray-2);
  color: white;
  border-bottom-right-radius: 10px;
  border-bottom-left-radius: 10px;
}

.match-card__league img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.match-card__live-btn {
  position: absolute;
  top: 1rem;
  left: 1rem;
  height: 1.5rem;
  font-size: 0.75rem;
  border-radius: 0.75rem;
  background-color: var(--color-secondary);
  color: var(--color-white);
  text-transform: uppercase;
  padding-left: 6px;
  padding-right: 0.75rem;
}

.match-card__live-btn::before {
  content: " ";
  display: inline-block;
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
  color: white;
  background-color: white;
  border-radius: 50%;
}

/* News */
.news {
  padding: 3rem 0;
}

.breadcrumb {
  margin-top: 1.5rem;
}

.breadcrumb p {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-white);
}

.news h2 {
  font-size: 24px;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.news h2::before {
  content: " ";
  margin-right: 1rem;
  border: 2px solid var(--color-primary);
}

.news__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.news-card {
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s;
  position: relative;
}

.news-card:hover {
  transform: translateY(-5px);
}

.news-card__image {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.news-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card h3 {
  background: var(--gradient-gray);
  color: var(--color-white);
  padding: 1rem;
  font-size: 16px;
  line-height: 1.4;
  position: absolute;
  bottom: 0;
  width: 100%;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}

.pagination__item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--color-gray-darker);
  border-radius: 5px;
  font-size: 16px;
  font-weight: 500;
  transition: background-color 0.3s;
}

.pagination__item:hover,
.pagination__item.active {
  background-color: var(--color-primary);
}

/* Footer */
.footer {
  background-color: var(--color-darker);
  padding: 2rem 0;
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer__logo {
  max-width: 150px;
  margin-bottom: 30px;
  text-align: center;
}

.footer__content {
  margin-bottom: 30px;
}

.footer__content p {
  max-width: 1100px;
  font-weight: 500;
  text-align: center;
  color: white;
}

.footer__nav ul {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
}

.footer__nav a {
  color: var(--color-gray);
  font-weight: 700;
  transition: color 0.3s;
}

.footer__nav a:hover {
  color: var(--color-white);
}

.footer__copyright {
  text-align: center;
}

.footer__copyright p {
  font-weight: 500;
  font-size: 11px;
  color: var(--color-gray);
}

/* News Detail */
.news-hero__title {
  text-transform: uppercase;
}

.news-hero__title::before {
  content: " ";
  margin-right: 1rem;
  border: 2px solid var(--color-primary);
}

.news-detail {
  padding: 40px 0;
  background-color: #1a1d23;
}

.news-detail__title {
  text-transform: uppercase;
}

.news-detail__title::before {
  content: " ";
  border-right: 2px solid var(--color-primary);
  margin-right: 1rem;
}

.news-detail .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.ads {
  margin-bottom: 40px;
}

.ads img {
  width: 100%;
  height: auto;
}

.news-content {
  background-color: #25272d;
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 40px;
  margin-top: 2rem;
  max-height: 30rem;
  overflow: auto;
}

.breadcrumb {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #ffffff;
  margin-bottom: 20px;
}

.breadcrumb a {
  color: #ffffff;
  text-decoration: none;
}

.breadcrumb span {
  color: #ffffff;
}

.news-content .title {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: #eeeeee;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.news-content .divider {
  height: 1px;
  background-color: white;
  margin-bottom: 20px;
}

.news-content .meta {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #ffffff;
  margin-bottom: 30px;
  text-align: center;
}

.news-content .content {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6;
  color: #ffffff;
}

.news-content .content p {
  margin-bottom: 20px;
}

.related-news {
  margin-top: 40px;
  text-transform: uppercase;
}

.related-news h2::before {
  content: " ";
  margin-right: 1rem;
  border: 2px solid var(--color-primary);
}

.related-news .section-title {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: #eeeeee;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.related-news .divider {
  height: 3px;
  background-color: #0dbd49;
  width: 100px;
  margin-bottom: 30px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.news-item {
  position: relative;
}

.news-thumb {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-thumb .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1));
}

.news-thumb .news-title {
  position: absolute;
  bottom: 15px;
  left: 15px;
  right: 15px;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #ffffff;
  margin: 0;
}

@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .news-content {
    padding: 20px;
  }

  .news-content .title {
    font-size: 20px;
  }
}

.divider {
  height: 1px;
  width: 100%;
  margin-top: 2rem;
  margin-bottom: 2rem;
  background-color: var(--color-gray-darker);
}

/* Responsive */
@media (max-width: 1100px) {
  .hero h1 {
    font-size: 36px;
  }

  .news__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .news-detail__content {
    padding: 20px;
  }

  .nav__toggle {
    display: block;
  }

  .nav__menu {
    display: block;
    position: fixed;
    top: 0;
    left: -280px; /* Start off-screen */
    width: 280px;
    height: 100vh;
    background-color: var(--color-darker);
    padding: 2rem;
    z-index: 100;
    overflow-y: auto;
    transition: left 0.3s ease;
  }

  .nav__menu.active {
    left: 0; /* Slide in */
  }

  /* Overlay when menu is open */
  .nav__menu::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: -1;
  }

  .nav__menu.active::before {
    opacity: 1;
    visibility: visible;
  }

  /* Close button */
  .nav__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
  }

  .nav__close::before,
  .nav__close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-white);
    transform-origin: center;
  }

  .nav__close::before {
    transform: rotate(45deg);
  }

  .nav__close::after {
    transform: rotate(-45deg);
  }

  .nav__menu .nav__item {
    margin: 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav__menu .dropdown {
    position: static;
    background: none;
    padding-left: 1rem;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-radius: 0;
  }

  .nav__menu .nav__item.active .dropdown {
    display: block;
  }

  .nav__menu .dropdown li {
    padding: 0;
  }

  .nav__menu .dropdown a {
    color: var(--color-white);
    opacity: 0.8;
  }

  .nav__menu .dropdown a:hover {
    /* color: var(--color-primary); */
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .nav__toggle {
    display: block;
  }

  .hero .container {
    grid-template-columns: 1fr;
  }

  .news__grid {
    grid-template-columns: 1fr;
  }

  .footer__nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .news-detail__content h1 {
    font-size: 18px;
  }

  .news-detail__meta {
    font-size: 14px;
  }

  .news-detail__text {
    font-size: 14px;
  }

  .matches {
    grid-template-columns: 1fr;
  }

  .featured-matches h2,
  .news h2 {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .header__buttons .btn span {
    display: none;
  }

  .hero h1 {
    font-size: 28px;
  }

  .news__grid {
    grid-template-columns: 1fr;
  }

  .match__buttons {
    flex-direction: column;
  }

  .pagination {
    gap: 5px;
  }

  .pagination__item {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }

  .news-detail {
    padding: 30px 0;
  }

  .news-detail__content {
    padding: 15px;
    margin-bottom: 30px;
  }
}

#scrollTopBtn {
  display: none;
  position: fixed;
  width: 48px;
  height: 48px;
  bottom: 160px;
  right: 24px;
  z-index: 99;
  font-size: 18px;
  border: none;
  outline: none;
  color: white;
  cursor: pointer;
  padding: 15px;
  border-radius: 100%;
  background-color: var(--color-primary);
  backdrop-filter: blur(70px);
  box-shadow: 4px 8px 8px hsl(0deg 0% 0% / 0.38);
}

#scrollTopBtn svg {
  fill: white;
}

.custom-scroll::-webkit-scrollbar {
  width: 6px;
}

.custom-scroll::-webkit-scrollbar-track {
  border-radius: 8px;
  background-color: rgba(255, 126, 7, 10%);
}

.custom-scroll::-webkit-scrollbar-thumb {
  width: 8px;
  border-radius: 8px;
  background-color: var(--color-primary);
}
