/* ============================================================
   JOERI'S APK DOWNLOAD — "Android Noir" Theme
   A cinematic dark interface channeling Android's soul
   ============================================================ */

/* --- Custom Properties --- */
:root {
  --bg-deep: #0a0a0a;
  --bg-base: #121212;
  --bg-surface: #1a1a1a;
  --bg-elevated: #222222;
  --bg-hover: #2a2a2a;

  --green-primary: #3DDC84;
  --green-dim: #2bb86a;
  --green-glow: rgba(61, 220, 132, 0.35);
  --green-subtle: rgba(61, 220, 132, 0.08);
  --green-surface: rgba(61, 220, 132, 0.05);

  --text-primary: #e8e8e8;
  --text-secondary: #9e9e9e;
  --text-muted: #616161;
  --text-on-green: #0a0a0a;

  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.4);
  --shadow-md: 0 4px 16px rgba(0,0,0,.5);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.6);
  --shadow-green: 0 4px 24px rgba(61, 220, 132, 0.15);
  --shadow-green-lg: 0 8px 40px rgba(61, 220, 132, 0.2);

  --font-body: 'Roboto', -apple-system, sans-serif;
  --font-display: 'Roboto', -apple-system, sans-serif;

  --nav-height: 64px;
  --status-height: 24px;
  --bottom-nav-height: 64px;

  --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0.0, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

input, select, button {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
  color: inherit;
}

/* Material Icons sizing */
.material-icons-round {
  font-size: 20px;
  vertical-align: middle;
  line-height: 1;
}


/* ============================================================
   STATUS BAR — Fake Android status bar
   ============================================================ */
.status-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--status-height);
  background: #000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-primary);
}

.status-bar__time {
  letter-spacing: 0.5px;
}

.status-bar__icons {
  display: flex;
  align-items: center;
  gap: 4px;
}

.status-bar__icons .material-icons-round {
  font-size: 14px;
  opacity: 0.9;
}


/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky;
  top: var(--status-height);
  z-index: 999;
  height: var(--nav-height);
  background: rgba(18, 18, 18, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 16px;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.navbar__brand:hover {
  opacity: 0.85;
}

.navbar__logo {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 8px var(--green-glow));
}

.android-icon {
  width: 100%;
  height: 100%;
}

.navbar__title {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.navbar__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--green-primary);
  letter-spacing: -0.3px;
}

.navbar__subtitle {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Navbar Search */
.navbar__search {
  flex: 1;
  max-width: 480px;
  margin-left: auto;
  position: relative;
  display: flex;
  align-items: center;
}

.navbar__search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
  font-size: 20px;
}

.navbar__search input {
  width: 100%;
  height: 40px;
  padding: 0 16px 0 44px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 14px;
  transition: all 0.25s var(--ease-out);
}

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

.navbar__search input:focus {
  background: var(--bg-elevated);
  border-color: var(--green-primary);
  box-shadow: 0 0 0 3px var(--green-subtle), var(--shadow-green);
}


/* ============================================================
   MAIN
   ============================================================ */
.main {
  min-height: calc(100vh - var(--nav-height) - var(--status-height));
  padding-bottom: 40px;
}

@media (max-width: 768px) {
  .main {
    padding-bottom: calc(var(--bottom-nav-height) + 24px);
  }
}


/* ============================================================
   HERO SECTION — The showpiece
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 20px 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
}

/* Animated circuit-board grid background */
.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__grid {
  position: absolute;
  inset: -50%;
  background-image:
    linear-gradient(rgba(61, 220, 132, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 220, 132, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: gridDrift 25s linear infinite;
}

@keyframes gridDrift {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(40px, 40px) rotate(1deg); }
}

.hero__glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, var(--green-glow) 0%, transparent 70%);
  opacity: 0.5;
  animation: glowPulse 4s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes glowPulse {
  0% { opacity: 0.3; transform: translateX(-50%) scale(1); }
  100% { opacity: 0.55; transform: translateX(-50%) scale(1.1); }
}

/* Noise overlay for texture */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
  animation: heroFadeIn 0.8s var(--ease-out) both;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--green-subtle);
  border: 1px solid rgba(61, 220, 132, 0.15);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  color: var(--green-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
  animation: heroFadeIn 0.8s var(--ease-out) 0.1s both;
}

.hero__badge .material-icons-round {
  font-size: 16px;
}

.hero__title {
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
  animation: heroFadeIn 0.8s var(--ease-out) 0.2s both;
}

.hero__accent {
  color: var(--green-primary);
  text-shadow: 0 0 40px var(--green-glow);
}

.hero__subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 32px;
  font-weight: 300;
  animation: heroFadeIn 0.8s var(--ease-out) 0.3s both;
}

