/* === HeartQuote Design System 2026 === */
/* Clean, modern, Google-inspired UI with iOS refinements */

:root {
  --ios-blue: #007AFF;
  --ios-red: #FF3B30;
  --ios-pink: #FF2D55;
  --ios-green: #34C759;
  --ios-purple: #AF52DE;
  --ios-orange: #FF9500;
  --ios-gray: #8E8E93;
  --ios-light-gray: #F2F2F7;
  --ios-dark-bg: #000000;
  --ios-dark-card: #1C1C1E;
  --ios-dark-surface: #2C2C2E;
  --ios-text-primary: #000000;
  --ios-text-secondary: #3C3C43;
  --ios-text-tertiary: #8E8E93;
  --ios-separator: #E5E5EA;
  --ios-blur: saturate(180%) blur(20px);
  --ios-radius: 16px;
  --ios-radius-sm: 10px;
  --ios-radius-lg: 22px;
  --ios-shadow: 0 2px 12px rgba(0,0,0,0.08);
  --ios-shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  
  /* Google-inspired additions */
  --google-blue: #1a73e8;
  --google-blue-hover: #1557b0;
  --surface-white: #ffffff;
  --surface-dark: #1e1e1e;
  --border-light: #f0f0f0;
  --border-dark: #2c2c2c;
}

/* Dark mode variables */
body.dark-mode {
  --ios-light-gray: #1C1C1E;
  --ios-text-primary: #FFFFFF;
  --ios-text-secondary: #EBEBF5;
  --ios-text-tertiary: #8E8E93;
  --ios-separator: #38383A;
  --ios-shadow: 0 2px 12px rgba(0,0,0,0.4);
  --ios-shadow-lg: 0 8px 32px rgba(0,0,0,0.6);
}

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

body {
  font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--surface-white);
  color: var(--ios-text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode {
  background-color: var(--ios-dark-bg);
  color: #e8eaed;
}

/* === iOS Navigation Bar === */
.ios-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(242, 242, 247, 0.85);
  backdrop-filter: var(--ios-blur);
  -webkit-backdrop-filter: var(--ios-blur);
  border-bottom: 1px solid var(--ios-separator);
  transition: background-color 0.3s ease;
}

body.dark-mode .ios-nav {
  background: rgba(28, 28, 30, 0.85);
}

.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-back {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--ios-blue);
  text-decoration: none;
  font-size: 17px;
  font-weight: 400;
  min-width: 80px;
}

.nav-back a {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--ios-blue);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 20px;
  transition: background 0.2s;
}

.nav-back a:hover {
  background: rgba(0, 122, 255, 0.1);
}

.nav-back i {
  font-size: 14px;
}

.nav-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--ios-text-primary);
  text-align: center;
  flex: 1;
}

.nav-action {
  min-width: 80px;
  display: flex;
  justify-content: flex-end;
}

/* === iOS Tab Bar === */
.ios-tabs {
  display: flex;
  gap: 8px;
  padding: 8px 16px 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 1200px;
  margin: 0 auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.ios-tabs::-webkit-scrollbar {
  display: none;
}

.ios-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ios-blue);
  background: rgba(0, 122, 255, 0.08);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.ios-tab:hover {
  background: rgba(0, 122, 255, 0.15);
  border-color: rgba(0, 122, 255, 0.2);
}

.ios-tab.active {
  background: var(--ios-blue);
  color: #FFFFFF;
  border-color: var(--ios-blue);
  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

.ios-tab i {
  font-size: 13px;
}

/* === Page Header === */
.page-header {
  text-align: center;
  padding: 48px 20px 32px;
  max-width: 800px;
  margin: 0 auto;
}

.page-header h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--ios-blue), var(--ios-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-header p {
  font-size: 1.1rem;
  color: #5f6368;
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

body.dark-mode .page-header p {
  color: #9aa0a6;
}

/* === Container === */
.container {
  padding: 20px;
  max-width: 800px;
  margin: 0 auto;
}

/* === Quote Card === */
.quote-card {
  background: var(--surface-white);
  border-radius: var(--ios-radius-lg);
  padding: 28px 24px;
  margin: 16px 0;
  border: 1px solid var(--border-light);
  box-shadow: var(--ios-shadow);
  transition: all 0.3s ease;
  position: relative;
}

.quote-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--ios-shadow-lg);
}

body.dark-mode .quote-card {
  background: var(--surface-dark);
  border-color: var(--border-dark);
}

/* Urdu poetry specific styling */
.quote-card.urdu-poetry .quote-text {
  font-family: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', serif;
  font-size: 22px;
  line-height: 2;
  direction: rtl;
  text-align: right;
  font-style: normal;
}

.quote-text {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ios-text-primary);
  margin-bottom: 16px;
  font-style: italic;
}

.quote-author {
  font-size: 14px;
  color: var(--ios-text-tertiary);
  font-weight: 500;
  margin-bottom: 16px;
}

.quote-card.urdu-poetry .quote-author {
  direction: rtl;
  text-align: right;
}

.quote-actions {
  display: flex;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--ios-separator);
}

.quote-action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--ios-light-gray);
  color: var(--ios-blue);
}

.quote-action-btn:hover {
  background: rgba(0, 122, 255, 0.1);
  border-color: rgba(0, 122, 255, 0.2);
}

body.dark-mode .quote-action-btn {
  background: var(--ios-dark-surface);
}

.quote-action-btn.copied {
  background: var(--ios-green);
  color: #FFFFFF;
  border-color: var(--ios-green);
}

