/* CSS Custom Properties */
:root {
  --primary-color: #2563eb;
  --secondary-color: #f59e0b;
  --accent-color: #10b981;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --background: #ffffff;
  --surface: #f9fafb;
  --border: #e5e7eb;
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --border-radius: 8px;
  --font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition: all 0.2s ease-in-out;
}

/* Dark mode variables */
@media (prefers-color-scheme: dark) {
  :root {
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    --background: #111827;
    --surface: #1f2937;
    --border: #374151;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--background);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
}

.skip-link:focus {
  top: 6px;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
.site-header {
  background: var(--background);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95);
}

.navbar {
  padding: 1rem 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand .brand-link {
  text-decoration: none;
  color: var(--text-primary);
}

.brand-text {
  font-size: 1.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-tagline {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: -4px;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.navbar-nav {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

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

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

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

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.search-toggle,
.mobile-menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.search-toggle:hover,
.mobile-menu-toggle:hover {
  background: var(--surface);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 3px;
}

.mobile-menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}

/* Search Overlay */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10vh;
}

.search-overlay.active {
  display: flex;
}

.search-container {
  background: var(--background);
  border-radius: var(--border-radius);
  padding: 2rem;
  width: 90%;
  max-width: 600px;
  box-shadow: var(--shadow-lg);
}

.search-input {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: var(--border-radius);
  font-size: 1.125rem;
  outline: none;
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--primary-color);
}

/* Breadcrumbs */
.breadcrumbs {
  background: var(--surface);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.breadcrumb-list {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  align-items: center;
}

.breadcrumb-list li:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  color: var(--text-muted);
}

.breadcrumb-list a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumb-list a:hover {
  color: var(--primary-color);
}

/* Hero Section Styles */
.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 6rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("/assets/images/hero-pattern.svg") repeat;
  opacity: 0.1;
  z-index: 1;
}

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

.hero-title {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 3rem;
  opacity: 0.9;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-button {
  padding: 1rem 2rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.cta-button.primary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.cta-button.primary:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

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

.cta-button.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

.cta-button.outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.cta-button.outline:hover {
  background: var(--primary-color);
  color: white;
}

/* Floating Cards Animation */
.hero-visual {
  position: absolute;
  top: 50%;
  right: 10%;
  transform: translateY(-50%);
  z-index: 1;
}

.floating-cards {
  position: relative;
  width: 200px;
  height: 200px;
}

.floating-cards .card {
  position: absolute;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  font-weight: 600;
  animation: float 6s ease-in-out infinite;
}

.floating-cards .card.tech {
  top: 0;
  left: 0;
  animation-delay: 0s;
}

.floating-cards .card.trends {
  top: 0;
  right: 0;
  animation-delay: 1.5s;
}

.floating-cards .card.music {
  bottom: 0;
  left: 0;
  animation-delay: 3s;
}

.floating-cards .card.ideas {
  bottom: 0;
  right: 0;
  animation-delay: 4.5s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Featured Posts */
.featured-posts {
  padding: 6rem 0;
  background: var(--surface);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 4rem;
  color: var(--text-primary);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.post-card {
  background: var(--background);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}

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

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

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.post-card-overlay {
  position: absolute;
  top: 1rem;
  left: 1rem;
}

.post-category {
  background: var(--primary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

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

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

.post-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.4;
}

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

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

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

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

.post-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar-small {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.post-share-preview {
  display: flex;
  gap: 0.5rem;
}

.share-btn-small {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
}

.share-btn-small:hover {
  opacity: 1;
  transform: scale(1.1);
}

.share-btn-small.twitter {
  background: #1da1f2;
  color: white;
}

.share-btn-small.facebook {
  background: #4267b2;
  color: white;
}

.section-cta {
  text-align: center;
}

/* Categories Section */
.categories-section {
  padding: 6rem 0;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.category-card {
  background: var(--background);
  padding: 3rem 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.category-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  color: white;
}

.category-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.category-card p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.category-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.category-link:hover {
  color: var(--secondary-color);
}

/* Newsletter Section */
.newsletter-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 6rem 0;
  text-align: center;
}

.newsletter-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.newsletter-content p {
  font-size: 1.25rem;
  margin-bottom: 3rem;
  opacity: 0.9;
}

.newsletter-form-hero {
  max-width: 600px;
  margin: 0 auto 3rem;
}

.form-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.newsletter-form-hero input {
  flex: 1;
  padding: 1.25rem 1.5rem;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  outline: none;
}

.newsletter-form-hero button {
  background: var(--secondary-color);
  color: white;
  border: none;
  padding: 1.25rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.newsletter-form-hero button:hover {
  background: #d97706;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.newsletter-privacy {
  font-size: 0.875rem;
  opacity: 0.8;
}

.newsletter-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  opacity: 0.8;
}

/* Testimonials */
.testimonials-section {
  padding: 6rem 0;
  background: var(--surface);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial {
  background: var(--background);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.testimonial-content {
  margin-bottom: 2rem;
}

.testimonial-content p {
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.testimonial-author strong {
  display: block;
  color: var(--text-primary);
  font-weight: 600;
}

.testimonial-author span {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Post Article Styles */
.post-article {
  position: relative;
}

.post-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.post-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.post-header .container {
  position: relative;
  z-index: 2;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  opacity: 0.9;
}

.post-category {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-weight: 500;
}

.post-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.post-excerpt {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 800px;
}

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

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.author-name {
  display: block;
  font-weight: 600;
  font-size: 1rem;
}

.author-title {
  display: block;
  font-size: 0.875rem;
  opacity: 0.8;
}

/* Share Buttons */
.post-share-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.share-label {
  font-weight: 500;
  opacity: 0.9;
}

.share-buttons {
  display: flex;
  gap: 0.5rem;
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.875rem;
  backdrop-filter: blur(10px);
}

.share-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.share-count {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.125rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Post Image */
.post-image {
  margin-top: 2rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.post-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Sticky Share Sidebar */
.sticky-share-sidebar {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: 1rem 0.5rem;
  box-shadow: var(--shadow-lg);
  display: none;
}

.share-count-total {
  text-align: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.total-shares {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.shares-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.sticky-share-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sticky-share-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sticky-share-btn.twitter {
  background: #1da1f2;
  color: white;
}

.sticky-share-btn.facebook {
  background: #4267b2;
  color: white;
}

.sticky-share-btn.linkedin {
  background: #0077b5;
  color: white;
}

.sticky-share-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

/* Post Content */
.post-content {
  padding: 4rem 0;
}

.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.post-body {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-primary);
}

.post-body h2,
.post-body h3,
.post-body h4 {
  margin: 2rem 0 1rem;
  color: var(--text-primary);
  font-weight: 600;
}

.post-body h2 {
  font-size: 1.875rem;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
}

.post-body h3 {
  font-size: 1.5rem;
}

.post-body h4 {
  font-size: 1.25rem;
}

.post-body p {
  margin-bottom: 1.5rem;
}

.post-body blockquote {
  border-left: 4px solid var(--primary-color);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--text-secondary);
}

.post-body ul,
.post-body ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.post-body li {
  margin-bottom: 0.5rem;
}

.post-body a {
  color: var(--primary-color);
  text-decoration: underline;
  transition: var(--transition);
}

.post-body a:hover {
  color: var(--secondary-color);
}

.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  margin: 2rem 0;
  box-shadow: var(--shadow);
}

.post-body code {
  background: var(--surface);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: "Monaco", "Menlo", monospace;
  font-size: 0.875rem;
}

.post-body pre {
  background: var(--surface);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  overflow-x: auto;
  margin: 2rem 0;
}

.post-body pre code {
  background: none;
  padding: 0;
}

/* Post Tags */
.post-tags {
  margin: 3rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.tags-label {
  font-weight: 600;
  color: var(--text-secondary);
  margin-right: 1rem;
}

.tag-link {
  display: inline-block;
  background: var(--surface);
  color: var(--text-secondary);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  text-decoration: none;
  margin: 0.25rem;
  font-size: 0.875rem;
  transition: var(--transition);
}

.tag-link:hover {
  background: var(--primary-color);
  color: white;
}

/* CTA Share Section */
.cta-share-section {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 3rem;
  border-radius: var(--border-radius);
  text-align: center;
  margin: 3rem 0;
  position: relative;
  overflow: hidden;
}

.cta-share-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.cta-share-section h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.cta-share-section p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  position: relative;
  z-index: 2;
}

.cta-share-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.cta-share-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.cta-share-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Author Bio */
.author-bio {
  display: flex;
  gap: 1.5rem;
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--border-radius);
  margin: 3rem 0;
  align-items: center;
}

.author-bio-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  flex-shrink: 0;
}

.author-bio h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.author-bio p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.author-social {
  display: flex;
  gap: 1rem;
}

.author-social a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.author-social a:hover {
  color: var(--secondary-color);
}

/* Related Posts */
.related-posts {
  background: var(--surface);
  padding: 4rem 0;
}

.related-posts h3 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  color: var(--text-primary);
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.related-post-card {
  background: var(--background);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.related-post-image {
  height: 200px;
  overflow: hidden;
}

.related-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.related-post-content {
  padding: 1.5rem;
}

.related-post-category {
  color: var(--primary-color);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.related-post-content h4 {
  margin: 0.5rem 0 1rem;
  font-size: 1.25rem;
  line-height: 1.4;
}

.related-post-content h4 a {
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
}

.related-post-content h4 a:hover {
  color: var(--primary-color);
}

.related-post-content p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.related-post-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Newsletter CTA */
.newsletter-cta {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.newsletter-content h3 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.newsletter-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.newsletter-form-inline {
  display: flex;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-form-inline input {
  flex: 1;
  min-width: 250px;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  outline: none;
}

.newsletter-form-inline button {
  background: var(--secondary-color);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.newsletter-form-inline button:hover {
  background: #d97706;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.newsletter-privacy {
  font-size: 0.875rem;
  opacity: 0.8;
}

/* Floating Share Button */
.floating-share {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 100;
}

.share-trigger {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.share-trigger:hover {
  transform: scale(1.1);
  background: var(--secondary-color);
}

.share-options {
  position: absolute;
  bottom: 70px;
  right: 0;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: 0.5rem;
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 150px;
}

.floating-share:hover .share-options {
  display: flex;
}

.share-option {
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: var(--text-primary);
  border-radius: 4px;
  transition: var(--transition);
  font-size: 0.875rem;
  font-weight: 500;
}

.share-option:hover {
  background: var(--surface);
}

.share-option.twitter:hover {
  background: #1da1f2;
  color: white;
}

.share-option.facebook:hover {
  background: #4267b2;
  color: white;
}

.share-option.linkedin:hover {
  background: #0077b5;
  color: white;
}

/* Reading Progress Bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  z-index: 1000;
  transition: width 0.1s ease;
}

/* Footer */
.site-footer {
  background: var(--text-primary);
  color: white;
  padding: 4rem 0 2rem;
}

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

.footer-section h3,
.footer-section h4 {
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
}

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

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
}

.footer-section ul a:hover {
  color: white;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  outline: none;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-form button {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
}

.newsletter-form button:hover {
  background: var(--secondary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
}

/* Page Content */
.page-content {
  padding: 4rem 0;
}

.page-header {
  text-align: center;
  margin-bottom: 4rem;
}

.page-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.page-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.page-body {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .sticky-share-sidebar {
    display: none !important;
  }

  .floating-share {
    display: block;
  }
}

@media (max-width: 768px) {
  .navbar-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .hero-visual {
    display: none;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .post-header {
    padding: 2rem 0 1rem;
  }

  .post-title {
    font-size: 2rem;
  }

  .post-excerpt {
    font-size: 1.125rem;
  }

  .share-buttons {
    flex-wrap: wrap;
  }

  .share-btn {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
  }

  .cta-share-buttons {
    flex-direction: column;
    align-items: center;
  }

  .author-bio {
    flex-direction: column;
    text-align: center;
  }

  .form-group {
    flex-direction: column;
  }

  .newsletter-form-inline {
    flex-direction: column;
  }

  .newsletter-form-inline input {
    min-width: auto;
  }

  .newsletter-stats {
    gap: 2rem;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .container {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .post-share-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .share-buttons {
    width: 100%;
    justify-content: space-between;
  }

  .share-btn {
    flex: 1;
    justify-content: center;
    min-width: 0;
  }

  .share-count {
    display: none;
  }

  .floating-share {
    bottom: 20px;
    right: 20px;
  }

  .share-trigger {
    width: 50px;
    height: 50px;
  }
}

/* Performance Optimizations */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print Styles */
@media print {
  .site-header,
  .breadcrumbs,
  .sticky-share-sidebar,
  .floating-share,
  .post-share-top,
  .cta-share-section,
  .related-posts,
  .newsletter-cta,
  .site-footer {
    display: none !important;
  }

  .post-content {
    padding: 0;
  }

  .post-header {
    background: none !important;
    color: var(--text-primary) !important;
    padding: 1rem 0;
  }

  .post-title {
    color: var(--text-primary) !important;
    text-shadow: none !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #0000ff;
    --secondary-color: #ff6600;
    --text-primary: #000000;
    --text-secondary: #333333;
    --background: #ffffff;
    --border: #000000;
  }
}
