/**
 * BevWire site styles - Markdown typography and custom overrides.
 * Most layout and component styling is handled by Tailwind CSS.
 * This file keeps: CSS variables, custom typography, and prose styles.
 */

/* CSS Variables for color consistency */
:root {
  --ed-bg: #fafafa;
  --ed-surface: #ffffff;
  --ed-text: #0a0a0a;
  --ed-muted: #737373;
  --ed-accent: #dc2626; /* Red-600 */
  --ed-border: #e5e5e5;
  --header-bg: #0f172a; /* Slate-900 */
  --header-text: #ffffff;
  --header-muted: #94a3b8;
}

/* Base styles - minimal reset */
* {
  box-sizing: border-box;
}

/* Blog post content typography (for .prose compatibility) */
.blog-post-content {
  font-size: 1.0625rem;
  line-height: 1.75;
}

.blog-post-content h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  font-weight: 400;
  margin: 1.5rem 0 0.5rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.blog-post-content h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.75rem;
  font-weight: 400;
  margin: 1.5rem 0 0.5rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.blog-post-content h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 1.25rem 0 0.375rem;
}

.blog-post-content p {
  margin: 0 0 1rem;
}

.blog-post-content ul,
.blog-post-content ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.blog-post-content li {
  margin: 0.5rem 0;
}

.blog-post-content pre {
  margin: 1.25rem 0;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  background: #f1f5f9;
  border-left: 4px solid var(--ed-accent);
  border-radius: 0 0.375rem 0.375rem 0;
}

.blog-post-content :not(pre) > code {
  font-size: 0.9em;
  padding: 0.15em 0.4em;
  background: #f1f5f9;
  border-radius: 0.25rem;
}

.blog-post-content a {
  color: var(--ed-accent);
  text-decoration: none;
  font-weight: 600;
}

.blog-post-content a:hover {
  text-decoration: underline;
}

.blog-post-content img {
  max-width: 100%;
  height: auto;
  margin: 1.25rem 0;
  border-radius: 0.5rem;
}

.blog-post-content blockquote {
  font-style: italic;
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--ed-accent);
  color: #64748b;
  background: #f8fafc;
  border-radius: 0 0.375rem 0.375rem 0;
}

.blog-post-content strong {
  font-weight: 700;
  color: var(--ed-text);
}

/* Article Section Styling - for Takeaway and News sections */
.article-takeaway,
.article-news {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--ed-accent);
  background: #f8fafc;
  border-radius: 0 0.5rem 0.5rem 0;
}

.article-takeaway {
  background: #fef9f3; /* Warm orange tint for takeaway */
  border-left-color: #ea580c; /* Orange-600 */
}

.article-takeaway h2,
.article-news h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid;
  display: inline-block;
}

.article-takeaway h2 {
  color: #ea580c; /* Orange-600 */
  border-bottom-color: #ea580c;
}

.article-news h2 {
  color: #0369a1; /* Sky-600 */
  border-bottom-color: #0369a1;
}

.article-news {
  background: #f0f9ff; /* Light blue tint for news */
  border-left-color: #0369a1; /* Sky-600 */
}

.article-takeaway ul {
  margin: 0;
  padding-left: 1.25rem;
}

.article-takeaway li {
  margin: 0.75rem 0;
  line-height: 1.6;
}

.article-takeaway li strong {
  color: #c2410c; /* Orange-700 */
}

.article-news p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: #334155;
}

/* Legacy: Industry Relevance Box - kept for backward compatibility */
.industry-relevance-box {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--ed-accent);
  background: #f8fafc;
  border-radius: 0 0.5rem 0.5rem 0;
}

.industry-relevance-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ed-accent);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--ed-accent);
  display: inline-block;
}

.industry-relevance-box p {
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
  color: #334155;
}

.industry-relevance-box p + p {
  margin-top: 1rem;
}

/* Line clamp utility for consistent truncation */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom selection color */
::selection {
  background: rgba(220, 38, 38, 0.2);
  color: inherit;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ed-accent);
  outline-offset: 2px;
}

/* Remove default button styles while keeping accessibility */
button {
  font-family: inherit;
}

/* Legacy image placeholder - used in some edge cases */
.article-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 0.875rem;
  background: #f1f5f9;
}
