/* ghostappix.cc - SEO-optimized, mobile-responsive design */
/* Color palette: cyan (#00d4ff), magenta (#ff00aa), deep purple (#1a0a2e), gold (#ffd700) */

:root {
  --bg-primary: #0d0618;
  --bg-secondary: #1a0a2e;
  --bg-card: #251a35;
  --accent-cyan: #00d4ff;
  --accent-magenta: #ff00aa;
  --accent-gold: #ffd700;
  --text-primary: #ffffff;
  --text-secondary: #b8a9c9;
  --font-heading: 'Orbitron', 'Segoe UI', sans-serif;
  --font-body: 'Outfit', 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --nav-height: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg-primary); color: var(--text-primary); line-height: 1.6; overflow-x: hidden; }

/* Skip link for accessibility */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  padding: 1rem 1.5rem; background: var(--accent-cyan); color: var(--bg-primary);
  font-weight: 700; text-decoration: none; border-radius: 0 0 4px 0;
}
.skip-link:focus { left: 0; }

/* Layout */
.wrapper { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
main { min-height: calc(100vh - var(--nav-height) - 200px); padding: 2rem 0 4rem; }

/* Header & Nav - clear hierarchy for sitelinks */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13, 6, 24, 0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-height); }
.logo-link {
  display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: inherit;
  font-family: var(--font-heading); font-weight: 700; font-size: 1.35rem;
}
.logo-link img { height: 42px; width: auto; object-fit: contain; }
.nav-toggle { display: none; background: none; border: none; color: var(--accent-cyan); cursor: pointer; padding: 0.5rem; }

/* Navigation - semantic nav for sitelinks */
.site-nav ul {
  display: flex; list-style: none; gap: 0.25rem; align-items: center; flex-wrap: wrap;
}
.site-nav a {
  display: block; padding: 0.6rem 1rem; color: var(--text-secondary); text-decoration: none;
  font-weight: 500; border-radius: 6px; transition: color 0.2s, background 0.2s;
}
.site-nav a:hover, .site-nav a[aria-current="page"] {
  color: var(--accent-cyan); background: rgba(0, 212, 255, 0.1);
}
.btn-header { padding: 0.5rem 1rem; border-radius: 8px; font-weight: 600; transition: transform 0.2s; }
.btn-login { background: transparent; color: var(--text-primary); border: 1px solid var(--accent-cyan); }
.btn-signup { background: var(--accent-gold); color: var(--bg-primary); border: none; }
.btn-signup:hover { transform: scale(1.02); }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 50%);
  padding: 3rem 0; margin-bottom: 3rem; position: relative;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
}
.hero h1 { font-family: var(--font-heading); font-size: clamp(1.75rem, 5vw, 2.5rem); margin-bottom: 1rem; }
.hero h1 span.cyan { color: var(--accent-cyan); }
.hero h1 span.magenta { color: var(--accent-magenta); }
.hero p { color: var(--text-secondary); font-size: 1.1rem; max-width: 600px; }

/* Typography - clear H1-H6 hierarchy */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.3; }
h1 { font-size: clamp(1.75rem, 4vw, 2.25rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.5rem, 3vw, 1.875rem); margin: 2rem 0 1rem; color: var(--accent-cyan); }
h3 { font-size: 1.35rem; margin: 1.5rem 0 0.75rem; }
h4 { font-size: 1.15rem; margin: 1rem 0 0.5rem; }
.lead { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 1.5rem; }
p { margin-bottom: 1rem; color: var(--text-secondary); }
a { color: var(--accent-cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Content sections */
.content-section { margin-bottom: 2rem; }
.content-section p { max-width: 72ch; }

/* Internal links - styled for clarity */
.internal-links { margin: 2rem 0; padding: 1.5rem; background: var(--bg-card); border-radius: 12px; border-left: 4px solid var(--accent-magenta); }
.internal-links h3 { font-size: 1rem; margin-bottom: 0.75rem; color: var(--text-secondary); }
.internal-links ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; }
.internal-links a { color: var(--accent-cyan); font-weight: 500; }

/* Footer */
.site-footer {
  background: var(--bg-secondary); border-top: 1px solid rgba(255, 0, 170, 0.2);
  padding: 2.5rem 0; margin-top: 4rem;
}
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; align-items: center; }
.footer-nav ul { display: flex; list-style: none; gap: 1.5rem; flex-wrap: wrap; }
.footer-nav a { color: var(--text-secondary); }
.footer-nav a:hover { color: var(--accent-magenta); }
.copyright { color: var(--text-secondary); font-size: 0.9rem; }

/* Contact form */
.contact-form { max-width: 500px; margin-top: 2rem; }
.contact-form label { display: block; margin-bottom: 0.25rem; font-weight: 500; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 0.75rem; margin-bottom: 1rem; border: 1px solid var(--bg-card);
  background: var(--bg-secondary); color: var(--text-primary); border-radius: 8px;
  font-family: inherit;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: 2px solid var(--accent-cyan); outline-offset: 2px;
}
.btn-primary {
  display: inline-block; padding: 0.75rem 1.5rem; background: var(--accent-gold);
  color: var(--bg-primary); font-weight: 700; border: none; border-radius: 8px;
  cursor: pointer; font-family: inherit; transition: transform 0.2s;
}
.btn-primary:hover { transform: scale(1.02); }

/* Category cards */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.category-card {
  background: var(--bg-card); border-radius: 12px; padding: 1.5rem;
  border: 1px solid rgba(0, 212, 255, 0.15); transition: border-color 0.2s;
}
.category-card:hover { border-color: var(--accent-cyan); }
.category-card h3 { margin-top: 0; }
.category-card a { font-weight: 600; }

/* Breadcrumb */
.breadcrumb { font-size: 0.9rem; margin-bottom: 1.5rem; color: var(--text-secondary); }
.breadcrumb a { color: var(--accent-cyan); }
.breadcrumb span { color: var(--text-secondary); }

/* Mobile */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-secondary); max-height: 0; overflow: hidden; transition: max-height 0.3s; }
  .site-nav.active { max-height: 400px; border-bottom: 1px solid rgba(0, 212, 255, 0.2); }
  .site-nav ul { flex-direction: column; padding: 1rem; align-items: stretch; }
  .site-nav a { padding: 0.75rem; }
  .header-inner { position: relative; }
  .hero { padding: 2rem 0; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* Performance: reduce motion for preference */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
