@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #fcfcfc;
  color: #1a1a1a;
}

.home-page {
  display: flex;
  justify-content: center;
  padding: 32px;
}

.container {
  width: 100%;
  max-width: 764px;
}

.title-container {
  --title-gap: 20px;
  --logo-box-size: 72px;
  --logo-img-size: 48px;
  --title-font-size: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--title-gap);
  margin: 72px 0;
}

.logo-box {
  width: var(--logo-box-size);
  height: var(--logo-box-size);
  background-color: rgba(0, 0, 0, 0.45);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-box img {
  width: var(--logo-img-size);
  height: var(--logo-img-size);
  filter: brightness(0) invert(1);
}

.main-title {
  margin: 0;
  font-size: var(--title-font-size);
  line-height: 1.1;
  font-weight: 400;
}

.apps-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
}

.app-item-container {
  display: flex;
  background: transparent;
  padding: 16px;
  transition: transform 0.2s;
  width: 350px;
  box-sizing: border-box;
  align-items: center;
}

.app-item-container:hover {
  transform: none;
}

.app-icon {
  width: 100px;
  flex-shrink: 0;
}

.app-icon img {
  width: 100px;
  height: 100px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 5px 10px rgba(0,0,0,0.26);
}

.app-details {
  margin-left: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  flex-grow: 1;
}

.app-title {
  font-size: 22px;
  margin: 0;
  font-weight: 500;
  color: #333;
}

.app-title-link {
  text-decoration: none;
}

.app-title-link:hover .app-title {
  text-decoration: underline;
}

.app-description {
  font-size: 14px;
  color: #666;
  margin: 8px 0;
}

.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}

.store-links img {
  height: 32px;
  object-fit: contain;
}

.loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  font-size: 24px;
  color: #666;
}

@media (min-width: 796px) {
  .apps-grid .app-item-container {
    align-items: center;
  }

  .apps-grid .app-icon {
    width: 144px;
    height: 144px;
  }

  .apps-grid .app-icon img {
    width: 144px;
    height: 144px;
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 795px) {
  .title-container {
    --title-gap: 16px;
    --logo-box-size: 64px;
    --logo-img-size: 42px;
    --title-font-size: 40px;
  }

  .apps-grid {
    flex-direction: column;
    align-items: center;
  }

  .app-item-container {
    width: 100%;
    max-width: 420px;
  }
}

@media (max-width: 599px) {
  .title-container {
    --title-gap: 12px;
    --logo-box-size: 48px;
    --logo-img-size: 32px;
    --title-font-size: 34px;
  }
}