/* Hero Search */
.hero__search {
  display: flex;
  align-items: center;
  max-width: 520px;
  margin: 0 auto 40px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-full);
  padding: 4px;
  transition: all 0.3s var(--ease-out);
  animation: heroFadeIn 0.8s var(--ease-out) 0.4s both;
}

.hero__search:focus-within {
  border-color: var(--green-primary);
  box-shadow: 0 0 0 4px var(--green-subtle), var(--shadow-green-lg);
  background: var(--bg-elevated);
}

.hero__search > .material-icons-round {
  margin-left: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.hero__search input {
  flex: 1;
  height: 48px;
  padding: 0 12px;
  font-size: 16px;
  background: transparent;
  color: var(--text-primary);
}

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

/* Stats */
.hero__stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  animation: heroFadeIn 0.8s var(--ease-out) 0.5s both;
}

.hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__stat-num {
  font-size: 22px;
  font-weight: 700;
  color: var(--green-primary);
  letter-spacing: -0.5px;
}

.hero__stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
}


/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

/* Ripple base */
.btn::after,
.app-card::after,
.download-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--ripple-x, 50%) var(--ripple-y, 50%), rgba(255,255,255,0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.btn:active::after,
.app-card:active::after,
.download-btn:active::after {
  opacity: 1;
  transition: opacity 0s;
}

.btn--primary {
  background: var(--green-primary);
  color: var(--text-on-green);
  box-shadow: var(--shadow-green);
}

.btn--primary:hover {
  background: var(--green-dim);
  box-shadow: var(--shadow-green-lg);
  transform: translateY(-1px);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--primary .material-icons-round {
  font-size: 20px;
}

.btn--outline {
  background: transparent;
  border: 1px solid var(--border-hover);
  color: var(--text-primary);
}

.btn--outline:hover {
  background: var(--bg-hover);
  border-color: var(--green-primary);
  color: var(--green-primary);
}

.btn--text {
  background: transparent;
  color: var(--green-primary);
  padding: 6px 12px;
}

.btn--text:hover {
  background: var(--green-subtle);
}

.btn--small {
  padding: 6px 12px;
  font-size: 13px;
}

.btn--small .material-icons-round {
  font-size: 18px;
}


/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: 32px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.section__title .material-icons-round {
  color: var(--green-primary);
  font-size: 24px;
}

.section__more {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--green-primary);
  transition: gap 0.2s var(--ease-out);
}

.section__more:hover {
  gap: 8px;
}

.section__more .material-icons-round {
  font-size: 18px;
}


/* ============================================================
   CATEGORIES
   ============================================================ */
.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 4px;
}

@media (max-width: 768px) {
  .categories {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 8px;
  }
  .categories::-webkit-scrollbar {
    display: none;
  }
}

.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  scroll-snap-align: start;
  transition: all 0.2s var(--ease-out);
}

.category-chip:hover {
  background: var(--green-subtle);
  border-color: var(--green-primary);
  color: var(--green-primary);
  transform: translateY(-1px);
}

.category-chip .material-icons-round {
  font-size: 18px;
  opacity: 0.7;
}

.category-chip:hover .material-icons-round {
  opacity: 1;
  color: var(--green-primary);
}


/* ============================================================
   APP GRID & CARDS
   ============================================================ */
.app-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

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

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

.app-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all 0.25s var(--ease-out);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  animation: cardFadeIn 0.4s var(--ease-out) both;
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger card animations */
.app-grid .app-card:nth-child(1) { animation-delay: 0.05s; }
.app-grid .app-card:nth-child(2) { animation-delay: 0.1s; }
.app-grid .app-card:nth-child(3) { animation-delay: 0.15s; }
.app-grid .app-card:nth-child(4) { animation-delay: 0.2s; }
.app-grid .app-card:nth-child(5) { animation-delay: 0.25s; }
.app-grid .app-card:nth-child(6) { animation-delay: 0.3s; }
.app-grid .app-card:nth-child(7) { animation-delay: 0.32s; }
.app-grid .app-card:nth-child(8) { animation-delay: 0.34s; }
.app-grid .app-card:nth-child(9) { animation-delay: 0.36s; }
.app-grid .app-card:nth-child(n+10) { animation-delay: 0.38s; }

.app-card:hover {
  background: var(--bg-elevated);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.app-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.app-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.app-card__icon .material-icons-round {
  font-size: 28px;
  color: var(--green-primary);
  opacity: 0.5;
}

.app-card__fallback {
  font-size: 28px;
  color: var(--green-primary);
  opacity: 0.5;
  align-items: center;
  justify-content: center;
}

.app-card__info {
  flex: 1;
  min-width: 0;
}

.app-card__name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.app-card__summary {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}

.app-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
}

