/* Bootstrap Override és Custom Stílusok */

/* CSS Változók */
:root {
  --primary-color: #e10600;
  --primary-hover: #c20500;
  --dark-bg: #121212;
  --card-bg: #1f1f1f;
  --navbar-bg: #1c1c1c;
  --text-muted: #d5d5d5;
}

/* ===== ÚJ FONT STRATÉGIA ===== */
/* Alapértelmezett szöveg - Titillium Web */
body {
  background-color: var(--dark-bg);
  color: #fff;
  margin: 0;
  font-family: 'Titillium Web', sans-serif;
  font-weight: 400;
  padding-top: 108px; /* Navbar (76px) + Ticker (32px) */
}

/* Logó, branding - Orbitron */
.logo h1 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
}

.sidebar-brand,
.brand-text {
  font-family: 'Orbitron', sans-serif;
  font-weight: 600;
}

@media (max-width: 576px) {
  .logo h1 {
    font-size: 1.1rem;
  }
  .logo small {
    font-size: 0.65rem;
    margin-top: 3px;
  }
}

/* Navbar, navigáció - Rajdhani */
.navbar,
.nav-link,
.navbar-nav .nav-link,
.dropdown-menu {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 500;
}

/* Címek H1-H3 - Rajdhani/Oxanium */
h1, h2 {
  font-family: 'Oxanium', sans-serif;
  font-weight: 600;
}

h3, h4, h5, h6 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
}

/* Hírek, hosszabb tartalom - Titillium Web */
p, li, span, div,
.news-content,
.news-description,
.championship-description,
.race-description,
.card-text,
.regulations-content,
.server-item,
.text-muted,
article p,
.content-text,
.alert {
  font-family: 'Titillium Web', sans-serif;
  font-weight: 400;
  line-height: 1.6;
}

/* Számok, időeredmények - Oxanium */
.race-time,
.lap-time,
.points,
.position,
.standings-number,
.countdown,
.timer,
tbody td.number,
.stat-number {
  font-family: 'Oxanium', sans-serif;
  font-weight: 600;
}

/* Táblázatok - Oxanium számok, Rajdhani fejléc */
table thead th {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
}

tbody td {
  font-family: 'Titillium Web', sans-serif;
}

/* Input és form elemek - Rajdhani */
input, textarea, select, button, .btn {
  font-family: 'Rajdhani', sans-serif;
}

/* Text-muted Bootstrap override - jobb olvashatóság */
.text-muted {
  color: var(--text-muted) !important;
}

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

.lead {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 500;
}

.logo small {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.75rem;
  color: var(--text-muted) !important;
  font-weight: 400;
  letter-spacing: 0.8px;
  display: block;
  margin-top: 5px;
  line-height: 1.2;
}

/* Hero szekció */
.hero {
  position: relative;
  min-height: 80vh;
  overflow: hidden;
  background-color: #000;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7));
  z-index: 1;
  pointer-events: none;
}

.hero-text {
  position: relative;
  z-index: 2;
  padding: 20px;
}

.hero h1 {
  font-family: 'Oxanium', sans-serif;
  font-size: 3em;
  font-weight: 700;
  margin-bottom: 10px;
}

