/**
 * F-trend Professional Fashion Blog CSS
 * Drupal theme implementation matching the professional blog design
 */

/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@300;400;500;600;700;800&display=swap');

/* CSS Custom Properties */
:root {
  --primary: #0a0a0a;
  --secondary: #1a1a1a;
  --accent: #6366f1;
  --accent-light: #818cf8;
  --text-primary: #111827;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-tertiary: #f3f4f6;
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --glass: rgba(255, 255, 255, 0.8);
  --glass-dark: rgba(15, 15, 15, 0.8);
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-accent: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --gradient-hero: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
}

/* Dark Mode Variables */
body.dark-mode {
  --text-primary: #f9fafb;
  --text-secondary: #d1d5db;
  --text-muted: #9ca3af;
  --bg-primary: #0f0f0f;
  --bg-secondary: #1a1a1a;
  --bg-tertiary: #262626;
  --border: #374151;
  --border-light: #374151;
  --glass: rgba(15, 15, 15, 0.8);
}

/* Reset and Base Styles */
.ftrend-professional-blog {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-x: hidden; /* Prevent horizontal scroll */
  width: 100%;
  max-width: 100vw; /* Ensure container doesn't exceed viewport */
}

/* Ensure all containers respect viewport width */
* {
  box-sizing: border-box;
  max-width: 100%;
}

/* Focus Mode */
body.focus-mode .nav-bar,
body.focus-mode .left-sidebar,
body.focus-mode .right-sidebar,
body.focus-mode .floating-actions,
body.focus-mode .hero-overlay {
  opacity: 0.1;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

body.focus-mode .main-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Ensure focus mode can be toggled */
body.focus-mode .action-btn#focusToggle {
  opacity: 1;
  pointer-events: auto;
}

/* Focus mode active state */
.action-btn.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* Reading Progress */
.reading-progress {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--border);
  z-index: 999;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-accent);
  width: 0%;
  transition: width 0.1s ease;
}

/* Enhanced Navigation */
.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  display: flex;
  align-items: center;
  height: 42px;
}

.site-logo {
  max-height: 42px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

/* Style Drupal's primary menu */
.nav-menu .menu {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu .menu-item {
  position: relative;
}

.nav-menu .menu-item a,
.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  position: relative;
  display: block;
}

.nav-menu .menu-item a:hover,
.nav-menu .menu-item.menu-item--active-trail > a,
.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.nav-menu .menu-item.menu-item--active-trail > a::after,
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
}

/* Drupal dropdown menu styling */
.nav-menu .menu-item--expanded > .menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.5rem 0;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1001;
  flex-direction: column;
  gap: 0;
  white-space: nowrap; /* Prevent text wrapping in dropdowns */
}

.nav-menu .menu-item--expanded:hover > .menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-menu .menu-item--expanded > .menu .menu-item a {
  padding: 0.75rem 1rem;
  border-radius: 0;
  font-size: 0.9rem;
  white-space: nowrap;
}

.nav-menu .menu-item--expanded > .menu .menu-item a:hover {
  background: var(--accent);
  color: white;
}

.nav-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.action-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  background: var(--bg-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-secondary);
}

.action-btn:hover,
.action-btn.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 70vh;
  min-height: 600px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 70px;
  width: 100%;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(1px);
}

/* Default pattern background when no image */
.hero-bg:not([style*="background-image"]) {
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><rect fill="%23667eea" width="1200" height="800"/><g fill="%23764ba2" opacity="0.3"><circle cx="200" cy="200" r="100"/><circle cx="800" cy="400" r="150"/><circle cx="1000" cy="200" r="80"/><circle cx="300" cy="600" r="120"/></g><g fill="%23ffffff" opacity="0.1"><path d="M0 400h1200v400H0z"/><path d="M200 200l200 200-200 200-200-200z"/><path d="M800 100l100 100-100 100-100-100z"/></g></svg>') center/cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(99, 102, 241, 0.9), rgba(139, 92, 246, 0.7));
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
  padding: 2rem;
  color: white;
}