.app-card__version {
  font-family: 'Roboto Mono', monospace;
  font-weight: 500;
}

.app-card__action {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--green-subtle);
  flex-shrink: 0;
  transition: all 0.2s var(--ease-out);
}

.app-card__action .material-icons-round {
  font-size: 20px;
  color: var(--green-primary);
}

.app-card:hover .app-card__action {
  background: var(--green-primary);
  box-shadow: var(--shadow-green);
}

.app-card:hover .app-card__action .material-icons-round {
  color: var(--text-on-green);
}


/* ============================================================
   SEARCH HEADER & FILTERS
   ============================================================ */
.search-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.search-header__title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.search-header__count {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 400;
}

.filters {
  margin-bottom: 24px;
}

.filters__form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-label .material-icons-round {
  font-size: 16px;
  color: var(--green-primary);
}

.filter-select {
  appearance: none;
  padding: 10px 36px 10px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  cursor: pointer;
  min-width: 200px;
  transition: all 0.2s var(--ease-out);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239e9e9e'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px;
}

.filter-select:hover {
  border-color: var(--border-hover);
  background-color: var(--bg-elevated);
}

.filter-select:focus {
  border-color: var(--green-primary);
  box-shadow: 0 0 0 3px var(--green-subtle);
}


/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.pagination__btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  transition: all 0.2s var(--ease-out);
}

.pagination__btn:hover {
  background: var(--green-subtle);
  border-color: var(--green-primary);
  color: var(--green-primary);
}

.pagination__btn .material-icons-round {
  font-size: 20px;
}

.pagination__info {
  font-size: 14px;
  color: var(--text-muted);
}


/* ============================================================
   APP DETAIL PAGE
   ============================================================ */
.app-detail {
  max-width: 800px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 24px;
  padding: 6px 0;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--green-primary);
}

.back-link .material-icons-round {
  font-size: 20px;
}

/* App Header */
.app-header {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
  align-items: flex-start;
}

.app-header__icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.app-header__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.app-header__icon .material-icons-round {
  font-size: 40px;
  color: var(--green-primary);
  opacity: 0.6;
}

.app-header__fallback {
  font-size: 40px;
  color: var(--green-primary);
  opacity: 0.6;
}

.app-header__info {
  min-width: 0;
}

.app-header__name {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 4px;
}

.app-header__package {
  font-size: 13px;
  color: var(--text-muted);
  font-family: 'Roboto Mono', monospace;
  margin-bottom: 12px;
  word-break: break-all;
}

.app-header__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}


/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.badge .material-icons-round {
  font-size: 14px;
}

.badge--license {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.badge--category {
  background: var(--green-subtle);
  color: var(--green-primary);
  border: 1px solid rgba(61, 220, 132, 0.12);
  transition: all 0.2s;
}

.badge--category:hover {
  background: rgba(61, 220, 132, 0.15);
  border-color: var(--green-primary);
}

.badge--latest {
  background: var(--green-primary);
  color: var(--text-on-green);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.5px;
}


/* ============================================================
   DOWNLOAD CARD
   ============================================================ */
.download-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

/* Subtle green gradient accent at top */
.download-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-primary), var(--green-dim), var(--green-primary));
  background-size: 200% 100%;
  animation: gradientSlide 3s ease-in-out infinite;
}

@keyframes gradientSlide {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.download-card__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.download-card__header .material-icons-round {
  font-size: 24px;
  color: var(--green-primary);
}

.download-card__header h2 {
  font-size: 18px;
  font-weight: 700;
}

.android-selector {
  margin-bottom: 16px;
}

.android-selector .filter-label {
  margin-bottom: 8px;
}

.android-selector .filter-select {
  width: 100%;
}

.android-info {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--green-subtle);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--green-primary);
  margin-bottom: 16px;
}

.android-info .material-icons-round {
  font-size: 18px;
  flex-shrink: 0;
}

/* Download Button */
.download-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--green-primary), var(--green-dim));
  border-radius: var(--radius-md);
  color: var(--text-on-green);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--ease-out);
  box-shadow: var(--shadow-green);
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-green-lg);
}

.download-btn:active {
  transform: translateY(0);
}

.download-btn__info {
  display: flex;
  flex-direction: column;
}

.download-btn__version {
  font-size: 16px;
  font-weight: 700;
}

.download-btn__size {
  font-size: 13px;
  opacity: 0.8;
}

.download-btn__action {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
}

.download-btn__action .material-icons-round {
  font-size: 24px;
  animation: downloadBounce 2s ease-in-out infinite;
}

@keyframes downloadBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}


/* ============================================================
   DETAIL CARDS
   ============================================================ */
