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

html {
  overflow-x: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(180deg, #fefefe 0%, #f3f3f3 100%);
  color: #000;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

a {
  text-decoration: none;
}

/* === NAVBAR === */
.navbar {
  padding: 1rem 2rem;
  background-color: #ffffff;
  border-bottom: 2px solid #000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
  font-weight: 700;
  color: #000 !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-logo {
  height: 36px;
  width: auto;
  display: block;
}

.lang-flag {
  margin-right: 0.35rem;
  border: 1px solid #000;
  border-radius: 0.2rem;
  display: inline-flex;
  width: 1.5rem;
  height: 1rem;
  overflow: hidden;
}

.navbar-toggler {
  border: 1px solid #000;
  color: #000;
}

.nav-link {
  color: #000 !important;
  margin-left: 1rem;
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover {
  color: #ff1a1a !important;
  transform: translateY(-1px);
}

.dropdown-menu {
  background: #fff;
  border: 2px solid #000;
  border-radius: 0.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.dropdown-item {
  color: #000;
  font-weight: 500;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background: linear-gradient(90deg, #ff1a1a, #ffc107);
  color: #fff;
}

.dropdown-item.active {
  background: #ff1a1a;
  color: #fff;
}

/* === HERO === */
.hero {
  text-align: center;
  padding: 5rem 1rem 3rem;
  background: #fff;
  border: 2px solid #000;
  border-radius: 1rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  width: 100%;
  margin: 3rem auto 2rem;
  max-width: 1100px;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  color: #000;
}

.gradient-text {
  background: linear-gradient(90deg, #ff1a1a, #ffc107);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-gradient {
  background: linear-gradient(90deg, #ff1a1a, #ffc107);
  color: white;
  border: 2px solid #111;
  padding: 0.75rem 2rem;
  font-weight: bold;
  margin-top: 1.5rem;
  border-radius: 0.5rem;
  transition: 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.btn-gradient:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* === FEATURES === */
.features {
  padding: 3rem 1rem 4rem;
  background: #f7f7f7;
  border-top: 2px solid #000;
  border-bottom: 2px solid #000;
  box-shadow: inset 0 8px 20px rgba(0, 0, 0, 0.08);
}

.feature-card {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 2rem 1rem;
  text-align: center;
  color: #111;
  transition: all 0.3s ease;
  border: 2px solid #000;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.feature-card:hover {
  background: #fff8f5;
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(255, 26, 26, 0.2);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ff1a1a, #ffc107);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* === ABOUT PAGE === */
.about-hero {
  padding: 4rem 1rem 2rem;
  position: relative;
  z-index: 1;
}

.about-hero .container {
  background: #ffffff;
  border: 1px solid #222;
  border-radius: 1rem;
  padding: 3rem 2rem;
  max-width: 900px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.about-hero h1 {
  font-size: 2.75rem;
  margin-bottom: 1rem;
}

.about-hero-lead {
  font-size: 1.1rem;
  color: #333;
  margin: 0;
}

.about-overview {
  padding: 2rem 0 1rem;
}

.about-card {
  height: 100%;
  background: #fff;
  border: 1px solid #222;
  border-radius: 0.85rem;
  padding: 2rem 1.5rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.about-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  padding-left: 1.4rem;
  position: relative;
}

.about-case-studies {
  padding: 3rem 0 4rem;
}

.about-case-header {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  background: #fff;
  border: 1px solid #222;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.case-study-card {
  height: 100%;
  border: 1px solid #222;
  border-radius: 1rem;
  background: #fff;
  padding: 2rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.case-study-card-header h3 {
  margin-bottom: 0.25rem;
  font-size: 1.3rem;
  padding-left: 1.5rem;
  position: relative;
}

.case-study-subtitle {
  color: #555;
  margin-bottom: 1rem;
  font-weight: 500;
}

.case-study-list {
  margin: 1.25rem 0 0;
  padding-left: 1.2rem;
  color: #111;
}

.case-study-list li {
  margin-bottom: 0.35rem;
}

.about-case-header h2 {
  position: relative;
  padding-left: 1.75rem;
}

.about-case-header h2::before,
.about-card h3::before,
.case-study-card-header h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0.5rem;
  height: 70%;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff1a1a, #ffc107);
  box-shadow: 0 0 8px rgba(255, 26, 26, 0.3);
}

/* === EVENTS PAGE === */
.events-wrapper {
  padding: 4rem 1rem 5rem;
  position: relative;
  z-index: 1;
}

.events-header {
  background: #fff;
  border: 2px solid #000;
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15);
  margin-bottom: 3rem;
}

.events-header h1 {
  margin: 0;
  font-size: 2.5rem;
  color: #000;
}

.events-header p {
  margin-top: 0.75rem;
  color: #333;
}


.events-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.events-sort-buttons {
  display: inline-flex;
  gap: 0.5rem;
}

.events-sort-btn {
  border: 2px solid #000;
  background: #fff;
  color: #000;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.events-sort-btn:hover {
  background: #000;
  color: #fff;
}

.events-sort-btn.active,
.events-sort-btn.active:hover {
  background: linear-gradient(90deg, #ff1a1a, #ffc107);
  color: #fff;
  border-color: #ff1a1a;
}

.events-sort-btn .sort-indicator {
  font-size: 0.9rem;
}

.events-table-wrapper {
  background: #fff;
  border: 2px solid #000;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.events-table th {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.events-table td {
  font-weight: 500;
  color: #111;
}

.events-link {
  color: #000;
  font-weight: 700;
}

.events-link:hover {
  color: #ff1a1a;
}

.events-name {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.events-name::before {
  content: "";
  width: 24px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff1a1a, #ffc107);
  display: inline-block;
}

.events-empty {
  background: #fff9f0;
  border: 2px dashed #000;
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  font-weight: 600;
  color: #000;
}

/* === EVENT DETAILS PAGE === */
.event-details {
  padding: 4rem 1rem 5rem;
  position: relative;
  z-index: 1;
}

.event-info-box {
  background: #fff;
  border: 2px solid #000;
  border-radius: 1rem;
  padding: 1.5rem 1.75rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.event-info-head {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.event-info-head i {
  font-size: 2rem;
  color: #ff1a1a;
}

.event-info-meta {
  margin: 0.35rem 0 0;
  color: #444;
}

.event-video-card,
.event-panel {
  background: #fff;
  border: 2px solid #000;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
  height: 100%;
}

.event-panel-title {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #000;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.event-panel-title::before {
  content: "";
  width: 24px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff1a1a, #ffc107);
  display: inline-block;
}

.event-camera-list .list-group-item {
  border: 1px solid #000;
  border-radius: 0.75rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.event-camera-list .list-group-item:last-child {
  margin-bottom: 0;
}


.event-camera-list .list-group-item:hover {
  background: linear-gradient(90deg, #ff1a1a, #ffc107);
  color: #fff;
  border-color: #ff1a1a;
}

.event-camera-list .list-group-item.active,
.event-camera-list .list-group-item.active:hover {
  background: linear-gradient(90deg, #ff1a1a, #ffc107);
  color: #fff;
  border-color: #ff1a1a;
}

.athlete-group {
  margin: 3rem 0;
  padding-top: 0;
  position: relative;
}

.athlete-group::before {
  content: "";
  position: absolute;
  top: -2rem;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #ff1a1a, #ffc107);
  border-radius: 999px;
}

.athlete-group-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.athlete-group-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #000;
}

.category-next-link {
  color: #000;
  font-size: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, transform 0.2s ease;
}

.category-next-link:hover {
  color: #ff1a1a;
  transform: translateY(2px);
}


.athlete-table-wrapper {
  border: 2px solid #000;
  border-radius: 1rem;
  background: #fff;
  padding: 1.25rem;
}

.athlete-table {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.athlete-card {
  background: #fff8f5;
  border: 2px solid #000;
  border-radius: 1rem;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}


.athlete-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(255, 26, 26, 0.25);
  background: linear-gradient(90deg, #ff1a1a, #ffc107);
  color: #fff;
}

.athlete-card:hover .athlete-name,
.athlete-card:hover .athlete-meta,
.athlete-card:hover .athlete-icon {
  color: #fff;
}

.athlete-card:hover .athlete-icon {
  background: rgba(0, 0, 0, 0.25);
  border-color: #fff;
}

.athlete-card:hover .athlete-avatar {
  border-color: #fff;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.athlete-avatar,
.athlete-icon {
  width: 120px;
  height: 160px;
  border-radius: 0.75rem;
  margin: 0 auto 0.75rem;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #000;
}

.athlete-icon {
  font-size: 3rem;
  color: #111;
}

.athlete-name {
  font-size: 1rem;
  font-weight: 700;
  color: #000;
  margin: 0;
}

.athlete-meta {
  font-size: 0.9rem;
  color: #333;
  margin-top: 0.35rem;
}

/* === ATHLETE PAGE === */
.athlete-page {
  padding: 4rem 1rem 5rem;
  position: relative;
  z-index: 1;
  overflow-x: hidden;
}

.athlete-info-box {
  margin-bottom: 2rem;
}

.athlete-info-box i {
  color: #ff1a1a;
}

.athlete-info-meta {
  margin: 0.25rem 0 0;
  color: #444;
}

.athlete-section-title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #000;
}

.athlete-section-title i {
  color: #ff1a1a;
}

.athlete-video-card {
  padding: 1.5rem;
  border-radius: 1rem;
  border: 2px solid #000;
  background: #fff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
  position: relative;
}

.athlete-video {
  width: 100%;
  height: 100%;
  border-radius: 0.75rem;
  background: #000;
}

.athlete-ad-banner {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 70px;
  text-align: center;
  padding-bottom: 0.5rem;
  z-index: 15;
  background: transparent;
}

.athlete-ad-banner .ad-banner-img {
  max-height: 60px;
  object-fit: contain;
}

.athlete-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.65);
  border-radius: 0 0 1rem 1rem;
  z-index: 20;
}

.athlete-livetiming {
  position: absolute;
  top: 0;
  left: 0;
  width: 30%;
  padding: 0.75rem;
  pointer-events: none;
  z-index: 10;
}

.athlete-livetiming-card {
  pointer-events: auto;
}

.athlete-panel {
  height: 100%;
}

.athlete-run-list .list-group-item {
  border-radius: 0.75rem;
  margin-bottom: 0.5rem;
  border: 1px solid #000;
  color: #000;
}

.athlete-run-list .list-group-item:last-child {
  margin-bottom: 0;
}

.athlete-run-list .list-group-item.active,
.athlete-run-list .list-group-item:hover {
  background: linear-gradient(90deg, #ff1a1a, #ffc107);
  color: #fff;
  border-color: #ff1a1a;
}

/* === REPORT PAGE === */
.report-page {
  padding: 4rem 1rem 5rem;
  position: relative;
  z-index: 1;
}

.report-card {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border: 2px solid #000;
  border-radius: 1rem;
  padding: 2.5rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.report-header h1 {
  margin: 0;
  font-size: 2rem;
  color: #000;
}

.report-header p {
  margin-top: 0.5rem;
  color: #444;
}

.report-contact {
  text-align: center;
  margin-top: 2rem;
  font-weight: 600;
}

.report-phone {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ff1a1a;
  text-decoration: none;
}

.report-phone:hover {
  text-decoration: underline;
}

/* === FOOTER === */
.footer-custom {
  background-color: #fdfdfd;
  border-top: 2px solid #000;
  color: #111;
  font-weight: 500;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding: 1.5rem 0;
}

.footer-brand {
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.footer-brand-name {
  color: #000;
}

.footer-brand-tv {
  color: #fff;
  background: #ff1a1a;
  border-radius: 0.3rem;
  padding: 0.1rem 0.45rem;
  font-weight: 700;
}

.footer-custom small {
  color: #333;
  display: block;
  margin-top: 0.25rem;
}

/* === GLOW BG === */
.glow-bg {
  position: absolute;
  top: 0;
  right: -20%;
  width: 80vw;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(255, 26, 26, 0.08), rgba(255, 193, 7, 0.04), transparent 70%);
  filter: blur(120px);
  z-index: 0;
  pointer-events: none;
}

/* === RESPONSYWNOŚĆ === */
@media (max-width: 767.98px) {
  .hero {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .glow-bg {
    right: -40%;
    top: -20%;
    width: 120vw;
    height: 120vw;
    filter: blur(90px);
  }

  .athlete-table {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  .athlete-table {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 4rem;
  }
}