.hero h2 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 2.2rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero .lead {
  font-size: 1.3rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  white-space: pre-line;
  line-height: 1.8;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Gombok */
button,
.btn {
  padding: 10px 20px;
  margin: 5px;
  border: none;
  cursor: pointer;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  font-weight: 600;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-outline-light:hover {
  transform: translateY(-2px);
}

/* Navbar stílusok */
.navbar-nav .nav-link {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 500;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  position: relative;
  padding: 8px 16px;
  margin: 0 4px;
  border-radius: 6px;
  background: transparent;
  color: #fff !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: #fff !important;
  background-color: var(--primary-color);
  transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
  color: #fff !important;
  background-color: var(--primary-color);
}

/* Mobil hamburger menü stílusok */
@media (max-width: 991px) {
  .navbar-collapse {
    position: absolute;
    top: 100%;
    right: 0;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border: 1px solid #3d3d3d;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 0.5rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
    min-width: 250px;
  }
  
  .navbar-nav {
    text-align: right;
  }
  
  .navbar-nav .nav-link {
    margin: 0.25rem 0;
    padding: 10px 16px;
    text-align: right;
  }
}

/* Szekció címek */
.section-title {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 15px auto 0;
}

/* Kártya stílusok */
.race-card,
.championship-card,
.news-card {
  background-color: var(--card-bg);
  border: none;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.race-card:hover,
.championship-card:hover,
.news-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(225, 6, 0, 0.3);
}

.race-image,
.championship-image {
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
  background-color: var(--card-bg);
}

.race-card:hover .race-image,
.championship-card:hover .championship-image,
.news-card:hover .card-img-top {
  transform: scale(1.05);
}

.card-body {
  background-color: var(--card-bg);
  color: #fff;
}

.card-title {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 0.75rem;
}

.card-text {
  font-family: 'Titillium Web', sans-serif;
  font-weight: 400;
  color: #e0e0e0;
}

/* Badge elemek */
.badge {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Szekciók */
section {
  padding: 40px 20px;
}

.races-and-server {
  background-color: #1a1a1a;
}

.championships {
  background-color: var(--dark-bg) !important;
}

/* Szerver és közösségi kártyák */
.server-card,
.community-card,
.support-card {
  background-color: var(--card-bg);
  border: none;
  border-radius: 12px !important;
  overflow: hidden !important;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.server-card:hover,
.community-card:hover,
.support-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(225, 6, 0, 0.3);
}

/* Kompakt szerver info */
.server-compact-info {
  font-size: 0.9rem;
}

.server-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  border-bottom: 1px solid #333;
}

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

.server-item code {
  background: #000;
  color: var(--primary-color);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-size: 0.8rem;
}

/* Közösségi gombok */
.social-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.btn-social {
  font-size: 0.85rem;
  padding: 0.5rem;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
  color: white;
}

.btn-discord { background-color: #5865F2; }
.btn-discord:hover { background-color: #4752C4; color: white; }

.btn-youtube { background-color: #FF0000; }
.btn-youtube:hover { background-color: #CC0000; color: white; }

.btn-facebook { background-color: #1877F2; }
.btn-facebook:hover { background-color: #166FE5; color: white; }

.btn-twitch { background-color: #9146FF; }
.btn-twitch:hover { background-color: #7928CA; color: white; }

.btn-instagram { background-color: #E4405F; }
.btn-instagram:hover { background-color: #D13A54; color: white; }

.btn-tiktok { background-color: #000000; }
.btn-tiktok:hover { background-color: #333333; color: white; }

.btn-x { background-color: #000000; }
.btn-x:hover { background-color: #333333; color: white; }

/* Támogatói/Reklám terület */
.ad-placeholder {
  min-height: 120px;
  background: linear-gradient(45deg, #222, #333);
  border: 2px dashed #555;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.ad-placeholder:hover {
  border-color: var(--primary-color);
}

.ad-content {
  text-align: center;
  color: #b0b0b0;
}

.ad-content i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/* Támogatói/Partner terület */
.sponsors-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.sponsor-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #333;
  border-radius: 8px;
  padding: 0.5rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
}

.sponsor-item:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
  background: rgba(225, 6, 0, 0.1);
}

.sponsor-logo {
  max-width: 100%;
  max-height: 40px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(0.9);
  transition: filter 0.3s ease;
}

.sponsor-item:hover .sponsor-logo {
  filter: brightness(1.1);
}

.partner-info {
  padding-top: 0.5rem;
  border-top: 1px solid #333;
}

.partner-info .text-muted {
  color: #e0e0e0 !important;
}

.btn-outline-primary {
  border-color: var(--primary-color);
  color: var(--primary-color);
  font-size: 0.85rem;
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

/* Kép hibakezelés */
.image-placeholder {
  background: linear-gradient(135deg, #1f1f1f 0%, #e10600 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.image-placeholder:hover {
  transform: scale(1.02);
}

/* Footer közösségi ikonok */
.social-icon {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  min-width: 80px;
}

.social-icon:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.1);
}

.social-icon i {
  display: block;
  margin-bottom: 5px;
}

.social-icon span {
  font-weight: 600;
  font-size: 0.85rem;
}

.discord-icon {
  color: #5865F2 !important;
}

.discord-icon:hover {
  background: rgba(88, 101, 242, 0.2);
}

.youtube-icon {
  color: #FF0000 !important;
}

.youtube-icon:hover {
  background: rgba(255, 0, 0, 0.2);
}

.facebook-icon {
  color: #1877F2 !important;
}

.facebook-icon:hover {
  background: rgba(24, 119, 242, 0.2);
}

.twitch-icon {
  color: #9146FF !important;
}

.twitch-icon:hover {
  background: rgba(145, 70, 255, 0.2);
}

.instagram-icon {
  color: #E4405F !important;
}

.instagram-icon:hover {
  background: rgba(228, 64, 95, 0.2);
}

.tiktok-icon {
  color: #ffffff !important;
  background: #000000;
  border-radius: 8px;
  padding: 8px;
}

.tiktok-icon:hover {
  background: rgba(0, 0, 0, 0.8);
}

.x-icon {
  color: #ffffff !important;
  background: #000000;
  border-radius: 8px;
  padding: 8px;
}

.x-icon:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Loading képek */
img.loading {
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

img:not(.loading) {
  opacity: 1;
}

/* Reszponzív design */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.2em; }
  .hero h2 { font-size: 2.5rem; }
  .hero .lead { font-size: 1.1rem; }
  
  section { padding: 30px 15px; }
  
  .hero-buttons .btn {
    display: block;
    width: 100%;
    margin: 0.5rem 0;
  }
  
  .social-buttons {
    grid-template-columns: 1fr;
  }
  
  .server-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }
}

@media (max-width: 576px) {
  body { padding-top: 70px; }
  .hero h2 { font-size: 2rem; }
  .section-title { font-size: 1.8rem; }
  
  .sponsors-grid {
    grid-template-columns: 1fr;
  }
}

/* Hírek futószalag */
.news-ticker {
  background-color: var(--primary-color);
  color: white;
  padding: 8px 0;
  overflow: hidden;
  position: fixed;
  top: 76px;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1029;
  margin: 0;
  border: none;
}

.ticker-wrap {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.ticker-move {
  display: flex;
  white-space: nowrap;
  animation: ticker 40s linear infinite;
}

.ticker-move:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  padding: 0 30px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 600;
}

.ticker-item a {
  transition: opacity 0.3s;
}

.ticker-item a:hover {
  opacity: 0.8;
  text-decoration: underline !important;
}

.ticker-separator {
  margin-left: 30px;
  font-size: 1.2rem;
  opacity: 0.7;
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Reszponzív futószalag */
@media (max-width: 768px) {
  .ticker-item {
    font-size: 0.85rem;
    padding: 0 15px;
  }
  
  .ticker-separator {
    margin-left: 15px;
  }
  
  .ticker-move {
    animation: ticker 30s linear infinite;
  }
}

/* Hero Carousel stílusok */
#heroCarousel {
  position: relative;
}

#heroCarousel .carousel-item {
  height: 80vh;
  min-height: 80vh;
}

#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
  width: 5%;
  z-index: 10;
}

#heroCarousel .carousel-control-prev-icon,
#heroCarousel .carousel-control-next-icon {
  background-color: transparent;
  width: 40px;
  height: 40px;
}

.carousel-fade .carousel-item {
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.carousel-fade .carousel-item.active {
  opacity: 1;
}

/* Villogó pont animáció (élő verseny) */
@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}

/* Versenykiírás tartalom formázása a modalban */
.regulations-content {
  color: #333;
  line-height: 1.8;
}

.regulations-content h1,
.regulations-content h2,
.regulations-content h3,
.regulations-content h4,
.regulations-content h5,
.regulations-content h6 {
  color: #e10600;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.regulations-content h1 { font-size: 2rem; }
.regulations-content h2 { font-size: 1.75rem; }
.regulations-content h3 { font-size: 1.5rem; }

.regulations-content p {
  margin-bottom: 1rem;
}

.regulations-content ul,
.regulations-content ol {
  margin-bottom: 1rem;
  padding-left: 2rem;
}

.regulations-content li {
  margin-bottom: 0.5rem;
}

.regulations-content table {
  width: 100%;
  margin-bottom: 1rem;
  border-collapse: collapse;
}

.regulations-content table th,
.regulations-content table td {
  border: 1px solid #ddd;
  padding: 0.75rem;
  text-align: left;
}

.regulations-content table th {
  background-color: #f8f9fa;
  font-weight: 600;
}

.regulations-content blockquote {
  border-left: 4px solid #e10600;
  padding-left: 1rem;
  margin-left: 0;
  color: #b8b8b8;
  font-style: italic;
}

.regulations-content a {
  color: #e10600;
  text-decoration: underline;
}

.regulations-content a:hover {
  color: #c20500;
}

/* Partner Cards */
.partner-card {
  transition: all 0.3s ease;
}

.partner-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(225, 6, 0, 0.3) !important;
}

.partner-logo {
  transition: filter 0.3s ease;
}

/* Partners Carousel Animation */
@keyframes scroll-partners {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.partners-carousel-wrapper {
  mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}

.partners-carousel {
  will-change: transform;
}

.partners-carousel:hover {
  animation-play-state: paused;
}
