/**
 * common.css — Shared styles across all pages
 * Don'tForgetDad Website
 */

:root {
  --bg-color: #FAF8F5;
  --text-primary: #1A1A1A;
  --text-secondary: #5A5A5A;
  --accent: #FFB703;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Outfit', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ─── Navigation ─── */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 1.2rem 5%;
  background: var(--bg-color);
  transition: background 0.4s ease;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1300px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.3rem;
  text-decoration: none;
  color: var(--text-primary);
}

.nav-logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.nav-links a:hover, .nav-links a.active, .nav-links span.nav-active {
  color: #C48A00;
}

.nav-links span.nav-active {
  font-weight: 600;
  pointer-events: none;
  cursor: default;
}

/* ─── Main Content Layout ─── */
main {
  flex: 1;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 8rem 2rem 4rem;
}

.page-title {
  text-align: center;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #1d1d1f 0%, #434345 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 550px;
  margin: 0 auto 3rem;
}

.page-subtitle a {
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  transition: color 0.3s;
}

.page-subtitle a:hover {
  color: #C48A00;
}

/* ─── Content Cards (Privacy, Terms, FAQ) ─── */
.content-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 3rem 2.5rem;
  border-radius: 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06), inset 0 2px 4px rgba(255, 255, 255, 1);
  border: 1px solid rgba(255, 255, 255, 1);
  max-width: 800px;
  margin: 0 auto;
}

.content-card h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.content-card h2:first-child {
  margin-top: 0;
}

.content-card p,
.content-card li {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.content-card ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.content-card a {
  color: #B07D00;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.content-card a:hover {
  color: #8A6200;
}

.content-card strong {
  color: var(--text-primary);
}


/* ─── Footer ─── */
footer {
  background: #111;
  color: #888;
  padding: 4rem 5% 2rem;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s;
}

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

.footer-links a.footer-active {
  color: #fff;
  font-weight: 600;
}

.footer-copy {
  font-size: 0.9rem;
  color: #777;
}

/* ─── Mobile Adjustments ─── */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  main {
    padding: 6rem 1.5rem 3rem;
  }
  .page-title {
    font-size: 2.5rem;
  }
  .content-card {
    padding: 1.5rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.85);
  }
}

/* ─── Global Store Buttons ─── */
.store-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  align-items: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.store-buttons a {
  display: inline-flex;
  align-items: center;
}

.store-buttons a img {
  height: 54px;
  width: auto;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.store-buttons a:hover img {
  transform: translateY(-3px) scale(1.02);
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}
