/* Quixess app-specific styles */

body.app-quixess {
  display: flex;
  flex-direction: column;
}

/* App header */
.app-header {
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--color-border);
  background: rgba(250, 250, 248, 0.6);
  backdrop-filter: blur(8px);
  margin-top: 52px;
}

[data-theme="dark"] .app-header {
  background: rgba(20, 20, 20, 0.6);
}

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

.app-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text);
}

.app-icon { width: 36px; height: 36px; border-radius: var(--radius-sm); }
.app-name { font-weight: 600; font-size: 1.25rem; }

.app-links { display: flex; align-items: center; gap: var(--space-6); }
.app-link { color: var(--color-text-muted); font-weight: 500; }
.app-link:hover, .app-link.active { color: var(--color-text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-sm);
  font-weight: 500;
  border: none;
  cursor: pointer;
}

.btn-primary { background: var(--color-accent); color: white; }
.btn-primary:hover { background: var(--color-accent-hover); }
.btn-large { padding: var(--space-4) var(--space-8); font-size: 1.125rem; }

/* Hero - compact style matching Stories */
.hero.hero-compact {
  min-height: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--space-6);
  padding-top: calc(52px + var(--space-12));
  text-align: center;
  max-width: 540px;
  margin: 0 auto;
}

.hero-icon {
  width: 160px;
  height: 160px;
  border-radius: 36px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: var(--space-8);
}

.hero.hero-compact h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.tagline {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.description {
  color: var(--color-text-muted);
  max-width: 420px;
  margin-bottom: var(--space-8);
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.feature {
  background: rgba(212, 114, 90, 0.1);
  color: var(--color-accent);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
}

[data-theme="dark"] .feature {
  background: rgba(212, 114, 90, 0.15);
}

/* Features section */
.features-section { padding: 6rem var(--space-6); max-width: 1200px; margin: 0 auto; }
.features-section h2 { font-size: 2.5rem; font-weight: 700; text-align: center; margin-bottom: 4rem; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-8);
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  transition: border-color var(--transition-fast);
}

.feature-card:hover { border-color: var(--color-text-muted); }
.feature-icon { width: 48px; height: 48px; margin-bottom: var(--space-4); color: var(--color-accent); }
.feature-icon svg { width: 100%; height: 100%; }
.feature-card h3 { font-size: 1.25rem; margin-bottom: var(--space-2); }
.feature-card p { color: var(--color-text-muted); }

/* Showcase */
.showcase { padding: 6rem var(--space-6); max-width: 800px; margin: 0 auto; }
.showcase h2 { font-size: 2rem; margin-bottom: var(--space-4); }
.showcase > p { color: var(--color-text-muted); font-size: 1.125rem; margin-bottom: var(--space-8); }

.showcase-list { list-style: none; display: grid; gap: var(--space-3); }
.showcase-list li { display: flex; align-items: center; gap: var(--space-3); color: var(--color-text-muted); }
.showcase-list li::before { content: ''; width: 6px; height: 6px; background: var(--color-accent); border-radius: 50%; }

/* Download */
.download {
  padding: 6rem var(--space-6);
  text-align: center;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.download h2 { font-size: 2.5rem; margin-bottom: var(--space-4); }
.download p { color: var(--color-text-muted); font-size: 1.125rem; margin-bottom: var(--space-8); }

/* Help page */
.help-page { padding-top: 6rem; min-height: 100vh; }
.help-container { max-width: 800px; margin: 0 auto; padding: var(--space-8); }
.help-page h1 { font-size: 2.5rem; margin-bottom: var(--space-2); }
.help-intro { color: var(--color-text-muted); font-size: 1.25rem; margin-bottom: var(--space-12); }

.help-section { margin-bottom: var(--space-12); }
.help-section h2 { font-size: 1.5rem; margin-bottom: var(--space-4); padding-bottom: var(--space-2); border-bottom: 1px solid var(--color-border); }
.help-section > p { color: var(--color-text-muted); margin-bottom: var(--space-6); }

.help-method { margin-bottom: var(--space-6); padding-left: var(--space-4); border-left: 2px solid var(--color-border); }
.help-method h3 { font-size: 1rem; margin-bottom: var(--space-2); }
.help-method p { color: var(--color-text-muted); font-size: 0.95rem; }
.help-note { font-size: 0.875rem; color: var(--color-text-muted); margin-top: var(--space-2); opacity: 0.8; }

.shortcuts-table { width: 100%; border-collapse: collapse; margin-top: var(--space-4); }
.shortcuts-table th, .shortcuts-table td { text-align: left; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--color-border); }
.shortcuts-table th { font-weight: 600; color: var(--color-text-muted); font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.05em; }
.shortcuts-table td:first-child { white-space: nowrap; }

.tips-list { list-style: none; display: grid; gap: var(--space-3); }
.tips-list li { color: var(--color-text-muted); padding-left: var(--space-6); position: relative; }
.tips-list li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; background: var(--color-accent); border-radius: 50%; }

/* Legal pages */
.legal-page { padding-top: 6rem; min-height: 100vh; }
.legal-container { max-width: 700px; margin: 0 auto; padding: var(--space-8); }
.legal-page h1 { font-size: 2rem; margin-bottom: var(--space-1); }
.legal-updated { color: var(--color-text-muted); font-size: 0.875rem; margin-bottom: var(--space-12); }

.legal-section { margin-bottom: var(--space-8); }
.legal-section h2 { font-size: 1.125rem; margin-bottom: var(--space-3); }
.legal-section p { color: var(--color-text-muted); font-size: 0.95rem; margin-bottom: var(--space-4); }
.legal-section ul { list-style: none; margin: var(--space-4) 0; }
.legal-section li { color: var(--color-text-muted); font-size: 0.95rem; padding-left: var(--space-4); position: relative; margin-bottom: var(--space-2); }
.legal-section li::before { content: '\2022'; position: absolute; left: 0; color: var(--color-border); }

/* Responsive */
@media (max-width: 768px) {
  .app-nav { padding: 0; }
  .hero.hero-compact { padding: 6rem var(--space-4) 3rem; }
  .hero-icon { width: 120px; height: 120px; border-radius: 27px; }
  .hero-features { gap: var(--space-2); }
  .feature { font-size: 0.8rem; padding: var(--space-1) var(--space-3); }
  .features-section, .showcase, .download { padding: 4rem var(--space-4); }
  .feature-grid { grid-template-columns: 1fr; }
}
