/* fliptalk.app — Tech Blog Styles */
:root {
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --coral: #f97316;
  --coral-light: #fb923c;
  --bg: #0c0a09;
  --bg-card: #1c1917;
  --bg-hover: #292524;
  --text: #fafaf9;
  --text-muted: #a8a29e;
  --text-dim: #78716c;
  --border: #292524;
  --radius: 12px;
  --gradient: linear-gradient(135deg, var(--teal), var(--coral));
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Layout */
.container { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 960px; }

/* Header */
header {
  padding: 32px 0 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}
.logo span { font-weight: 400; color: var(--text-muted); -webkit-text-fill-color: var(--text-muted); }
nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  margin-left: 24px;
  transition: color 0.2s;
}
nav a:hover { color: var(--text); }

/* Hero */
.hero { margin-bottom: 64px; }
.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.hero .accent { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 560px;
}

/* Section Headers */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.section-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
}

/* Article Cards */
.article-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 64px; }
.article-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-decoration: none;
  transition: all 0.2s;
}
.article-card:hover {
  background: var(--bg-hover);
  border-color: var(--teal-dark);
  transform: translateY(-1px);
}
.article-card .meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.article-card .tag {
  background: rgba(13, 148, 136, 0.15);
  color: var(--teal);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}
.article-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
  line-height: 1.4;
}
.article-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Post Content */
.post-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.post-header h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.post-header .meta {
  font-size: 0.875rem;
  color: var(--text-dim);
}
.post-content {
  font-size: 1.0625rem;
  color: #e7e5e4;
}
.post-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 40px 0 16px;
  letter-spacing: -0.01em;
}
.post-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 32px 0 12px;
}
.post-content p {
  margin-bottom: 20px;
}
.post-content a {
  color: var(--coral-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.post-content a:hover { color: var(--coral); }
.post-content ul, .post-content ol {
  margin: 0 0 20px 24px;
  color: #e7e5e4;
}
.post-content li { margin-bottom: 8px; }
.post-content code {
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.875em;
  border: 1px solid var(--border);
}
.post-content pre {
  background: #0a0a0a;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  overflow-x: auto;
  margin: 24px 0;
  font-size: 0.875rem;
  line-height: 1.6;
}
.post-content pre code {
  background: none;
  border: none;
  padding: 0;
}
.post-content blockquote {
  border-left: 3px solid var(--teal);
  padding: 12px 20px;
  margin: 24px 0;
  background: var(--bg-card);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-muted);
  font-style: italic;
}
.post-content img {
  max-width: 100%;
  border-radius: var(--radius);
  margin: 24px 0;
}
.post-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* Newsletter */
.newsletter {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 48px;
  text-align: center;
}
.newsletter h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.newsletter p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 16px;
}
.newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 440px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 16px;
  color: var(--text);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s;
}
.newsletter-form input:focus { border-color: var(--teal); }
.newsletter-form button {
  background: var(--gradient);
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.newsletter-form button:hover { opacity: 0.9; }

/* Footer */
footer {
  padding: 32px 0 64px;
  border-top: 1px solid var(--border);
  margin-top: 48px;
}
footer .inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-dim);
}
footer a { color: var(--text-muted); text-decoration: none; }
footer a:hover { color: var(--text); }
footer .links { display: flex; gap: 16px; }

/* Responsive */
@media (max-width: 640px) {
  .hero h1 { font-size: 1.75rem; }
  .header-inner { flex-direction: column; gap: 16px; }
  nav a:first-child { margin-left: 0; }
  .newsletter-form { flex-direction: column; }
  .post-content { font-size: 1rem; }
  footer .inner { flex-direction: column; gap: 12px; }
}

/* Tag Page */
.tag-header {
  margin-bottom: 32px;
}
.tag-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
}
.tag-header p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Home link */
.back-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  margin-bottom: 32px;
  transition: color 0.2s;
}
.back-home:hover { color: var(--text); }

/* Affiliate Disclosure */
.affiliate-note {
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}
