﻿/* Reset and base styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(to right, #0f2027, #203a43, #2c5364);
  color: #ffffff;
  min-height: 100vh;
}

/* Header & Nav */
header {
  background: #111827;
  padding: 20px;
  color: #00e5ff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

header h1 {
  font-size: 28px;
  font-weight: 700;
}

nav ul {
  display: flex;
  list-style: none;
  margin-top: 10px;
  gap: 25px;
}

nav ul li a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  transition: color 0.3s;
  padding: 8px 12px;
  border-radius: 6px;
}

nav ul li a:hover,
nav ul li a.active {
  background-color: #00e5ff;
  color: #000;
}

/* Main Content */
.main-content {
  padding: 40px 20px;
  text-align: center;
}

h2 {
  font-size: 32px;
  margin-bottom: 30px;
  color: #00e5ff;
}

/* Tournament Cards */
.cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.card {
  background-color: #1f2937;
  border-radius: 16px;
  overflow: hidden;
  width: 280px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.6);
}

.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-bottom: 1px solid #00e5ff;
}

.card-info {
  padding: 20px;
  text-align: left;
}

.card-info h3 {
  font-size: 20px;
  color: #00e5ff;
  margin-bottom: 10px;
}

.card-info p {
  font-size: 14px;
  margin-bottom: 5px;
  color: #cbd5e1;
}

.card-info span {
  font-size: 13px;
  color: #9ca3af;
}

.join-btn {
  margin-top: 15px;
  background-color: #00e5ff;
  color: #000;
  font-weight: bold;
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s;
}

.join-btn:hover {
  background-color: #4ff5ff;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: #1f2937;
  margin: 80px auto;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.6);
  position: relative;
  color: #fff;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 22px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
}

.modal h2 {
  margin-bottom: 20px;
  color: #00e5ff;
}

.modal form label {
  display: block;
  margin-top: 10px;
  font-weight: 500;
  color: #cbd5e1;
}

.modal form input {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border-radius: 6px;
  border: 1px solid #334155;
  background-color: #111827;
  color: #fff;
}

.modal form button {
  margin-top: 20px;
  background-color: #00e5ff;
  color: #000;
  font-weight: bold;
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s;
}

.modal form button:hover {
  background-color: #4ff5ff;
}

