/* ContentProHub Insights - Premium Modern Design System */

:root {
  /* Sophisticated color palette */
  --ink: #0f0f0f;
  --ink-light: #2a2a2a;
  --smoke: #6b7280;
  --silver: #9ca3af;
  --pearl: #f9fafb;
  --white: #ffffff;
  
  /* Accent colors */
  --royal: #4f46e5;
  --royal-light: #6366f1;
  --royal-dark: #4338ca;
  --emerald: #10b981;
  --amber: #f59e0b;
  --rose: #f43f5e;
  --sky: #0ea5e9;
  
  /* Gradients */
  --gradient-royal: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --gradient-subtle: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
  --gradient-dark: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  --gradient-mesh: radial-gradient(at 40% 20%, hsla(245, 100%, 70%, 0.1) 0px, transparent 50%),
                   radial-gradient(at 80% 0%, hsla(189, 100%, 56%, 0.1) 0px, transparent 50%),
                   radial-gradient(at 0% 50%, hsla(355, 100%, 93%, 0.1) 0px, transparent 50%);
  
  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-glow: 0 0 50px -12px rgba(79, 70, 229, 0.25);
  
  /* Typography */
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
}

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-lg);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

p {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--smoke);
  margin-bottom: var(--space-md);
}

.lead {
  font-size: 1.375rem;
  line-height: 1.6;
  font-weight: 400;
  color: var(--ink-light);
  letter-spacing: -0.01em;
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Navigation */
.navigation {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navigation.scrolled {
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
}

.nav-brand::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--gradient-royal);
  transition: width 0.3s ease;
}

.nav-brand:hover::after {
  width: 100%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--smoke);
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
  padding: var(--space-xs) 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 100%;
  height: 2px;
  background: var(--royal);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
  color: var(--ink);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-link.active {
  color: var(--royal);
  font-weight: 600;
}

/* Hero Section */
.hero {
  padding-top: calc(72px + var(--space-3xl));
  padding-bottom: var(--space-3xl);
  background: var(--gradient-mesh), var(--gradient-subtle);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 20%;
  left: -20%;
  width: 40%;
  height: 40%;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.15) 0%, transparent 70%);
  filter: blur(80px);
  border-radius: 50%;
  animation: float 20s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 20%;
  right: -20%;
  width: 40%;
  height: 40%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
  filter: blur(80px);
  border-radius: 50%;
  animation: float 20s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  margin-bottom: var(--space-lg);
  background: linear-gradient(135deg, var(--ink) 0%, var(--royal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.375rem;
  color: var(--smoke);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-header h2 {
  margin-bottom: var(--space-md);
}

.section-header p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Articles Grid */
.articles-section {
  padding: var(--space-3xl) 0;
  background: var(--white);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

/* Article Card */
.article-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
}

.article-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.15);
  border-color: transparent;
}

.article-card:hover::before {
  opacity: 0.5;
}

.article-content {
  padding: var(--space-xl);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.article-category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.375rem 0.875rem;
  border-radius: 6px;
  background: var(--pearl);
  color: var(--royal);
  transition: all 0.2s ease;
}

.article-card:hover .article-category {
  background: var(--royal);
  color: var(--white);
}

.article-date,
.article-reading-time {
  font-size: 0.875rem;
  color: var(--silver);
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.article-title {
  margin-bottom: var(--space-md);
}

.article-title a {
  color: var(--ink);
  text-decoration: none;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.3;
  transition: color 0.2s ease;
  display: block;
}

.article-card:hover .article-title a {
  color: var(--royal);
}

.article-excerpt {
  color: var(--smoke);
  line-height: 1.6;
  flex: 1;
  margin-bottom: var(--space-lg);
}

.article-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--royal);
  text-decoration: none;
  transition: all 0.2s ease;
}

.article-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.article-link:hover svg {
  transform: translateX(4px);
}

/* Featured Article */
.featured-article {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--pearl) 0%, rgba(79, 70, 229, 0.05) 100%);
  border-radius: 24px;
  padding: var(--space-3xl);
  margin-bottom: var(--space-xl);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.featured-article::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 60%;
  height: 150%;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.1) 0%, transparent 60%);
  filter: blur(100px);
}

.featured-content h2 {
  font-size: 2.5rem;
  margin-bottom: var(--space-lg);
}

.featured-content .article-title a {
  font-size: 2.5rem;
}

.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: var(--gradient-royal);
  color: var(--white);
  padding: var(--space-xs) var(--space-md);
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-md);
}

