:root {
  --bg-color: #0f172a;
  --card-bg: #1e293b;
  --primary-gradient: linear-gradient(0deg, #0055ff 0%, #f8fafc 100%);
  --text-main: #f8fafc;
  --text-dim: #94a3b8;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  padding: 40px 20px;
}

header {
  text-align: center;
  margin-bottom: 50px;
}

.main-title {
  font-size: clamp(2.5rem, 8vw, 4rem); /* Ekran küçüldükçe yazı da küçülür */
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}

/* Kapsayıcıyı Flex Yapıyoruz */
.app-grid {
  display: flex;
  flex-wrap: wrap; /* Sığmayınca alta geç */
  justify-content: center; /* Yatayda ortala */
  gap: 30px;
  width: 100%;
  max-width: 1100px;
}

.app-card {
  background: var(--card-bg);
  border-radius: 24px;
  padding: 40px 30px;
  text-align: center;
  position: relative;
  border: 1px solid #334155;
  flex: 0 1 350px; /* Kart genişliği 350px, sığmazsa küçül */
  max-width: 100%; /* Mobilde ekrandan taşmaması için kritik */
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
}

.app-card:hover {
  border-color: #38bdf8;
}

.app-icon {
  width: 100px;
  height: 100px;
  border-radius: 22px;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.store-icon {
  width: 150px; /* Mobilde taşmayı önlemek için biraz küçülttüm */
  height: auto;
  display: block;
}

.store-btn {
  text-decoration: none;
  display: flex; /* İçindeki ikonu ortalamak için */
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  background-color: #000000; /* Tırnaksız ve siyah (App Store standartı) */
  padding: 8px 12px; /* İkonun etrafında çok az pay bırakır */
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background 0.2s;
}

.store-btn:hover {
  background-color: #1e293b; /* Üzerine gelince biraz açılır */
  border-color: #38bdf8;
}

/* Linkleri Mobilde Alt Alta Almak İçin Flex */
.links {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
}

footer {
  margin-top: auto;
  padding: 40px 0;
  color: var(--text-dim);
  font-size: 0.85rem;
  text-align: center;
}

/* MOBİL AYARLAR */
@media (max-width: 600px) {
  body {
    padding: 20px 15px;
  }

  .app-card {
    flex: 1 1 100%; /* Mobilde tam genişlik kapla */
    padding: 30px 20px;
  }

  .store-icon {
    width: 140px; /* Mobilde ikonlar ekrana daha iyi sığar */
  }
}