.hero-category {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: white;
  padding: 0.75rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 50px;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-meta {
  display: flex;
  justify-content: center;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 0.75rem 1.25rem;
  border-radius: 50px;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-btn {
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.hero-btn.primary {
  background: white;
  color: var(--accent);
  border: 2px solid white;
}

.hero-btn.primary:hover {
  background: transparent;
  color: white;
  transform: translateY(-2px);
}

.hero-btn.secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.hero-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
  transform: translateY(-2px);
}

/* Main Layout */
.main-layout {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px 1fr 300px;
  gap: 3rem;
  padding: 4rem 2rem;
  align-items: start;
  overflow-x: hidden; /* Prevent horizontal scroll */
  width: 100%;
  box-sizing: border-box;
}

/* Sidebars */
.left-sidebar,
.right-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Main Content */
.main-content {
  background: var(--bg-primary);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  position: relative;
  transition: all 0.3s ease;
}

.main-content:hover {
  box-shadow: var(--shadow-xl);
}

/* Content Header */
.content-header {
  margin-bottom: 3rem;
  text-align: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.author-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 20px;
  background: var(--gradient-accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  overflow: hidden;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-placeholder,
.bio-avatar-placeholder {
  background: var(--gradient-accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
}

.author-info h4 {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.author-info span {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Engagement Row */
.engagement-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.engage-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--border);
  background: var(--bg-primary);
  color: var(--text-secondary);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.engage-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.engage-btn.liked {
  background: var(--success);
  color: white;
  border-color: var(--success);
}

.engage-btn.saved {
  background: var(--warning);
  color: white;
  border-color: var(--warning);
}

/* Article Content */
.article-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-primary);
  overflow-wrap: break-word; /* Prevent long words from causing horizontal scroll */
  word-wrap: break-word;
  max-width: 100%;
}

.ftrend-article-content {
  max-width: 100%;
  overflow-x: hidden;
}

.ftrend-article-content > p:first-child,
.article-lead {
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.6;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.ftrend-article-content p {
  margin-bottom: 2rem;
  overflow-wrap: break-word;
  word-wrap: break-word;
  max-width: 100%;
}

.ftrend-article-content h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 3.5rem 0 1.5rem 0;
  color: var(--text-primary);
  scroll-margin-top: 100px;
  position: relative;
}

.ftrend-article-content h2::before {
  content: '';
  position: absolute;
  left: -1.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 40px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

.ftrend-article-content h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 2.5rem 0 1rem 0;
  color: var(--text-primary);
  scroll-margin-top: 100px;
}

.highlight-box {
  background: var(--gradient-hero);
  border: 2px solid var(--accent-light);
  border-radius: 20px;
  padding: 2.5rem;
  margin: 3rem 0;
  position: relative;
  overflow: hidden;
}

.highlight-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-accent);
}

.highlight-box p {
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0;
  font-style: italic;
}

.content-image-gallery,
.content-image {
  width: 100%;
  margin: 3rem 0;
  border-radius: 16px;
  overflow: hidden;
}

.content-image {
  height: 300px;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-weight: 600;
  font-size: 1.1rem;
  border: 2px solid var(--accent-light);
}

.ftrend-article-content ul,
.ftrend-article-content ol {
  margin: 2rem 0;
  padding-left: 2rem;
}

.ftrend-article-content li {
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.ftrend-article-content li strong {
  color: var(--accent);
}

/* Article Meta */
.article-meta-detailed {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: 16px;
  border: 1px solid var(--border);
}

.meta-row {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
}

.meta-row .meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  background: var(--bg-primary);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
}

/* Article Taxonomy */
.article-taxonomy {
  margin: 3rem 0;
  padding: 2rem;
  background: var(--bg-secondary);
  border-radius: 16px;
  border: 1px solid var(--border);
}

.taxonomy-section {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.taxonomy-group h5 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.taxonomy-terms {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.taxonomy-terms a {
  padding: 0.5rem 1rem;
  background: var(--bg-primary);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.taxonomy-terms a:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* Article Footer */
.article-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border);
}

.article-stats {
  margin-bottom: 3rem;
}

.stat-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.stat-item:hover {
  background: var(--bg-tertiary);
  transform: translateY(-2px);
}

.stat-icon {
  width: 48px;
  height: 48px;
  background: var(--gradient-accent);
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-content .stat-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.stat-content .stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Author Bio Section */
.author-bio-section {
  padding: 2.5rem;
  background: var(--bg-secondary);
  border-radius: 20px;
  border: 1px solid var(--border);
}

.author-bio-header {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.author-bio-avatar {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: var(--gradient-accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  overflow: hidden;
  flex-shrink: 0;
}

.author-bio-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-bio-info h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.author-title {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.author-bio-content p {
  color: var(--text-primary);
  line-height: 1.6;
  margin: 0;
}

/* Comments Section */
.comments-section {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 2px solid var(--border);
}

.comments-header {
  text-align: center;
  margin-bottom: 3rem;
}

.comments-header h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.comments-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin: 0;
}

/* Widgets */
.widget {
  background: var(--bg-primary);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.widget:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.widget-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.widget-title::before {
  content: '';
  width: 4px;
  height: 20px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

/* Table of Contents */
.toc-list {
  list-style: none;
  padding: 0;
  max-height: 300px;
  overflow-y: auto;
}

.toc-item {
  margin-bottom: 0.5rem;
}

.toc-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
  font-weight: 500;
  line-height: 1.3;
}

.toc-link-sub {
  font-size: 0.85rem;
  padding-left: 1.5rem;
  color: var(--text-muted);
}

.toc-link:hover,
.toc-link.active {
  color: var(--accent);
  background: var(--bg-tertiary);
  border-left-color: var(--accent);
  transform: translateX(4px);
}

.toc-link.active {
  font-weight: 600;
}

/* Empty state for TOC */
.toc-list:empty::after {
  content: 'No headings found in article';
  display: block;
  padding: 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-style: italic;
}

/* Share Buttons */
.share-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  border: 2px solid var(--border);
  background: var(--bg-primary);
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.share-btn:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* Newsletter Form */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.newsletter-input {
  border: 2px solid var(--border);
  padding: 1rem 1.25rem;
  border-radius: 12px;
  font-size: 0.95rem;
  background: var(--bg-secondary);
  transition: border-color 0.3s ease;
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--accent);
}

.newsletter-btn {
  background: var(--gradient-accent);
  color: white;
  border: none;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.newsletter-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Trending Items */
.trending-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  margin-bottom: 0.75rem;
  background: var(--bg-secondary);
}

.trending-item:hover {
  background: var(--bg-tertiary);
  transform: translateX(4px);
}

.trending-number {
  width: 32px;
  height: 32px;
  background: var(--gradient-accent);
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.trending-content h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.trending-content span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Floating Actions */
.floating-actions {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 100;
}

.float-btn {
  width: 56px;
  height: 56px;
  background: var(--bg-primary);
  border: 2px solid var(--border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-lg);
}

.float-btn:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-2px) scale(1.05);
}

/* Professional Blog Cards */
.ftrend-post-card {
  background: var(--bg-primary);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  margin-bottom: 2rem;
}

.ftrend-post-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.post-card-image {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.ftrend-post-card:hover .post-card-image img {
  transform: scale(1.05);
}

.post-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.post-category-badge {
  background: var(--accent);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-card-content {
  padding: 2rem;
}

.post-meta-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.post-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.post-card-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-card-title a:hover {
  color: var(--accent);
}

.post-card-excerpt {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.post-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.read-more-btn {
  background: var(--gradient-accent);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.read-more-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.post-engagement {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.engagement-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Compact Post Layout */
.ftrend-post-compact {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-primary);
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  margin-bottom: 1rem;
}

.ftrend-post-compact:hover {
  background: var(--bg-secondary);
  transform: translateX(4px);
}

.compact-image {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.compact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compact-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.compact-category {
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.compact-content {
  flex: 1;
}

.compact-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.compact-title a {
  color: var(--text-primary);
  text-decoration: none;
}

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

.compact-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .main-layout {
    grid-template-columns: 250px 1fr 250px;
    gap: 2rem;
    padding: 2rem 1rem;
    max-width: 100%;
  }
  
  .floating-actions {
    display: none;
  }
}

@media (max-width: 968px) {
  .main-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1rem;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  .left-sidebar,
  .right-sidebar {
    position: static;
    display: none;
  }
  
  .main-content {
    padding: 2rem;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  .nav-menu {
    display: none;
  }
  
  .hero-section {
    height: 50vh;
    min-height: 400px;
  }
  
  .hero-content {
    padding: 1.5rem;
    max-width: 100%;
  }
  
  .hero-meta {
    flex-direction: column;
    gap: 1rem;
  }
  
  .author-bio-header {
    flex-direction: column;
    text-align: center;
  }
  
  .stat-group {
    grid-template-columns: 1fr 1fr;
  }
  
  /* Fix article content overflow on mobile */
  .ftrend-article-content {
    max-width: 100%;
    overflow-x: hidden;
  }
  
  .ftrend-article-content h2 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem 0;
  }
  
  .ftrend-article-content h3 {
    font-size: 1.4rem;
  }
}

@media (max-width: 640px) {
  .nav-container {
    padding: 0 1rem;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .engagement-row {
    flex-direction: column;
    align-items: center;
  }
  
  .meta-row {
    flex-direction: column;
    gap: 1rem;
  }
  
  .taxonomy-section {
    flex-direction: column;
  }
  
  .share-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-group {
    grid-template-columns: 1fr;
  }
  
  /* Mobile typography adjustments */
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .ftrend-article-content {
    font-size: 1rem;
  }
  
  .main-layout {
    padding: 1rem 0.5rem;
  }
  
  .main-content {
    padding: 1.5rem;
  }
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-left {
  animation: slideInLeft 0.6s ease-out;
}

.animate-right {
  animation: slideInRight 0.6s ease-out;
}

/* Print Styles */
@media print {
  .nav-bar,
  .floating-actions,
  .left-sidebar,
  .right-sidebar,
  .engagement-row,
  .share-grid,
  .newsletter-form {
    display: none !important;
  }
  
  .main-layout {
    grid-template-columns: 1fr;
    max-width: 100%;
    padding: 0;
  }
  
  .main-content {
    box-shadow: none;
    border: none;
    padding: 0;
  }
  
  .article-body {
    font-size: 12pt;
    line-height: 1.5;
  }
}