.featured-badge svg {
  width: 16px;
  height: 16px;
}

/* Article Page */
.article-header {
  padding-top: calc(72px + var(--space-3xl));
  padding-bottom: var(--space-3xl);
  background: var(--gradient-mesh), var(--gradient-subtle);
  text-align: center;
}

.article-header h1 {
  max-width: 900px;
  margin: 0 auto var(--space-lg);
}

.article-info {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  color: var(--smoke);
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-lg);
}

.article-body h2 {
  position: relative;
  padding-left: var(--space-md);
}

.article-body h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient-royal);
  border-radius: 2px;
}

.article-body h3 {
  color: var(--ink-light);
}

.article-body p {
  margin-bottom: var(--space-lg);
}

.article-body ul,
.article-body ol {
  margin-bottom: var(--space-lg);
  padding-left: var(--space-xl);
}

.article-body li {
  margin-bottom: var(--space-sm);
  color: var(--smoke);
  line-height: 1.7;
}

.article-body blockquote {
  position: relative;
  margin: var(--space-2xl) 0;
  padding: var(--space-lg) var(--space-xl);
  background: var(--pearl);
  border-radius: 8px;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--ink-light);
  border-left: 4px solid var(--royal);
}

.article-body blockquote::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 4rem;
  color: var(--royal);
  opacity: 0.3;
  font-family: Georgia, serif;
}

/* CTA Box */
.insight-cta {
  background: linear-gradient(135deg, var(--pearl) 0%, rgba(79, 70, 229, 0.05) 100%);
  border-radius: 16px;
  padding: var(--space-2xl);
  margin: var(--space-3xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(79, 70, 229, 0.1);
}

.insight-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.1) 0%, transparent 70%);
  filter: blur(80px);
}

.insight-cta h3 {
  position: relative;
  z-index: 1;
  margin-bottom: var(--space-sm);
}

.insight-cta p {
  position: relative;
  z-index: 1;
  margin-bottom: var(--space-md);
}

.insight-cta a {
  color: var(--royal);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--royal);
  transition: all 0.2s ease;
}

.insight-cta a:hover {
  color: var(--royal-dark);
  border-color: var(--royal-dark);
}

/* Author Bio */
.author-bio {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-xl);
  background: var(--pearl);
  border-radius: 16px;
  margin-top: var(--space-3xl);
}

.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient-royal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: var(--shadow-lg);
}

.author-info h4 {
  margin-bottom: var(--space-xs);
}

.author-info p {
  margin-bottom: 0;
  font-size: 1rem;
}

/* Related Articles */
.related-articles {
  padding: var(--space-3xl) 0;
  background: var(--pearl);
}

.related-articles h3 {
  text-align: center;
  margin-bottom: var(--space-2xl);
  font-size: 2rem;
}

/* Footer */
.insights-footer {
  background: var(--gradient-dark);
  color: var(--white);
  padding: var(--space-3xl) 0 var(--space-xl);
  margin-top: var(--space-3xl);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-section h4 {
  color: var(--white);
  margin-bottom: var(--space-md);
  font-size: 1.125rem;
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-section a:hover {
  color: var(--white);
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section li {
  margin-bottom: var(--space-xs);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.article-card {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.article-card:nth-child(1) { animation-delay: 0.1s; }
.article-card:nth-child(2) { animation-delay: 0.2s; }
.article-card:nth-child(3) { animation-delay: 0.3s; }
.article-card:nth-child(4) { animation-delay: 0.4s; }
.article-card:nth-child(5) { animation-delay: 0.5s; }
.article-card:nth-child(6) { animation-delay: 0.6s; }

/* Responsive */
@media (max-width: 768px) {
  :root {
    --space-xs: 0.375rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
  }
  
  .nav-links {
    gap: var(--space-md);
  }
  
  .articles-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .featured-article {
    grid-template-columns: 1fr;
    padding: var(--space-xl);
  }
  
  .article-header h1 {
    font-size: 2rem;
  }
  
  .author-bio {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* Smooth scroll padding for fixed nav */
html {
  scroll-padding-top: 100px;
}

/* Selection styles */
::selection {
  background: rgba(79, 70, 229, 0.2);
  color: var(--ink);
}

/* Focus styles for accessibility */
*:focus {
  outline: 2px solid var(--royal);
  outline-offset: 2px;
}

/* Loading state for images */
img {
  background: var(--pearl);
}