/* === CTA Section === */
.cta-section {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.05), rgba(175, 82, 222, 0.05));
  margin: 40px 0;
}

body.dark-mode .cta-section {
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.1), rgba(175, 82, 222, 0.1));
}

.cta-section h2 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-section p {
  font-size: 1rem;
  color: #5f6368;
  margin-bottom: 24px;
}

body.dark-mode .cta-section p {
  color: #9aa0a6;
}

/* === Download Button === */
.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--google-blue);
  color: white;
  padding: 14px 28px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
  transition: all 0.3s ease;
}

.download-btn:hover {
  background: var(--google-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 115, 232, 0.4);
}

/* === App Card (Homepage) === */
.app-card {
  background-color: var(--surface-white);
  border-radius: 28px;
  padding: 28px;
  border: 1px solid var(--border-light);
  box-shadow: var(--ios-shadow);
  max-width: 800px;
  margin: 0 auto;
}

body.dark-mode .app-card {
  background-color: var(--surface-dark);
  border-color: var(--border-dark);
}

.app-badge {
  display: inline-block;
  background: rgba(26, 115, 232, 0.1);
  color: var(--google-blue);
  padding: 4px 14px;
  border-radius: 30px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.app-header-row {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.app-icon-large {
  width: 70px;
  height: 70px;
  border-radius: 22px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.app-title-rating h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.app-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f4b400;
}

.rating-count {
  color: #5f6368;
  font-size: 0.8rem;
}

.app-desc {
  font-size: 0.95rem;
  color: #3c4043;
  margin: 24px 0 16px;
  line-height: 1.6;
}

body.dark-mode .app-desc {
  color: #bdc1c6;
}

.app-meta {
  display: flex;
  gap: 24px;
  margin: 16px 0 24px;
  font-size: 0.9rem;
  color: #5f6368;
  flex-wrap: wrap;
}

.app-meta i {
  margin-right: 6px;
  color: var(--google-blue);
}

/* === Screenshots === */
.screenshots-section {
  max-width: 800px;
  margin: 40px auto 16px;
  padding: 0 20px;
}

.screenshots-section h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.screenshots-scroll {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  padding-bottom: 20px;
  scroll-snap-type: x mandatory;
}

.screenshot-thumb {
  width: 160px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  flex-shrink: 0;
  scroll-snap-align: start;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.screenshot-thumb:hover {
  transform: scale(1.05);
}

/* === Features Grid === */
.features-section {
  padding: 60px 20px;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

body.dark-mode .features-section {
  border-color: var(--border-dark);
}

.features-section h2 {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 48px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-card {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ios-shadow-lg);
}

body.dark-mode .feature-card {
  background: var(--surface-dark);
  border-color: var(--border-dark);
}

.feature-card i {
  font-size: 2.5rem;
  color: var(--google-blue);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--ios-text-primary);
}

.feature-card p {
  color: #5f6368;
  font-size: 0.95rem;
  line-height: 1.6;
}

body.dark-mode .feature-card p {
  color: #9aa0a6;
}

/* === Footer === */
footer {
  background-color: var(--surface-white);
  padding: 48px 20px 24px;
  border-top: 1px solid var(--border-light);
}

body.dark-mode footer {
  background-color: var(--surface-dark);
  border-color: var(--border-dark);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links h4,
.social-links h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ios-text-primary);
}

.footer-links a,
.social-links a {
  color: #5f6368;
  text-decoration: none;
  transition: color 0.2s;
  font-size: 0.9rem;
}

.footer-links a:hover,
.social-links a:hover {
  color: var(--google-blue);
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.copyright {
  text-align: center;
  padding-top: 32px;
  margin-top: 32px;
  border-top: 1px solid var(--border-light);
  font-size: 0.8rem;
  color: #9aa0a6;
}

body.dark-mode .copyright {
  border-color: var(--border-dark);
}

/* === Toast Notification === */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--ios-dark-card);
  color: #FFFFFF;
  padding: 12px 12px;
  border-radius: 24px;
  font-size: 12px;
  font-weight: 500;
  box-shadow: var(--ios-shadow-lg);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2000;
  white-space: nowrap;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* === Zoom Modal === */
.zoom-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.zoom-modal.active {
  display: flex;
}

.zoom-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zoom-image {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 20px;
  transition: opacity 0.3s ease;
}

.zoom-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(60, 60, 60, 0.7);
  border: none;
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.zoom-close:hover {
  background: rgba(60, 60, 60, 0.9);
}

.zoom-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(60, 60, 60, 0.7);
  border: none;
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.zoom-nav:hover {
  background: rgba(60, 60, 60, 0.9);
}

.zoom-nav.prev {
  left: 20px;
}

.zoom-nav.next {
  right: 20px;
}

.zoom-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

/* === Responsive Design === */
@media (max-width: 768px) {
  .page-header h1 {
    font-size: 1.8rem;
  }
  
  .page-header p {
    font-size: 1rem;
  }
  
  .app-card {
    padding: 20px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .screenshots-scroll {
    gap: 12px;
  }
  
  .screenshot-thumb {
    width: 140px;
  }
}

@media (max-width: 480px) {
  .nav-content {
    padding: 10px 12px;
  }
  
  .ios-tab {
    padding: 8px 14px;
    font-size: 13px;
  }
  
  .quote-card {
    padding: 20px 16px;
  }
  
  .quote-text {
    font-size: 16px;
  }
}

/* === Utility Classes === */
.text-center {
  text-align: center;
}

.mt-20 {
  margin-top: 20px;
}

.mb-20 {
  margin-bottom: 20px;
}