/* =========================
   CSS Variables (Theme)
========================= */
:root {
  --bg-color: #f5f7fa;
  --surface-color: #ffffff;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --border-color: #e5e7eb;
  --accent-color: #2563eb;
  --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] {
  --bg-color: #0f172a;
  --surface-color: #111827;
  --text-primary: #e5e7eb;
  --text-secondary: #9ca3af;
  --border-color: #1f2933;
  --accent-color: #3b82f6;
  --shadow-soft: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* =========================
   Global Styles
========================= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* =========================
   Header
========================= */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--surface-color);
}

.site-header h1 {
  font-size: 1.1rem;
  margin: 0;
}

.theme-toggle {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}

/* =========================
   Layout
========================= */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* =========================
   Download Item Component
========================= */
.download-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.8rem;
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.download-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

/* App Icon */
.app-icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

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

.app-info h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.app-info p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Download Button */
.download-btn {
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background-color: var(--accent-color);
  color: white;
  font-size: 0.85rem;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.download-btn:active {
  transform: scale(0.96);
}

/* =========================
   Footer
========================= */
.site-footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* =========================
   Animations
========================= */
.fade-in {
  opacity: 0;
  transform: translateY(12px);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* =========================
   Responsive
========================= */
@media (max-width: 600px) {
  .download-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .download-btn {
    align-self: stretch;
    text-align: center;
  }
}
