/* GiftBookReading Landing Page Styles */

:root {
  --primary-color: #4f46e5;
  --primary-hover: #4338ca;
  --text-color: #1f2937;
  --text-muted: #6b7280;
  --bg-color: #f9fafb;
  --card-bg: #ffffff;
  --border-radius: 16px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: var(--text-color);
}

.container {
  width: 100%;
  max-width: 420px;
}

.card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow);
}

.icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon svg {
  width: 40px;
  height: 40px;
  color: white;
}

h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-color);
}

.metadata {
  margin-bottom: 24px;
}

.book-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 4px;
}

.reader-name {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.loading {
  padding: 20px 0;
}

.spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
  border: 3px solid #e5e7eb;
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.error {
  padding: 20px 0;
  color: #dc2626;
}

.actions {
  margin-top: 24px;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 9999px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.store-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.store-btn {
  display: block;
  transition: transform 0.2s ease;
}

.store-btn:hover {
  transform: scale(1.05);
}

.store-btn img {
  height: 40px;
  width: auto;
}

#play-store img {
  height: 60px;
  margin: -10px 0;
}

footer {
  text-align: center;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
}

.hidden {
  display: none !important;
}

/* Responsive */
@media (max-width: 480px) {
  .card {
    padding: 30px 20px;
  }

  h1 {
    font-size: 1.25rem;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.875rem;
  }

  .store-buttons {
    flex-direction: column;
    align-items: center;
  }
}
