/* ===================================================
   MKSport Main Stylesheet
   Author: MK
   Site: https://mksport.site
   Description: One-page sporty WordPress theme
=================================================== */

/* ---------- Base Reset ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #f5f6fa;
  color: #2d3436;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ---------- Header ---------- */
.mk-header {
  background: #2d3436;
  color: #fff;
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.mk-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mk-header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: bold;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.mk-header .logo img {
  height: 40px;
  width: auto;
}

.mk-nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}

.mk-nav ul li a {
  color: #fff;
  font-weight: 500;
  transition: color 0.3s ease;
}

.mk-nav ul li a:hover {
  color: #00b894;
}

/* ---------- Hero Section ---------- */
.hero {
  background: linear-gradient(135deg, #00b894, #0984e3);
  color: #fff;
  text-align: center;
  padding: 120px 20px;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: url('../images/wave.svg') no-repeat bottom center;
  background-size: cover;
}

.hero h1 {
  font-size: 52px;
  font-weight: 800;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero p {
  font-size: 18px;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto 25px auto;
}

.mk-search {
  margin-top: 25px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.mk-search input {
  padding: 12px 16px;
  border: none;
  border-radius: 6px;
  width: 250px;
  font-size: 16px;
  outline: none;
}

.mk-search button {
  padding: 12px 24px;
  background: #fff;
  color: #00b894;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

.mk-search button:hover {
  background: #2d3436;
  color: #fff;
}

/* ---------- Game Cards ---------- */
.cards {
  padding: 80px 0;
  background: #fff;
}

.cards h2 {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  color: #2d3436;
  margin-bottom: 50px;
  position: relative;
}

.cards h2::after {
  content: "";
  width: 60px;
  height: 4px;
  background: #00b894;
  display: block;
  margin: 15px auto 0;
  border-radius: 2px;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.game-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.game-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.game-card .content {
  padding: 15px 20px;
}

.game-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #2d3436;
}

.game-card .meta {
  font-size: 14px;
  color: #636e72;
  margin-bottom: 12px;
}

.download-btn {
  display: inline-block;
  padding: 10px 20px;
  background: #00b894;
  color: #fff;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.download-btn:hover {
  background: #0984e3;
}

/* ---------- Categories Section ---------- */
#categories {
  background: #f5f6fa;
  padding: 80px 0;
}

#categories h2 {
  text-align: center;
  font-size: 30px;
  margin-bottom: 40px;
}

.mk-cats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  padding: 0;
  gap: 15px;
}

.mk-cats li a {
  background: #00b894;
  color: #fff;
  padding: 10px 22px;
  border-radius: 30px;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.2s;
}

.mk-cats li a:hover {
  background: #0984e3;
  transform: scale(1.05);
}

/* ---------- About Section ---------- */
#about {
  padding: 100px 20px;
  text-align: center;
  background: #fff;
}

#about h2 {
  font-size: 32px;
  margin-bottom: 25px;
  position: relative;
}

#about h2::after {
  content: "";
  width: 60px;
  height: 4px;
  background: #00b894;
  display: block;
  margin: 15px auto 0;
  border-radius: 2px;
}

#about p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 17px;
  color: #636e72;
  line-height: 1.8;
}

/* ---------- Footer ---------- */
.mk-footer {
  background: #2d3436;
  color: #b2bec3;
  text-align: center;
  padding: 40px 15px;
  font-size: 15px;
}

.mk-footer a {
  color: #00b894;
  transition: color 0.3s ease;
}

.mk-footer a:hover {
  color: #0984e3;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}

.btn-primary {
  background: #00b894;
  color: #fff;
}

.btn-primary:hover {
  background: #0984e3;
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero, .cards, #categories, #about {
  animation: fadeInUp 0.7s ease both;
}

/* ---------- Responsive Design ---------- */
@media (max-width: 992px) {
  .hero h1 { font-size: 38px; }
  .mk-header .container { flex-direction: column; gap: 10px; }
  .mk-nav ul { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 768px) {
  .hero { padding: 80px 20px; }
  .mk-search input { width: 180px; }
  .cards h2, #about h2, #categories h2 { font-size: 26px; }
}

@media (max-width: 500px) {
  .hero h1 { font-size: 30px; }
  .mk-search { flex-direction: column; }
  .mk-search input { width: 100%; }
}
