/* ============================================
   StupidApps - "How did you live without them?"
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-dark: #0a0a0f;
  --bg-card: #141420;
  --bg-card-hover: #1a1a2e;
  --text-primary: #e0e0e8;
  --text-secondary: #8888a0;
  --text-muted: #555570;
  --accent: #00d4ff;
  --accent-glow: rgba(0, 212, 255, 0.15);
  --accent-secondary: #ff6b6b;
  --accent-green: #4ade80;
  --accent-yellow: #fbbf24;
  --border: #222240;
  --font-mono: 'Courier New', Courier, monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1100px;
  --radius: 8px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

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

a:hover {
  color: #fff;
}

img {
  max-width: 100%;
  height: auto;
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Header / Nav --- */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  background: url('/assets/images/cropped-blueback.jpg') center/cover no-repeat;
  z-index: 100;
}

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

.site-logo {
  display: flex;
  align-items: center;
  background: radial-gradient(ellipse at center, rgba(50, 120, 220, 0.65) 0%, transparent 70%);
  padding: 0.25rem 1.5rem;
  border-radius: 8px;
}

.site-logo img {
  height: 50px;
  width: auto;
}

nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

nav a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover,
nav a.active {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1.2rem;
}

/* --- Hero --- */
.hero {
  text-align: center;
  padding: 5rem 0 3rem;
}

.hero h1 {
  font-family: var(--font-mono);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
  letter-spacing: -1px;
}

.hero .tagline {
  font-size: 1.3rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 1rem;
}

.hero .subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.badge {
  display: inline-block;
  background: var(--accent-glow);
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Section --- */
.section {
  padding: 3rem 0;
}

.section-title {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.section-title .accent {
  color: var(--accent);
}

.section-desc {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

/* --- App Cards Grid --- */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

a.app-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

a.app-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 212, 255, 0.3);
  transform: translateY(-2px);
  color: inherit;
}

.app-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

a.app-card:hover h3 {
  color: var(--accent);
}

.app-card .card-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  flex-grow: 1;
  margin-bottom: 1rem;
}

.app-card .card-meta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tag-legacy {
  background: rgba(251, 191, 36, 0.15);
  color: var(--accent-yellow);
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.tag-vb6 {
  background: rgba(255, 107, 107, 0.15);
  color: var(--accent-secondary);
  border: 1px solid rgba(255, 107, 107, 0.3);
}

.tag-video {
  background: rgba(74, 222, 128, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.tag-new {
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid rgba(0, 212, 255, 0.3);
}

.tag-web {
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

/* --- Product Detail Page --- */
.product-header {
  padding: 3rem 0 1.5rem;
  margin-bottom: 1rem;
}

.product-header h1 {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.product-header .product-tagline {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.product-content {
  max-width: 800px;
  padding-bottom: 3rem;
}

.product-content h2 {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--accent);
  margin: 2rem 0 0.75rem;
}

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

.product-content h3 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin: 1.5rem 0 0.5rem;
}

.product-content p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.product-content ul {
  color: var(--text-secondary);
  margin: 0.5rem 0 1rem 1.5rem;
  font-size: 0.95rem;
}

.product-content li {
  margin-bottom: 0.35rem;
}

.product-content em {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* --- Card Thumbnails --- */
.app-card .card-thumb {
  background: #e8e8e8;
  border-radius: 4px;
  padding: 0.4rem;
  margin-bottom: 0.75rem;
  text-align: center;
}

.app-card .card-thumb img {
  max-height: 100px;
  width: auto;
  border-radius: 2px;
}

/* --- Video Embed --- */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 1.5rem 0;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* --- Testimonials --- */
.testimonial {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.testimonial::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.3;
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial blockquote {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  white-space: pre-wrap;
  padding-left: 1rem;
}

.testimonial .attribution {
  margin-top: 1rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
}

.testimonial .attribution span {
  color: var(--text-muted);
  font-weight: 400;
}

/* --- News / Posts --- */
.post {
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
}

.post:last-child {
  border-bottom: none;
}

.post-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.post h2 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.post h2 a {
  color: var(--text-primary);
}

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

.post .post-body {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.post .post-body h3 {
  font-size: 1rem;
  color: var(--text-primary);
  margin: 1rem 0 0.25rem;
}

/* --- ZDNet Reviews --- */
.review-quote {
  border-left: 3px solid var(--accent-secondary);
  padding: 0.75rem 1rem;
  margin: 0.75rem 0;
  background: rgba(255, 107, 107, 0.05);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-secondary);
  font-style: italic;
  font-size: 0.9rem;
}

.review-quote .source {
  color: var(--text-muted);
  font-style: normal;
  font-size: 0.8rem;
  display: block;
  margin-top: 0.25rem;
}

/* --- Version History --- */
.version {
  margin-bottom: 1rem;
}

.version h3 {
  font-family: var(--font-mono);
  font-size: 0.95rem;
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: 3rem;
  text-align: center;
}

.site-footer p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.site-footer .footer-links {
  margin-top: 0.5rem;
}

.site-footer .footer-links a {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin: 0 0.75rem;
}

/* --- CTA / Coming Soon --- */
.cta-box {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(168, 85, 247, 0.1));
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  margin: 2rem 0;
}

.cta-box h2 {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.cta-box p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* --- Breadcrumb --- */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.breadcrumb a {
  color: var(--text-secondary);
}

.breadcrumb .sep {
  margin: 0 0.4rem;
}

/* --- Back link --- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.back-link:hover {
  color: var(--accent);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero .tagline {
    font-size: 1.1rem;
  }

  .app-grid {
    grid-template-columns: 1fr;
  }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0a1628;
    flex-direction: column;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
  }

  nav.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .product-header h1 {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .hero .tagline {
    font-size: 1rem;
  }

  .testimonial {
    padding: 1.5rem;
  }
}
