/* ============================================
   CHANNELS SECTION STYLES
   ============================================ */

.channels-section {
  padding: 80px 0;
  background: #f8f9fa;
}

.channels-header {
  text-align: center;
  margin-bottom: 50px;
}

.channels-header h1 {
  font-size: 2.5rem;
  color: #1a1a1a;
  margin-bottom: 15px;
  font-weight: 700;
}

.channels-header p {
  font-size: 1.1rem;
  color: #666;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.channels-divider {
  height: 1px;
  background: #ddd;
  margin: 40px 0;
}

/* ============================================
   FILTER BUTTONS
   ============================================ */

.channels-filter {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 12px 30px;
  border: 2px solid #e0e0e0;
  background: white;
  color: #555;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  border-color: #007bff;
  color: #007bff;
  transform: translateY(-2px);
}

.filter-btn.active {
  background: #007bff;
  color: white;
  border-color: #007bff;
}

/* ============================================
   LOGO CAROUSEL
   ============================================ */

.logo-carousel-wrapper {
  overflow: hidden;
  margin: 60px 0;
  background: white;
  padding: 30px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo-carousel {
  width: 100%;
}

.carousel-track {
  display: flex;
  animation: scroll 30s linear infinite;
  width: fit-content;
}

.carousel-slide {
  flex-shrink: 0;
  width: 200px;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide img {
  max-width: 100%;
  max-height: 60px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.carousel-slide img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.logo-carousel-wrapper:hover .carousel-track {
  animation-play-state: paused;
}

/* ============================================
   COUNTRIES SECTION
   ============================================ */

.countries-section {
  margin-top: 80px;
}

.countries-section h2 {
  text-align: center;
  font-size: 2rem;
  color: #1a1a1a;
  margin-bottom: 40px;
  font-weight: 700;
}

/* ============================================
   COUNTRY TABS - PURE CSS (NO JAVASCRIPT)
   THIS IS THE IMPORTANT PART FOR TABS TO WORK!
   ============================================ */

.country-tabs {
  position: relative;
  margin-bottom: 40px;
}

/* Hide radio inputs but keep them functional */
.country-tab-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Tab labels container */
.country-tab-labels {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Tab label buttons */
.country-tab-label {
  padding: 12px 25px;
  border: 2px solid #e0e0e0;
  background: white;
  color: #555;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.country-tab-label:hover {
  border-color: #007bff;
  color: #007bff;
  transform: translateY(-2px);
}

/* Active tab styling - THIS MAKES THE SELECTED TAB BLUE */
#tab-usa:checked ~ .country-tab-labels label[for="tab-usa"],
#tab-uk:checked ~ .country-tab-labels label[for="tab-uk"],
#tab-canada:checked ~ .country-tab-labels label[for="tab-canada"],
#tab-france:checked ~ .country-tab-labels label[for="tab-france"],
#tab-germany:checked ~ .country-tab-labels label[for="tab-germany"],
#tab-italy:checked ~ .country-tab-labels label[for="tab-italy"],
#tab-spain:checked ~ .country-tab-labels label[for="tab-spain"],
#tab-netherlands:checked ~ .country-tab-labels label[for="tab-netherlands"],
#tab-belgium:checked ~ .country-tab-labels label[for="tab-belgium"],
#tab-sweden:checked ~ .country-tab-labels label[for="tab-sweden"] {
  background: #007bff;
  color: white;
  border-color: #007bff;
  box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

/* ============================================
   COUNTRY CONTENT - SHOW/HIDE LOGIC
   THIS IS WHAT MAKES THE TABS WORK!
   ============================================ */

.country-content {
  position: relative;
  min-height: 400px;
}

/* Hide all country channels by default */
.country-channels {
  display: none;
  animation: fadeIn 0.4s ease;
}

/* Show ONLY the selected country's channels - THIS IS THE MAGIC! */
#tab-usa:checked ~ .country-content .usa-channels {
  display: block;
}

#tab-uk:checked ~ .country-content .uk-channels {
  display: block;
}

#tab-canada:checked ~ .country-content .canada-channels {
  display: block;
}

#tab-france:checked ~ .country-content .france-channels {
  display: block;
}

#tab-germany:checked ~ .country-content .germany-channels {
  display: block;
}

#tab-italy:checked ~ .country-content .italy-channels {
  display: block;
}

#tab-spain:checked ~ .country-content .spain-channels {
  display: block;
}

#tab-netherlands:checked ~ .country-content .netherlands-channels {
  display: block;
}

#tab-belgium:checked ~ .country-content .belgium-channels {
  display: block;
}

#tab-sweden:checked ~ .country-content .sweden-channels {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   CHANNELS GRID
   ============================================ */

.country-title {
  font-size: 1.8rem;
  color: #1a1a1a;
  margin-bottom: 30px;
  font-weight: 700;
  text-align: center;
}

.channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  padding: 20px;
}

.channel-item {
  background: white;
  padding: 20px;
  text-align: center;
  border-radius: 10px;
  font-weight: 600;
  color: #333;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.channel-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
  border-color: #007bff;
  color: #007bff;
}

/* ============================================
   CTA SECTION
   ============================================ */

.channels-cta {
  text-align: center;
  margin-top: 80px;
  padding: 50px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.channels-cta p {
  font-size: 1.3rem;
  color: #333;
  margin-bottom: 25px;
  font-weight: 600;
}

.channels-cta .button {
  display: inline-block;
  padding: 15px 40px;
  background: #25d366;
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(37,211,102,0.3);
}

.channels-cta .button:hover {
  background: #20ba5a;
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(37,211,102,0.4);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  .channels-header h1 {
    font-size: 2rem;
  }
  
  .channels-header p {
    font-size: 1rem;
  }
  
  .country-tab-labels {
    gap: 8px;
    padding: 15px;
  }
  
  .country-tab-label {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .channels-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
  }
  
  .carousel-slide {
    width: 150px;
    padding: 0 20px;
  }
  
  .countries-section h2 {
    font-size: 1.6rem;
  }
  
  .country-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .channels-section {
    padding: 50px 0;
  }
  
  .channels-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
  }
  
  .channel-item {
    padding: 15px 10px;
    font-size: 0.9rem;
  }
  
  .country-tab-label {
    padding: 8px 15px;
    font-size: 0.85rem;
  }
}