.detail-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
}

.detail-card__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.detail-card__title .material-icons-round {
  font-size: 22px;
  color: var(--green-primary);
}

.detail-card__content {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.description-text {
  white-space: pre-wrap;
  word-break: break-word;
}


/* ============================================================
   LINKS
   ============================================================ */
.links-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.link-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  transition: all 0.2s var(--ease-out);
}

.link-item:hover {
  background: var(--bg-hover);
  color: var(--green-primary);
}

.link-item .material-icons-round:first-child {
  font-size: 22px;
  color: var(--text-muted);
}

.link-item:hover .material-icons-round:first-child {
  color: var(--green-primary);
}

.link-item .material-icons-round:last-child {
  font-size: 16px;
  margin-left: auto;
  opacity: 0;
  transition: opacity 0.2s;
}

.link-item:hover .material-icons-round:last-child {
  opacity: 0.5;
}


/* ============================================================
   VERSIONS LIST
   ============================================================ */
.versions-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.version-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.version-item:hover {
  background: var(--bg-hover);
}

.version-item__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.version-item__name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Roboto Mono', monospace;
}

.version-item__meta {
  font-size: 12px;
  color: var(--text-muted);
}

.versions-more {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  padding: 12px;
}


/* ============================================================
   BOTTOM NAVIGATION
   ============================================================ */
.bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--bottom-nav-height);
    background: rgba(18, 18, 18, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-around;
  }
}

.bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
}

.bottom-nav__item.active {
  color: var(--green-primary);
}

.bottom-nav__item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 28px;
  background: var(--green-subtle);
  border-radius: var(--radius-full);
}

.bottom-nav__item .material-icons-round {
  font-size: 24px;
  position: relative;
  z-index: 1;
}

.bottom-nav__item span:last-child {
  position: relative;
  z-index: 1;
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  text-align: center;
  padding: 32px 20px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

.footer__content p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.footer__content a {
  color: var(--green-primary);
  font-weight: 500;
  transition: opacity 0.2s;
}

.footer__content a:hover {
  opacity: 0.8;
}

.footer__disclaimer {
  font-size: 11px !important;
  opacity: 0.6;
}


/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  max-width: 400px;
  margin: 40px auto;
}

.empty-state__icon {
  font-size: 64px !important;
  color: var(--text-muted);
  opacity: 0.3;
  margin-bottom: 16px;
  display: block;
}

.empty-state h2,
.empty-state h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.empty-state--small {
  padding: 20px;
  margin: 0;
}

.empty-state--small .material-icons-round {
  font-size: 24px !important;
  color: #ff9800;
  margin-bottom: 8px;
  display: block;
}


/* ============================================================
   SKELETON LOADING
   ============================================================ */
.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
}

.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
  animation: skeletonShimmer 1.5s ease-in-out infinite;
}

@keyframes skeletonShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}


/* ============================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================ */
@media (max-width: 768px) {
  .navbar {
    padding: 0 12px;
    gap: 10px;
  }

  .navbar__title {
    display: none;
  }

  .navbar__search {
    max-width: none;
  }

  .hero {
    padding: 48px 16px 40px;
    min-height: 400px;
  }

  .hero__title {
    font-size: 2rem;
  }

  .hero__subtitle br {
    display: none;
  }

  .hero__stats {
    gap: 24px;
  }

  .hero__stat-num {
    font-size: 18px;
  }

  .hero__search input {
    height: 44px;
    font-size: 15px;
  }

  .section {
    padding: 24px 16px;
  }

  .app-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .app-header__badges {
    justify-content: center;
  }

  .download-card,
  .detail-card {
    padding: 16px;
  }

  .filters__form {
    flex-direction: column;
  }

  .filter-select {
    min-width: auto;
    width: 100%;
  }

  .search-header {
    flex-direction: column;
    gap: 4px;
  }

  .pagination {
    gap: 8px;
  }

  .pagination__btn {
    padding: 8px 12px;
    font-size: 13px;
  }
}

@media (max-width: 400px) {
  .hero__title {
    font-size: 1.7rem;
  }

  .hero__stats {
    gap: 16px;
    flex-wrap: wrap;
  }

  .app-card {
    padding: 12px;
  }

  .app-card__icon {
    width: 44px;
    height: 44px;
  }
}

/* Large screens */
@media (min-width: 1200px) {
  .hero__content {
    max-width: 720px;
  }

  .hero {
    min-height: 560px;
  }
}


/* ============================================================
   SCROLLBAR STYLING
   ============================================================ */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--bg-hover);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}


/* ============================================================
   SELECTION COLOR
   ============================================================ */
::selection {
  background: rgba(61, 220, 132, 0.3);
  color: white;
}
