* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #0f172a;
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== FADE IN ===== */
body.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
body.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* ===== HEADER ===== */
.site-header {
  background: #1e293b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #38bdf8;
}

.logo-img {
  width: 40px;
  height: 40px;
  margin-right: 10px;
}

.menu-btn {
  font-size: 1.8rem;
  background: none;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.menu-btn:hover {
  transform: scale(1.1);
}

/* ===== SIDEBAR ===== */
.sidebar {
  position: fixed;
  left: -260px;
  top: 0;
  width: 250px;
  height: 100%;
  background: #1e293b;
  transition: left 0.4s ease;
  padding-top: 70px;
  z-index: 999;
  box-shadow: 4px 0 15px rgba(0,0,0,0.4);
}
.sidebar.open {
  left: 0;
}

.sidebar nav ul {
  list-style: none;
}
.sidebar nav ul li {
  margin: 15px 0;
}
.sidebar nav ul li a {
  display: block;
  padding: 12px 25px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s, transform 0.2s;
}
.sidebar nav ul li a:hover {
  background: #38bdf8;
  color: #0f172a;
  border-radius: 8px;
  transform: translateX(5px);
}

/* ===== MAIN ===== */
.main-content {
  padding: 20px;
  flex: 1;
  transition: transform 0.4s ease, filter 0.4s ease;
}
.main-content.shifted {
  transform: translateX(200px);
  filter: brightness(0.6);
}

/* ===== BANNER ===== */
.banner {
  background: linear-gradient(135deg, #1e40af, #9333ea);
  padding: 40px 20px;
  text-align: center;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  transition: transform 0.5s ease;
}
.banner:hover {
  transform: scale(1.02);
}
.banner h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.section-title {
  margin: 30px 0 15px;
  font-size: 1.4rem;
  border-left: 5px solid #38bdf8;
  padding-left: 10px;
}

/* ===== TOURNAMENT CARDS ===== */
.tournaments {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  background: #1e293b;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

/* ===== IMAGE BOX (Perfect Fit) ===== */
.img-box {
  width: 100%;
  height: 200px;           /* fixed height for uniform cards */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #111827;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.img-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;     /* ✅ shows full image without cropping */
  transition: transform 0.4s ease;
}
.img-box img:hover {
  transform: scale(1.08);
}

.card-content {
  padding: 15px;
  text-align: center;
}
.card-content h4 {
  margin-bottom: 5px;
}
.join-btn {
  background: #38bdf8;
  color: #0f172a;
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  margin-top: 10px;
  transition: 0.3s;
}
.join-btn:hover {
  background: #0ea5e9;
}

/* ===== FOOTER ===== */
.site-footer {
  background: #1e293b;
  text-align: center;
  padding: 15px;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
