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

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}
a {
  color: #000;
  text-decoration: none;
}

/* Header */
 .header {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      z-index: 1000;
      background: linear-gradient(to bottom, #d3d9dd, #aeb6bd); /* Approximate gradient */
      height: 50px;
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      padding: 8px 10px 0 10px;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    }

    .logo {
      display: flex;
      align-items: center;
      margin-left: 4px;
    }

    .logo img {
      height: 30px;
      margin-right: 6px;
    }

    .title {
      font-weight: bold;
      color: #2e3e50;
      font-size: 16px;
      letter-spacing: 1px;
    }

    .search-icon {
      margin-left: auto;
      background-color: rgba(255,255,255,0.3);
      padding: 6px;
      border-radius: 5px;
    }

    .search-icon img {
      height: 18px;
      opacity: 0.6;
    }

/* App Card List Container */
.app-list {
    padding: 10px;
}
.app-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, #f4f7f9 0%, #dfe6ec 100%);
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 12px;
  margin: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  max-width: 100%;
}

/* App icon */
.app-card img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  margin-right: 12px;
}

/* App info section */
.app-info {
  flex-grow: 1;
}

.app-info h4 {
  font-size: 15px;
  margin: 0;
  font-weight: 600;
  color: #000;
}

.app-info p {
  font-size: 13px;
  margin: 3px 0;
  color: #333;
}

/* Stars */
.stars {
  color: #000;
  font-size: 14px;
}

/* FREE label and arrow */
.price-label {
  font-size: 14px;
  font-weight: bold;
  color: #333;
  white-space: nowrap;
}


/* Bottom Navigation */
.bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #303a3c;
    color: #989898;
    padding: 12px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    font-size: 16px;
}
.banner, .ad {
    text-align: center;
    margin: 10px 0;
} 

/* Responsive Rules */
@media screen and (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .header input[type="text"] {
        width: 100%;
    }

    .app-card {
        flex-direction: row;
        text-align: left;
    }

    .app-card img {
        margin-bottom: 0;
    }
}
