/* --- RESET & BASE --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #fff;
  color: #333;
}

/* --- HEADER --- */
.ms-header {
  background: #fff;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  font-family: Segoe UI, sans-serif;
}

.ms-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 2rem;
  max-width: 1400px;
  margin: auto;
}

.ms-left .logo {
  font-size: 1.4rem;
  font-weight: 600;
  color: #0078d4;
  text-decoration: none;
}

.logo img {
  height: 50px;
  max-width: 100%;
  vertical-align: middle;
  display: inline-block;
}

.main-menu {
  display: flex;
  gap: 1.2rem;
  
  
}

.main-menu ul {
  list-style: none;
  display: flex;
  gap: 1.2rem;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.main-menu li {
  margin: 0;
}

.main-menu a {
  text-decoration: none;
  color: #222;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
}

.main-menu a:hover::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #0078d4;
}


.menu-toggle {
  font-size: 1.6rem;
  background: none;
  border: none;
  cursor: pointer;
  display: none;
  text-align: center;
}

.ms-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ms-right .all-tournaments {
  text-decoration: none;
  font-size: 0.95rem;
  color: #222;
  font-weight: 500;
  position: relative;
}

.icon-btn {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
}

.sign-in {
  background: #0078d4;
  color: #fff;
  padding: 6px 14px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
}

.sign-in:hover {
  background: #005a9e;
}

/* Responsive */
@media (max-width: 768px) {
  .main-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0px;
    background: #fff;
    padding: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    border-radius: 6px;
    transition: transform 0.3s ease-in-out;
    
  }

  .main-menu.open {
    display: flex;
  }

  .main-menu ul {
    flex-direction: column;
    gap: 1rem;
  }

  .menu-toggle {
    display: block;
  }
}

/* --- HOMEPAGE SECTIONS (LIGHT THEME VERSION) --- */
.hero {
  background: url('../images/olympic-bg.jpg') no-repeat center/cover;
  padding: 4rem 2rem;
  text-align: center;
  color: #fff;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: auto;
}

.hero-content img {
    height: 50px;
    max-width: 100%;
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #fff;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #f0f0f0;
}

.hero-buttons .btn {
  background: #2196f3;
  color: #fff;
  padding: 0.75rem 1.5rem;
  margin: 0 0.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.hero-buttons .btn.secondary {
  background: transparent;
  border: 2px solid #fff;
}

.hero-buttons .btn:hover {
  background: #1976d2;
}

/* --- SECTIONS --- */
section {
  margin-top: 30px;
}
.features,
.upcoming,
.featured-sports,
.live-scores,
.announcements {
  padding: 3rem 2rem;
  background-color: #f9f9f9;
  text-align: center;
  
}

.features h2,
.upcoming h2,
.featured-sports h2,
.live-scores h2,
.announcements h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #222;
}

/* --- FEATURES GRID --- */
.features-grid,
.tournament-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.feature-card,
.tournament-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
}

.feature-card:hover,
.tournament-card:hover {
  transform: translateY(-5px);
}

/* --- STATS --- */
.stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 2rem;
  background: #f0f0f0;
}

.stat-box {
  text-align: center;
  flex: 1 1 200px;
  margin: 1rem;
  background: #fff;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.stat-box h3 {
  font-size: 2rem;
  color: #2196f3;
}

/* --- SPORT CARDS --- */
.sport-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.sport-card {
  background: #fff;
  border-radius: 8px;
  padding: 1rem;
  width: 180px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.sport-card img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
}

/* --- LIVE SCORES --- */
.live-scores ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 600px;
}

.live-scores li {
  background: #fff;
  margin: 0.5rem 0;
  padding: 0.75rem;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* --- ANNOUNCEMENTS --- */
.announcements p {
  margin: 0.5rem 0;
}

/* --- FOOTER --- */
/* --- Light Modern Footer --- */
.modern-footer {
  background: #f9f9f9; /* Light background */
  color: #333; /* Dark text */
  padding: 50px 20px;
  font-family: 'Poppins', sans-serif;
  position: relative;
  overflow: hidden;
  border-top: 1px solid #e0e0e0; /* Subtle separation */
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.footer-brand, .footer-links, .footer-contact, .footer-social {
  flex: 1 1 220px;
  min-width: 220px;
}

.footer-logo {
  max-width: 160px;
  margin-bottom: 15px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #333;
  text-decoration: none;
  transition: 0.3s;
}

.footer-links a:hover {
  color: #2196f3; /* Accent on hover */
}

.footer-contact p {
  margin: 5px 0;
  color: #555;
}

.footer-social .social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #2196f3, #00d4ff);
  transition: transform 0.3s, box-shadow 0.3s;
}

.footer-social .social-icons a:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* --- Floating Social Media (Light Version) --- */
.floating-social-modern {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.floating-social-modern .social-btn {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 20px;
  background: linear-gradient(135deg, #2196f3, #00d4ff);
  transition: all 0.3s;
}

.floating-social-modern .social-btn:hover {
  transform: rotate(360deg) scale(1.1);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .floating-social-modern {
    flex-direction: row;
    bottom: 20px;
    top: auto;
    right: 50%;
    transform: translateX(50%);
  }
}

