/* ====== Global Reset ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background-color: #f9fafc;
  color: #333;
  display: flex;
  height: 100vh;
}

/* ====== Sidebar ====== */
.sidebar {
  width: 230px;
  background: #fff;
  padding: 25px;
  box-shadow: 2px 0 10px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  font-weight: 700;
  font-size: 20px;
  display: flex;
  align-items: center;
  color: #4f46e5;
  gap: 8px;
  margin-bottom: 35px;
}

.sidebar-nav ul {
  list-style: none;
}

.sidebar-nav ul li {
  margin: 14px 0;
}

.sidebar-nav a {
  text-decoration: none;
  color: #555;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.sidebar-nav a.active,
.sidebar-nav a:hover {
  background-color: #eef2ff;
  color: #4f46e5;
}

/* ====== Main Area ====== */
.main-content-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #f9fafc;
}

/* ====== Header ====== */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 12px 25px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}

.search-bar-header {
  background: #f1f3f6;
  padding: 8px 15px;
  border-radius: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-bar-header input {
  border: none;
  background: transparent;
  outline: none;
  width: 260px;
  font-size: 15px;
}

.icon-button {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: #555;
  margin-right: 10px;
}

.user-avatar {
  width: 34px;
  height: 34px;
  background: linear-gradient(45deg, #6366f1, #a78bfa);
  border-radius: 50%;
}

/* ====== Hero / Featured Section ====== */
.hero-section {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 20px;
  padding: 25px 30px 10px;
}

.hero-card {
  background: linear-gradient(90deg, #4158d0, #c850c0);
  color: white;
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.hero-subtitle {
  font-size: 14px;
  opacity: 0.9;
}

.hero-title {
  font-size: 24px;
  margin-top: 5px;
  font-weight: 700;
}

.hero-description {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 15px;
}

.app-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-icon-small {
  width: 38px;
  height: 38px;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
}

.hero-card-small {
  background: #fff;
  border-radius: 15px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* ====== Categories Section ====== */
.categories-section {
  padding: 15px 30px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.view-all {
  text-decoration: none;
  color: #4f46e5;
  font-weight: 500;
}

.category-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.category-pill {
  color: white;
  border-radius: 15px;
  padding: 12px 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s ease;
}

.category-pill:hover {
  transform: translateY(-2px);
}

/* ====== Top Charts ====== */
.top-charts-section {
  padding: 15px 30px;
}

.top-charts-grid {
  margin-top: 10px;
}

.chart-item {
  background: #fff;
  border-radius: 15px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  margin-bottom: 10px;
}

.chart-rank {
  background: #4f46e5;
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.app-icon-list {
  width: 38px;
  height: 38px;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  margin: 0 10px;
}

.app-info-list h3 {
  font-size: 15px;
  font-weight: 600;
}

.app-developer-list {
  font-size: 13px;
  color: #777;
}

.install-button {
  background: #4f46e5;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 6px 15px;
  cursor: pointer;
  font-weight: 500;
}

/* ====== Recommended Section ====== */
.recommended-section {
  padding: 15px 30px 40px;
}

.recommended-item {
  background: #fff;
  border-radius: 15px;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  margin-bottom: 12px;
}

.app-icon-rec {
  width: 42px;
  height: 42px;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
}

.rec-info {
  flex: 1;
  margin-left: 10px;
}

.app-title-rec {
  font-size: 15px;
  font-weight: 600;
}

.app-category-rec {
  font-size: 13px;
  color: #777;
}

.app-rating-rec {
  font-size: 13px;
  color: #444;
}

.get-button {
  background: #4f46e5;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 6px 15px;
  cursor: pointer;
  font-weight: 500;
}
