* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #1a191f;
  color: #e8e8e8;
  padding: 20px;
  line-height: 1.5;
}

.container {
  max-width: 800px;
  margin: 0 auto;
}

h1 {
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 30px;
  color: #ffffff;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.app-item {
  display: flex;
  align-items: center;
  padding: 16px;
  background-color: #252530;
  border-radius: 12px;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
}

.app-item:hover {
  background-color: #2d2d3a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.app-icon {
  width: 95px;
  height: 95px;
  border-radius: 12px;
  margin-right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  background-color: #ffffff;
}

.app-flag {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 9px;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 10px;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.app-flag-new {
  background-color: #ee2f5a;
}

.app-flag-updated {
  background-color: #3b82f6;
}

.app-flag-coming-soon {
  background-color: #f59e0b;
}

/* Pulse animation for highlighted text */
@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(95, 37, 159, 0.4);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 0 0 8px rgba(95, 37, 159, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(95, 37, 159, 0);
  }
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.app-details {
  flex: 1;
  min-width: 0;
}

.app-name {
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-category {
  font-size: 14px;
  color: #a0a0a0;
  margin-bottom: 6px;
}

.app-description {
  font-size: 13px;
  color: #b0b0b0;
  margin-bottom: 8px;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.app-rating {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #a0a0a0;
}

.star {
  color: #ffc107;
  margin-right: 4px;
}

/* Responsive design */
@media (max-width: 600px) {
  .apps-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .app-item {
    padding: 12px;
  }

  .app-icon {
    width: 95px;
    height: 95px;
    margin-right: 12px;
  }

  .app-name {
    font-size: 15px;
  }

  .app-category,
  .app-rating {
    font-size: 13px;
  }
}

@media (max-width: 400px) {
  body {
    padding: 15px;
  }

  .app-item {
    padding: 10px;
  }

  .app-icon {
    width: 90px;
    height: 90px;
    margin-right: 10px;
  }

  .app-name {
    font-size: 14px;
  }
}
