/* Dark Red Apps - Shared Styles */

@import url('https://fonts.googleapis.com/css2?family=Martian+Mono:wght@400;500;600;700&display=swap');

:root {
  --bg-primary: #f5f0e8;
  --bg-secondary: #ebe5db;
  --bg-card: #ffffff;
  --text-primary: #2c2a26;
  --text-secondary: #6b6560;
  --accent: #8b5a3c;
  --accent-hover: #a6704f;
  --border: #e0d8cc;
}

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

html {
  font-size: 16px;
}

body {
  font-family: 'Martian Mono', monospace;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
}

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

/* Header */
header {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.logo-img {
  height: 36px;
  width: 36px;
  max-height: 36px;
  max-width: 36px;
  border-radius: 8px !important;
  object-fit: cover;
  overflow: hidden;
}

nav {
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

nav a:hover {
  color: var(--text-primary);
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}

.dropdown-toggle:hover {
  color: var(--text-primary);
}

.dropdown-toggle::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 0.4rem;
  vertical-align: middle;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-width: 160px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 100;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: background 0.15s ease;
}

.dropdown-menu a img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.dropdown-menu a:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.dropdown-menu a:first-child {
  border-radius: 7px 7px 0 0;
}

.dropdown-menu a:last-child {
  border-radius: 0 0 7px 7px;
}

.dropdown-menu a:only-child {
  border-radius: 7px;
}

/* Main Content */
main {
  padding: 4rem 0;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  margin-top: 2rem;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  margin-top: 1.5rem;
}

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* App Cards */
.app-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}

.app-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.app-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.app-card-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  flex-shrink: 0;
}

.app-card-content {
  flex: 1;
  min-width: 0;
}

.app-card h3 {
  margin-top: 0;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.app-card p {
  margin-bottom: 0.75rem;
}

.app-card .tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--accent);
  background: rgba(139, 90, 60, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
}

/* App Page Hero */
.app-hero {
  text-align: center;
  padding: 2rem 0 3rem;
  position: relative;
}

.app-icon {
  width: 120px;
  height: 120px;
  border-radius: 26px;
  margin: 0 auto 1.5rem;
  object-fit: cover;
}

.app-hero h1 {
  margin-bottom: 0.5rem;
}


/* Screenshots */
.screenshots {
  margin: 3rem 0;
}

.screenshots h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Device Tabs */
.device-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.device-tab {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.device-tab:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

.device-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.hidden {
  display: none !important;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: start;
}

.screenshot {
  text-align: center;
}

.screenshot img {
  width: 100%;
  max-width: 240px;
  height: auto;
  display: block;
  margin: 0 auto;
  transition: transform 0.2s ease;
}

.screenshot:hover img {
  transform: scale(1.03);
}

.screenshot-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 1rem;
  margin-bottom: 0.25rem;
}

.screenshot-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.features {
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
}

.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
}

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

.feature p {
  margin: 0;
  font-size: 0.9rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: white;
  border-radius: 8px;
  font-weight: 500;
  transition: background 0.2s ease;
}

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

.btn-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--bg-secondary);
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

.btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

/* Platform Support */
.platform-support {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* App Store Badge */
.app-store-badge {
  display: inline-block;
  transition: opacity 0.2s ease;
}

.app-store-badge:hover {
  opacity: 0.8;
}

.app-store-badge img {
  height: 44px;
  width: auto;
}

.coming-soon-note {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.75rem;
}

/* Content Pages (Privacy, Support) */
.content-page h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.content-page .updated {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.content-page section {
  margin-bottom: 2rem;
}

.content-page ul {
  color: var(--text-secondary);
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.content-page li {
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  margin-top: 4rem;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

footer nav {
  gap: 1rem;
}

footer nav a {
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 640px) {
  h1 {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 1.1rem;
  }

  header .container,
  footer .container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .btn-group {
    flex-direction: column;
  }

  .btn-group .btn {
    width: 100%;
    text-align: center;
  }

  .app-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .screenshot-grid {
    grid-template-columns: 1fr;
    max-width: 280px;
    margin: 0 auto;
    gap: 2.5rem;
  }
}
