/* ============================================================
   style.css — Global Styles
   AppVault Play Store
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* ── CSS Variables ── */
:root {
  --green-primary:   #1a8a5a;
  --green-light:     #22c77a;
  --green-dark:      #0f5c3c;
  --green-glow:      rgba(26, 138, 90, 0.25);
  --navy:            #0a0f2c;
  --navy-mid:        #0f1535;
  --navy-light:      #161d42;
  --white:           #ffffff;
  --grey-100:        #f3f4f6;
  --grey-200:        #e5e7eb;
  --grey-400:        #9ca3af;
  --grey-600:        #4b5563;
  --grey-800:        #1f2937;
  --card-bg:         #111827;
  --card-border:     rgba(255,255,255,0.06);
  --text-primary:    #f9fafb;
  --text-secondary:  #9ca3af;
  --text-muted:      #6b7280;
  --radius-sm:       8px;
  --radius-md:       14px;
  --radius-lg:       20px;
  --radius-xl:       28px;
  --shadow-card:     0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow:     0 0 32px rgba(26,138,90,0.2);
  --transition:      0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display:    'Syne', sans-serif;
  --font-body:       'DM Sans', sans-serif;
}

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background-color: var(--navy);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  /* background-image: url('../../generalImages/bg-pattern.png'); */
  background-repeat: repeat;
  background-size: 100px 100px;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-body);
}

ul, ol {
  list-style: none;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--navy-mid);
}
::-webkit-scrollbar-thumb {
  background: var(--green-dark);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--green-primary);
}

/* ── Navbar ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 15, 44, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--card-border);
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.navbar-logo img {
  height: 36px;
  width: auto;
}

.navbar-logo span {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}

.navbar-logo span em {
  color: var(--green-light);
  font-style: normal;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  transition: var(--transition);
}

.nav-icon-btn:hover {
  background: rgba(26,138,90,0.15);
  border-color: var(--green-primary);
  color: var(--green-light);
}

.nav-icon-btn img {
  width: 18px;
  height: 18px;
  filter: invert(1) opacity(0.7);
}

/* ── Search Bar ── */
.search-bar {
  flex: 1;
  max-width: 480px;
  position: relative;
}

.search-bar input {
  width: 100%;
  height: 40px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--card-border);
  border-radius: 99px;
  padding: 0 1rem 0 2.75rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.875rem;
  outline: none;
  transition: var(--transition);
}

.search-bar input::placeholder {
  color: var(--text-muted);
}

.search-bar input:focus {
  border-color: var(--green-primary);
  background: rgba(26,138,90,0.08);
  box-shadow: 0 0 0 3px var(--green-glow);
}

.search-bar .search-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  filter: invert(1) opacity(0.4);
  pointer-events: none;
}

/* ── Footer ── */
.footer {
  margin-top: 5rem;
  padding: 2.5rem 2rem;
  border-top: 1px solid var(--card-border);
  text-align: center;
}

.footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.footer p span {
  color: var(--green-light);
}

/* ── Rating Stars ── */
.stars {
  display: flex;
  align-items: center;
  gap: 2px;
}

.stars img {
  width: 14px;
  height: 14px;
}

.rating-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-left: 4px;
}

/* ── Tag / Badge ── */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(26,138,90,0.15);
  color: var(--green-light);
  border: 1px solid rgba(26,138,90,0.3);
}

/* ── Section Title ── */
.section-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.section-title span {
  color: var(--green-light);
}

/* ── Empty State ── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 2rem;
  text-align: center;
  gap: 1.25rem;
}

.empty-state img {
  width: 180px;
  opacity: 0.85;
}

.empty-state h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
}

.empty-state p {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 280px;
  line-height: 1.6;
}

/* ── Utility ── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.fade-up {
  animation: fadeUp 0.5s ease both;
}

/* ── Skeleton Loader ── */
.skeleton {
  background: linear-gradient(90deg, var(--card-bg) 25%, var(--navy-light) 50%, var(--card-bg) 75%);
  background-size: 400px 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-sm);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .navbar {
    padding: 0 1rem;
  }
  .navbar-logo span {
    display: none;
  }
  .search-bar {
    max-width: 100%;
  }
  .container {
    padding: 0 1rem;
  }
}