/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
    margin: 0;
    color-scheme: light;
    font-family: "Segoe UI", Arial, sans-serif;
    background: linear-gradient(135deg, var(--blue-light) 0%, var(--blue-dark) 100%);
    background-attachment: fixed;
    color: #ffffff;
    background-color: #d4f4fe;
}

.mobile-navbar{
  display: none;
}

/* Navbar */
.navbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 40px;
  background: rgba(3, 3, 3, 0.46);
  backdrop-filter: blur(9px);
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  box-sizing: border-box;
  z-index: 10;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo {
  width: 98px;
  height: 63px;
}

.messages {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 14px;
  font-weight: 200;
}

.messages img {
  width: 60px;
  height: 53px;
}


.navbar-center {
  display: flex;
  font-size: 21px;
  font-weight: 500;
}

.navbar-center a {
  padding: 0 20px;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  position: relative;
  transition: color 0.3s ease;
}

.navbar-center a:not(:first-child) {
  border-left: 2px solid rgba(255, 255, 255, 0.5);
}

.navbar-center a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background-color: #43A4C7;
  transition: width 0.3s ease;
}

.navbar-center a:hover {
  color: #43A4C7;
}

.navbar-center a:hover::after {
  width: 100%;
}

.navbar-center a.active {
  color: #43A4C7;
}

.navbar-right {
    color: white;
    text-align: center;
}

.navbar-right h1 {
  font-size: 23px;
  font-weight: 700;
  margin: 0;
}

.navbar-right hr {
  border: none;
  height: 2px;
  background: #ffffffa8;
  margin: 4px 0;
}

.navbar-right span {
  font-size: 16px;
  font-weight: 700;
  opacity: 0.55;
}

.hero {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden; /* скрива всичко извън контейнера */
}

.hero img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.hero .wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px; /* височина на самата вълна */
  pointer-events: none;
}
.hero .wave path {
  filter: drop-shadow(0 -4px 6px rgba(0,0,0,0.4));
}
/* Schedule */
.schedule {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(to bottom, #d4f4ff, #d4f4ff);
}

.section-title {
  font-size: 32px;
  margin-bottom: 20px;
  font-weight: bold;
  color: #14465f;
}

.legend {
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.legend-item {
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
}

.legend-item.competitors { background: #c0392b; }
.legend-item.advanced { background: #2980b9; }
.legend-item.beginners { background: #27ae60; }

/* Grid layout */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 0 10px;
}

/* Day card */
.day-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  animation: fadeUp 0.8s ease;
}
.day-card:hover {
  transform: translateY(-5px);
}

.day-card h3 {
  margin-bottom: 12px;
  font-size: 20px;
  color: #14465f;
  border-bottom: 2px solid #eee;
  padding-bottom: 6px;
}

/* Time slots */
.time-slot {
  margin: 8px 0;
  padding: 10px;
  border-radius: 8px;
  color: #fff;
  font-weight: bold;
  font-size: 15px;
  animation: fadeIn 1s ease;
}

.time-slot.competitors { background: #c0392b; }
.time-slot.advanced { background: #2980b9; }
.time-slot.beginners { background: #27ae60; }

.time-slot:hover {
  opacity: 0.9;
  transform: scale(1.03);
  transition: all 0.2s ease;
  cursor: pointer;
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
  .schedule-table {
    width: 100%;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .legend {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .navbar-center {
    display: none; /* скриваме централното меню за мобилна версия */
  }
}
/* ===== MOBILE NAVIGATION ===== */
@media (max-width: 768px) {
  /* скриваме централната навигация */
  .navbar-center {
    display: none;
  }

  /* показваме мобилната навигация */
  .mobile-navbar {
    display: flex;
    justify-content: center;
    background: #0F2947;
    padding: 12px 14px;
    margin: 10px auto;
    border-radius: 30px;
    width: fit-content;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 11; /* над хедъра */
  }

  .mobile-navbar ul {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    list-style: none;
  }

  .mobile-navbar ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    font-size: 15px;
    padding: 6px 14px;
    transition: background 0.3s, color 0.3s, transform 0.2s;
    border-radius: 20px;
  }

  .mobile-navbar ul li a:hover {
    background: #43A4C7;
    color: #fff;
    transform: translateY(-2px);
  }

  .mobile-navbar ul li a.active {
    background: #43A4C7;
    color: #fff;
  }
}

/* по-стегнат вариант за много малки телефони */
@media (max-width: 450px) {
  
  .navbar {
    height: var(--nav-height);
    padding: 8px 14px;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
  }
  .navbar-right h1 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

  .navbar-left { gap: 10px; }
  .logo { width: 72px; height: 46px; }
  .mobile-navbar {
    padding: 10px 8px;
    margin: 6px auto;
  }

  .mobile-navbar ul li a {
    font-size: 13px;
    padding: 6px 10px;
  }
  .messages img {
    width: 50px;
    height: 42px;
}
}