/**
 * CeSCube Custom & Editorial Stylesheet
 * High-performance styles for CeSCube Journal & Strategic Forum
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,700&display=swap');

:root {
  --font-serif-title: 'Playfair Display', 'Merriweather', 'Georgia', serif;
  --font-serif-body: 'Merriweather', 'Georgia', serif;
  --font-sans-ui: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --cescube-navy: #1e3a8a;
  --cescube-dark: #0f172a;
  --cescube-accent: #b45309;
}

body {
  font-family: var(--font-sans-ui);
  color: #1e293b;
  background-color: #f8fafc;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .font-serif, .font-heading {
  font-family: var(--font-serif-title);
  letter-spacing: -0.012em;
}

.font-editorial-body {
  font-family: var(--font-serif-body);
  line-height: 1.8;
}

/* Keyframe animation for ticker marquee */
@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

.animate-marquee {
  display: inline-flex;
  animation: marquee 900s linear infinite;
}

.animate-marquee:hover {
  animation-play-state: paused;
}

/* Highly Legible Professional Editorial Typography */
.prose {
  font-family: var(--font-serif-body);
  color: #334155;
  font-size: 1.125rem;
  line-height: 1.9;
}

.prose p {
  margin-bottom: 1.7em;
}

.prose h1, .prose h2, .prose h3, .prose h4 {
  font-family: var(--font-serif-title);
  color: #0f172a;
  font-weight: 700;
  margin-top: 2em;
  margin-bottom: 0.7em;
  line-height: 1.3;
}

.prose h2 {
  font-size: 1.75rem;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 0.4em;
}

.prose blockquote {
  font-style: italic;
  border-left: 4px solid #1e3a8a;
  padding-left: 1.25rem;
  color: #1e293b;
  background-color: #f1f5f9;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
  margin: 1.8rem 0;
}

.prose img {
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  max-width: 100%;
  height: auto;
  margin: 1.5rem auto;
}

.prose a {
  color: #1e3a8a;
  text-decoration: underline;
  font-weight: 600;
}

.prose a:hover {
  color: #1d4ed8;
}

/* Line clamp helpers */
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Toast notification */
.cescube-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #0f172a;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.cescube-toast.show {
  opacity: 1;
  transform: translateY(0);
}
