/**
 * Jornal - Modern UI Design System
 * Clean, Minimalist, Premium
 */

/* ==========================================================================
   Variables & Reset
   ========================================================================== */
:root {
  /* Colors - Neutral */
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --black: #000000;

  /* Colors - Brand */
  --primary: #111827; /* Sophisticated Black/Dark Gray for primary UI */
  --accent: #2563eb;  /* Modern Blue for links/highlights */
  --accent-hover: #1d4ed8;
  --danger: #ef4444;
  --success: #10b981;
  --warning: #f59e0b;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Merriweather', 'Georgia', serif;

  /* Spacing */
  --container-width: 1200px;
  --header-height: 70px;
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-full: 9999px;
}

*, ::before, ::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-width: 0;
  border-style: solid;
  border-color: var(--gray-200);
}

html {
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  color: var(--gray-900);
  background-color: var(--white);
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--gray-900);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

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

p {
  margin-bottom: 1.5rem;
}

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

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

@media (max-width: 768px) {
  .md\:grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:flex-col { flex-direction: column; }
  .md\:hidden { display: none; }
}

/* ==========================================================================
   Components
   ========================================================================== */

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 1.75rem;
  letter-spacing: -0.03em;
  color: var(--black);
}

/* Navigation */
.nav-links {
  display: flex;
  gap: 2rem;
  font-weight: 500;
  font-size: 0.9375rem;
}

.nav-link {
  color: var(--gray-600);
  padding: 0.5rem 0;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--black);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--black);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background-color: var(--black);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--gray-800);
  transform: translateY(-1px);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--white);
}

.btn-accent:hover {
  background-color: var(--accent-hover);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--gray-300);
  color: var(--gray-700);
}

.btn-outline:hover {
  border-color: var(--gray-400);
  background-color: var(--gray-50);
}

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200); /* Thin border for modern look */
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  border-color: var(--gray-300);
}

.card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background-color: var(--gray-100);
}

.card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Articles (Prose) */
.article-header {
  text-align: center;
  max-width: 800px;
  margin: 3rem auto 2rem;
}

.article-hat {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-500);
  margin-bottom: 0.5rem;
}

.article-title {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--gray-900);
}

.article-excerpt {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--gray-500);
  border-top: 1px solid var(--gray-100);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

.article-content {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--gray-800);
  max-width: 740px;
  margin: 0 auto;
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content h2 {
  font-family: var(--font-sans);
  font-size: 1.75rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.article-content img {
  border-radius: var(--radius-md);
  margin: 2rem 0;
  width: 100%;
}

.article-content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
  font-style: italic;
  color: var(--gray-600);
  font-size: 1.25rem;
  margin: 2rem 0;
}

/* Footer */
.site-footer {
  margin-top: auto;
  background-color: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  padding: 3rem 0;
  font-size: 0.875rem;
  color: var(--gray-600);
}

/* Utilities */
.text-center { text-align: center; }
.text-right { text-align: right; }
.font-bold { font-weight: 700; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-accent { color: var(--accent); }
.text-gray-500 { color: var(--gray-500); }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.05em; }
.rounded-full { border-radius: var(--radius-full); }
.bg-gray-100 { background-color: var(--gray-100); }

/* Grid Utilities */
.col-span-2 { grid-column: span 2; }
.col-span-3 { grid-column: span 3; }
.col-span-4 { grid-column: span 4; }
.col-span-8 { grid-column: span 8; }
.col-span-12 { grid-column: span 12; }

@media (min-width: 1024px) {
  .lg\:col-span-8 { grid-column: span 8; }
  .lg\:col-span-4 { grid-column: span 4; }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
}

/* Hero Section */
.hero-title {
  font-size: 2.5rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

@media (max-width: 768px) {
  .hero-title { font-size: 1.75rem; }
}

/* Card Variations */
.card-compact .card-body { padding: 1rem; }
.card-compact h3 { font-size: 1rem; margin-bottom: 0.5rem; }

.card-overlay {
  position: relative;
  color: white;
  border: none;
}
.card-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%);
  z-index: 1;
}
.card-overlay .card-img { height: 100%; object-fit: cover; }
.card-overlay .card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.card-overlay h3 { color: white; }
.card-overlay .text-gray-600 { color: rgba(255,255,255,0.8); }

/* Responsive adjustments */
@media (max-width: 640px) {
  h1 { font-size: 2rem; }
  .article-title { font-size: 2rem; }
  .container { padding: 0 1rem; }
  .nav-links { display: none; } /* Simplified for now */
  .site-header { height: 60px; }
}
