/* Fixware Apps — shared design system for /apps/ hub and individual app pages */

:root {
  --primary-color: #9333ea;
  --secondary-color: #e91e63;
  --accent-color: #d946ef;
  --light-color: #f5f3ff;
  --dark-color: #4c1d95;
  --success-color: #10b981;
  --text-color: #1f2937;
  --text-light: #6b7280;
  --bg-light: #ffffff;
  --bg-dark: #111827;
  --border-color: #e5e7eb;
}

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

body {
  font-family: "Montserrat", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #fafafa;
  color: var(--text-color);
  line-height: 1.6;
}

a {
  color: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---------- Header ---------- */

.apps-header {
  background-color: rgba(255, 255, 255, 0.97);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.apps-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.apps-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 700;
  color: var(--text-color);
}

.apps-brand img {
  height: 38px;
  border-radius: 6px;
}

.apps-nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  flex-wrap: wrap;
}

.apps-nav-links a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-light);
  transition: color 0.2s;
}

.apps-nav-links a:hover {
  color: var(--primary-color);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(147, 51, 234, 0.3);
}

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

.btn-outline:hover {
  background: var(--primary-color);
  color: #fff;
}

/* ---------- Hub hero ---------- */

.hub-hero {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  padding: 5rem 0 4rem;
  text-align: center;
}

.hub-hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.hub-hero p {
  max-width: 680px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.92);
}

.hub-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.hub-stat strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
}

.hub-stat span {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- App grid ---------- */

.apps-grid-section {
  padding: 4.5rem 0;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.app-grid-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  padding: 1.75rem;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.app-grid-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(147, 51, 234, 0.15);
  border-color: transparent;
}

.app-grid-card-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.app-grid-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.app-grid-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}

.app-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary-color);
  background: var(--light-color);
  padding: 0.15rem 0.6rem;
  border-radius: 20px;
}

.app-grid-card p.tagline {
  color: var(--text-light);
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.app-grid-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-light);
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

.star-rating {
  color: #f59e0b;
  font-weight: 700;
}

.star-rating .out-of {
  color: var(--text-light);
  font-weight: 400;
}

/* ---------- App detail hero ---------- */

.app-hero {
  padding: 4rem 0 3rem;
  background: var(--light-color);
}

.app-hero-inner {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.app-hero-icon {
  width: 128px;
  height: 128px;
  border-radius: 28px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.app-hero-info h1 {
  font-size: 2.3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.app-hero-tagline {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  max-width: 560px;
}

.app-hero-badges {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1.5rem;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-color);
  background: #fff;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.app-hero-ctas {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.play-badge img {
  height: 54px;
  display: block;
}

/* ---------- Section shell ---------- */

.section {
  padding: 4rem 0;
}

.section-title {
  font-size: 1.9rem;
  font-weight: 800;
  margin-bottom: 2.5rem;
  text-align: center;
}

/* ---------- Feature grid ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem;
}

.feature-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.75rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-top: 3px solid transparent;
  border-image: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) 1;
}

.feature-card h4 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.92rem;
}

/* ---------- About section ---------- */

.about-section {
  background: #fff;
}

.about-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

.about-copy p {
  color: var(--text-color);
  margin-bottom: 1.1rem;
  white-space: pre-line;
}

.about-facts {
  background: var(--light-color);
  border-radius: 14px;
  padding: 1.75rem;
  height: fit-content;
}

.about-facts h4 {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.about-facts dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem 1rem;
  font-size: 0.9rem;
}

.about-facts dt {
  color: var(--text-light);
}

.about-facts dd {
  font-weight: 600;
  text-align: right;
}

/* ---------- Screenshot gallery ---------- */

.screenshots-section {
  background: var(--bg-dark);
  color: #fff;
}

.screenshots-section .section-title {
  color: #fff;
}

.screenshot-scroll {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
}

.screenshot-scroll::-webkit-scrollbar {
  height: 8px;
}

.screenshot-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

.screenshot-scroll img {
  height: 420px;
  width: auto;
  border-radius: 18px;
  flex-shrink: 0;
  scroll-snap-align: start;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

/* ---------- CTA footer band ---------- */

.app-cta {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  text-align: center;
  padding: 4rem 0;
}

.app-cta h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.app-cta p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

/* ---------- Footer ---------- */

.apps-footer {
  background: var(--bg-dark);
  color: #9ca3af;
  padding: 2.5rem 0;
  text-align: center;
  font-size: 0.9rem;
}

.apps-footer a {
  color: #9ca3af;
  text-decoration: none;
  margin: 0 0.6rem;
}

.apps-footer a:hover {
  color: #fff;
}

/* ---------- Responsive ---------- */

@media (max-width: 768px) {
  .hub-hero h1 {
    font-size: 2rem;
  }

  .app-hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .app-hero-badges,
  .app-hero-ctas {
    justify-content: center;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-facts dd {
    text-align: left;
  }

  .screenshot-scroll img {
    height: 320px;
  }

  .apps-nav-links {
    gap: 1rem;
  }
}
