/* Reset */
* {
  margin: 0; padding: 0; box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background: #121212;
  color: #eee;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  background: #222;
  padding: 1rem 0;
}

nav ul {
  display: flex;
  list-style: none;
  justify-content: center;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  color: #eee;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  padding: 5px 10px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
  background: #e63946;
  color: #fff;
}

main {
  flex: 1;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 20px;
}

h1 {
  text-align: center;
  margin-bottom: 2rem;
  color: #e63946;
}

.group-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.group-card {
  background: #282828;
  border-radius: 10px;
  padding: 15px;
  width: 280px;
  box-shadow: 0 0 10px rgba(230, 57, 70, 0.7);
  text-align: center;
  transition: transform 0.3s ease;
}

.group-card:hover {
  transform: scale(1.05);
}

.group-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}

.group-card h2 {
  margin-bottom: 10px;
  color: #f1faee;
}

.group-card p {
  font-size: 0.9rem;
  margin-bottom: 15px;
  color: #ccc;
}

.join-btn {
  display: inline-block;
  background: #e63946;
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.join-btn:hover {
  background: #a0262a;
}

/* Responsive */
@media (max-width: 768px) {
  .group-list {
    flex-direction: column;
    align-items: center;
  }

  .group-card {
    width: 90%;
  }
  header {
    text-align: center;
  }
  nav ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 30px; /* satır ve sütun arası boşluk artırıldı */
    justify-items: center;
    align-items: center;
    padding: 0;
  }
  nav ul li {
    margin: 0;
    width: 100%;
    text-align: center;
    padding: 8px 0; /* butonlar arası dikey boşluk */
  }
}

footer {
  background: #222;
  color: #888;
  text-align: center;
  padding: 1rem 0;
  margin-top: auto;
  font-size: 0.9rem;
}
