/* style.css */

:root {
  --bg: #f7f8fb;
  --card: #ffffff;
  --accent: #0b74de;
  --muted: #6b7280;
  --shadow: 0 6px 18px rgba(16, 24, 40, 0.08);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Myanmar", "Myanmar3", Arial;
}

body {
  margin: 0;
  background-color: var(--card); /* နောက်ခံကို အဖြူရောင်အပြည့်ပြောင်းလိုက်ပါပြီ */
  color: #0f172a;
}

.wrap {
  max-width: 1100px;
  margin: 28px auto;
  padding: 12px;
}

header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.brand {
  display: flex;
  gap: 8px;
  align-items: center;
}

.logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0b74de, #5bc0f8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  box-shadow: var(--shadow);
}

h1 {
  font-size: 16px;
  margin: 0;
}

p.lead {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 12px;
}

@media (min-width: 600px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  background: var(--card);
  border-radius: 8px;
  padding: 8px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.2s ease-in-out;
  text-align: left;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(16, 24, 40, 0.1);
}

.icon {
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  border-radius: 10px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 4px;
}

.icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.meta {
  width: 100%;
}

.app-title {
  font-weight: 600;
  margin: 0;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meta small {
  display: block;
  color: var(--muted);
  font-size: 8px;
  margin: 1px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.desc {
  font-size: 9px;
  color: #111827;
  line-height: 1.2;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.actions {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: auto;
  justify-content: center;
  width: 100%;
}

.btn {
  background: var(--accent);
  color: white;
  padding: 5px 8px;
  border-radius: 6px;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease-in-out;
  font-size: 11px;
}

.btn:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.btn.secondary {
  background: #eef2ff;
  color: var(--accent);
  border: 1px solid rgba(11, 116, 222, 0.12);
}

.small {
  font-size: 11px;
  padding: 5px 8px;
}

/* Search bar */
.search-wrap {
  position: relative;
  margin-bottom: 12px;
}

.search-input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  font-size: 12px;
  background-color: var(--card);
  box-sizing: border-box;
}

.search-input:focus {
  outline: 2px solid var(--accent);
  border-color: transparent;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  width: 18px;
  height: 18px;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  overflow-x: auto;
}

.tab-btn {
  background: #eef2ff;
  color: var(--accent);
  border: 1px solid rgba(11, 116, 222, 0.12);
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
  white-space: nowrap;
  font-size: 12px;
}

.tab-btn.active {
  background: var(--accent);
  color: white;
}
