/**
 * Main Stylesheet for Robin O'Brien Personal Portfolio Website
 * Version: 1.0.1
 * 
 * This stylesheet implements a dark theme design with:
 * - Modern CSS reset
 * - CSS custom properties (variables) for theming
 * - Responsive design patterns
 * - Smooth animations and transitions
 * - Card-based layout system
 * - Fixed navigation header
 */

/* Modern CSS Reset: Normalizes browser default styles */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/**
 * CSS Custom Properties - Dark Theme (Default)
 * These variables define the color scheme and design tokens used throughout the site
 * Note: Theme switching functionality is defined but theme switcher is hidden
 */
:root {
  --primary-color: #5d27ae;
  --secondary-color: #8f6ad3;
  --text-color: #f5f5f7;
  --light-text: #86868b;
  --background: #000000;
  --card-bg: #1d1d1f;
  --nav-bg: var(--card-bg);
  --footer-bg: #1d1d1f;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --blur: blur(70px) saturate(180%);
  --hover-color: #4b5563;
  --gradient-start: #4527a0;
  --gradient-end: #311b92;
  --card-glow: 0 0 30px rgba(69, 39, 160, 0.5);
}

/**
 * Base Styles
 * Sets up typography, colors, and base layout for the entire document
 */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
  line-height: 1.47059;
  color: var(--text-color);
  background-color: var(--background);
  transition: var(--transition);
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Theme Switcher */
.theme-switcher {
  display: none;
}

/* Navigation */
.main-nav {
  background-color: #000000;
  position: fixed;
  width: 100%;
  top: 44px;
  z-index: 1000;
  transition: var(--transition);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.1);
  height: 100px;
}

/* Remove all transparency effects */
.main-nav::before {
  display: none;
}

[data-theme="dark"] .main-nav {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.main-nav .container {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

/* Logo Styles */
.logo a {
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: none;
}

.logo-img {
  height: 64px;
  width: auto;
  margin-right: 15px;
  border-radius: 6px;
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: -0.5px;
}

/* Responsive Logo */
@media (max-width: 768px) {
  .logo-text {
    font-size: 1.4rem;
  }
  
  .logo-img {
    height: 48px;
  }
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-item a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 400;
  font-size: 0.9rem;
  transition: var(--transition);
  position: relative;
}

.nav-item a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--text-color);
  transition: var(--transition);
}

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  margin-top: 144px; /* Exactly nav height (100px) + banner height (44px) */
  padding: 4rem 0 6rem;
  background: linear-gradient(to bottom, var(--background), var(--card-bg));
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: radial-gradient(circle at center, var(--primary-color) 0%, transparent 70%);
  opacity: 0.1;
  pointer-events: none;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: -1px;
  opacity: 0;
  transform: translateY(20px);
  background: linear-gradient(
    100deg,
    var(--text-color) 20%,
    var(--text-color) 40%,
    rgba(255, 255, 255, 0.8) 50%,
    var(--text-color) 60%,
    var(--text-color) 80%
  );
  background-size: 200% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: fadeInUp 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards,
             shimmer 3.75s linear 0.8s infinite;
}

/* Hero Platform Logos */
.hero-platform-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  margin: 2.5rem 0;
  flex-wrap: wrap;
}

.platform-logo {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  opacity: 0.8;
  transition: var(--transition);
  cursor: default;
}

.platform-logo:hover {
  opacity: 1;
  transform: translateY(-3px) scale(1.1);
}

.platform-logo img,
.platform-logo svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.platform-logo:hover img,
.platform-logo:hover svg {
  filter: drop-shadow(0 4px 8px rgba(93, 39, 174, 0.5));
}

/* Android Icon - 20% larger than other platform logos */
.platform-logo[title="Android"] {
  width: 67.2px;
  height: 67.2px;
}

.footer-section .platform-logo[title="Android"] {
  width: 48px;
  height: 48px;
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--light-text);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 980px;
  font-weight: 500;
  font-size: 1.1rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  background-color: var(--secondary-color);
  transform: scale(1.05);
}

/* Sections */
.section {
  padding: 3rem 0;
  position: relative;
}

.section:first-of-type {
  margin-top: 144px; /* Space for banner (44px) + nav (100px) - only on first section */
}

.section h2 {
  text-align: center;
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 3rem;
  letter-spacing: -1px;
}

/* Card Grids */
.card-grid, .product-grid, .download-grid, .update-grid, .support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card, .product-card, .download-card, .update-card, .support-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transform: scale(1);
}

.card::after, .product-card::after, .download-card::after, .update-card::after, .support-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 12px;
  background: radial-gradient(circle at center, rgba(106, 27, 154, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

[data-theme="dark"] .card::after, [data-theme="dark"] .product-card::after, [data-theme="dark"] .download-card::after, [data-theme="dark"] .update-card::after, [data-theme="dark"] .support-card::after {
  background: radial-gradient(circle at center, rgba(69, 39, 160, 0.15) 0%, transparent 70%);
}

.card:hover::after, .product-card:hover::after, .download-card:hover::after, .update-card:hover::after, .support-card:hover::after {
  opacity: 1;
}

.card:hover, .product-card:hover, .download-card:hover, .update-card:hover, .support-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--card-glow);
}

[data-theme="dark"] .card:hover, [data-theme="dark"] .product-card:hover, [data-theme="dark"] .download-card:hover, [data-theme="dark"] .update-card:hover, [data-theme="dark"] .support-card:hover {
  box-shadow: var(--card-glow);
}

.support-card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  position: relative;
  z-index: 2;
}

.support-card-icon svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 4px rgba(93, 39, 174, 0.3));
}

.support-card:hover .support-card-icon {
  transform: scale(1.1);
  color: var(--secondary-color);
}

.support-card:hover .support-card-icon svg {
  filter: drop-shadow(0 4px 8px rgba(93, 39, 174, 0.5));
}

.card h3, .product-card h3, .download-card h3, .update-card h3, .support-card h3 {
  position: relative;
  z-index: 2;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.card p, .product-card p, .download-card p, .update-card p, .support-card p {
  position: relative;
  z-index: 2;
  color: var(--light-text);
}

/* Footer */
footer {
  background: linear-gradient(to bottom, var(--footer-bg), #0f0f0f);
  color: var(--text-color);
  padding: 5rem 0 2rem;
  transition: var(--transition);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(93, 39, 174, 0.5), transparent);
}

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

.footer-section {
  position: relative;
}

.footer-section h3 {
  color: var(--text-color);
  margin-bottom: 1.5rem;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.footer-section p {
  color: var(--light-text);
  line-height: 1.7;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

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

.footer-section ul li {
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 0;
}

.footer-section ul li::before {
  content: '→';
  position: absolute;
  left: -1.25rem;
  color: var(--primary-color);
  opacity: 0;
  transition: var(--transition);
}

.footer-section ul li:hover::before {
  opacity: 1;
  left: -1.5rem;
}

.footer-section ul li a {
  color: var(--light-text);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.95rem;
  display: inline-block;
  position: relative;
}

.footer-section ul li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.footer-section ul li a:hover {
  color: var(--text-color);
  transform: translateX(4px);
}

.footer-section ul li a:hover::after {
  width: 100%;
}

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

.social-links a {
  color: var(--light-text);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  position: relative;
  width: fit-content;
}

.social-links a::before {
  content: '';
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  position: absolute;
  bottom: 0;
  left: 0;
  transition: var(--transition);
}

.social-links a:hover {
  color: var(--text-color);
  transform: translateX(4px);
}

.social-links a:hover::before {
  width: 100%;
}

/* Platform Logos in Footer */
.platform-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.footer-section .platform-logo {
  width: 40px;
  height: 40px;
  opacity: 0.6;
  transition: var(--transition);
  cursor: pointer;
}

.footer-section .platform-logo:hover {
  opacity: 1;
  transform: translateY(-3px) scale(1.1);
  filter: drop-shadow(0 4px 8px rgba(93, 39, 174, 0.4));
}

.footer-section .platform-logo img,
.footer-section .platform-logo svg {
  transition: var(--transition);
}

.footer-bottom {
  text-align: center;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--light-text);
  font-size: 0.875rem;
  position: relative;
  margin-top: 1rem;
}

.footer-bottom::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(93, 39, 174, 0.3), transparent);
}

.footer-bottom p {
  margin: 0 0 1rem 0;
  opacity: 0.8;
  letter-spacing: 0.3px;
}

.footer-bottom .platform-logos {
  margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Force black background on mobile */
  body {
    background-color: #000000 !important;
  }

  /* Ensure cards have proper background on mobile */
  .card, .product-card, .download-card, .update-card, .support-card {
    background-color: #1d1d1f !important;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #000000;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  [data-theme="dark"] .nav-links {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.2rem;
  }

  .hero-platform-logos {
    gap: 1.5rem;
  }

  .platform-logo {
    width: 48px;
    height: 48px;
  }

  /* Android Icon - 20% larger in responsive mode */
  .platform-logo[title="Android"] {
    width: 57.6px;
    height: 57.6px;
  }

  .footer-section .platform-logo {
    width: 36px;
    height: 36px;
  }

  .footer-section .platform-logo[title="Android"] {
    width: 43.2px;
    height: 43.2px;
  }

  .platform-logos {
    gap: 1rem;
  }

  .section h2 {
    font-size: 2.5rem;
  }

  /* Footer responsive adjustments */
  footer {
    padding: 3rem 0 1.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 2rem;
  }

  .footer-section h3 {
    font-size: 1rem;
    margin-bottom: 1.25rem;
  }

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

  .social-links {
    gap: 0.875rem;
  }
}

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

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -100% center;
  }
  100% {
    background-position: 200% center;
  }
}

.section {
  animation: fadeIn 0.6s ease-out;
}

/* Navigation styles */
.nav-item.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #000000;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  min-width: 200px;
  padding: 0.5rem 0;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  list-style: none;
  margin: 0;
}

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

.dropdown-menu li {
  padding: 0;
  margin: 0;
  list-style: none;
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background-color: var(--hover-color);
}

/* Story Card Styles */
.story-card {
  background-color: var(--card-bg);
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.story-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.story-highlight {
  color: var(--primary-color);
  font-weight: 600;
  margin: 1rem 0;
}

.story-details {
  margin-top: 1rem;
}

.story-details ul {
  list-style-type: disc;
  margin-left: 1.5rem;
  margin-top: 0.5rem;
}

/* Award Card Styles */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.award-card {
  background-color: var(--card-bg);
  border-radius: 0.5rem;
  padding: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.award-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.award-org {
  color: var(--primary-color);
  font-weight: 500;
  margin: 0.5rem 0;
}

.award-details {
  margin-top: 1rem;
}

.award-details ul {
  list-style-type: disc;
  margin-left: 1.5rem;
  margin-top: 0.5rem;
}

/* Project Card Styles */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.project-card {
  background-color: var(--card-bg);
  border-radius: 0.5rem;
  padding: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.project-card ul {
  list-style-type: disc;
  margin-left: 1.5rem;
  margin-top: 0.5rem;
}

/* Content Section Styles */
.content {
  max-width: 1200px;
  margin: 0 auto;
}

.content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.content p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-color);
  margin-bottom: 2rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .content h1 {
    font-size: 2rem;
  }
  
  .story-card, .award-card, .project-card {
    padding: 1rem;
  }
  
  .story-details ul, .award-details ul, .project-card ul {
    margin-left: 1rem;
  }
}

/* Site Message Banner */
.site-message {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  line-height: 1.2;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-message[data-theme="dark"] {
  background-color: var(--primary-color);
  color: white;
}

.site-message[data-theme="light"] {
  background-color: var(--primary-color);
  color: white;
}

/* Blog Styles */
.blog-intro {
  text-align: center;
  font-size: 1.2rem;
  color: var(--light-text);
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Blog Filters */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.5rem 0;
}

.filter-btn {
  padding: 0.6rem 1.5rem;
  background-color: var(--card-bg);
  color: var(--text-color);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 980px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.filter-btn:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.filter-btn.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

/* Blog Search */
.blog-search {
  position: relative;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.blog-search input {
  width: 100%;
  padding: 1rem 3rem 1rem 1.5rem;
  background-color: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-color);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
}

.blog-search input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(93, 39, 174, 0.2);
}

.blog-search input::placeholder {
  color: var(--light-text);
}

.search-icon {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--light-text);
  pointer-events: none;
}

/* Featured Post */
.featured-post-container {
  margin-bottom: 4rem;
}

.featured-post {
  background: linear-gradient(135deg, var(--card-bg) 0%, rgba(93, 39, 174, 0.1) 100%);
  border-radius: 16px;
  padding: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}

.featured-post::before {
  content: '⭐ Featured';
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background-color: var(--primary-color);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 980px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.featured-post::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 16px;
  background: radial-gradient(circle at center, rgba(93, 39, 174, 0.15) 0%, transparent 70%);
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

.featured-post:hover::after {
  opacity: 1;
}

.featured-post:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-glow);
  border-color: var(--primary-color);
}

.featured-post-content {
  position: relative;
  z-index: 2;
}

.featured-post h2 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-color);
  line-height: 1.2;
}

.featured-post .post-excerpt {
  font-size: 1.2rem;
  color: var(--light-text);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.featured-post .post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  margin-top: 1.5rem;
}

/* Blog Posts Grid */
.blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.blog-post-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-post-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 12px;
  background: radial-gradient(circle at center, rgba(93, 39, 174, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

.blog-post-card:hover::after {
  opacity: 1;
}

.blog-post-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--card-glow);
  border-color: rgba(93, 39, 174, 0.3);
}

.blog-post-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-color);
  line-height: 1.3;
}

.blog-post-card .post-excerpt {
  color: var(--light-text);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  font-size: 0.9rem;
  color: var(--light-text);
  margin-top: auto;
}

.post-meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.post-date {
  color: var(--secondary-color);
}

.post-category {
  background-color: rgba(93, 39, 174, 0.2);
  color: var(--secondary-color);
  padding: 0.3rem 0.8rem;
  border-radius: 980px;
  font-size: 0.85rem;
  font-weight: 500;
}

.post-read-time {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.post-tag {
  background-color: rgba(143, 106, 211, 0.15);
  color: var(--secondary-color);
  padding: 0.25rem 0.6rem;
  border-radius: 980px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Blog Post Detail Page */
.blog-post-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-post-header h1 {
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.blog-post-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 1.5rem;
  font-size: 1rem;
}

.blog-post-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color);
}

.blog-post-content h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.blog-post-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--text-color);
}

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

.blog-post-content ul,
.blog-post-content ol {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

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

.blog-post-content code {
  background-color: rgba(93, 39, 174, 0.2);
  color: var(--secondary-color);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
}

.blog-post-content pre {
  background-color: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1.5rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.blog-post-content pre code {
  background-color: transparent;
  color: var(--text-color);
  padding: 0;
}

.blog-post-content blockquote {
  border-left: 4px solid var(--primary-color);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  color: var(--light-text);
  font-style: italic;
}

.blog-post-footer {
  max-width: 800px;
  margin: 4rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.back-to-blog {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  margin-bottom: 2rem;
}

.back-to-blog:hover {
  color: var(--primary-color);
  transform: translateX(-4px);
}

/* Empty State */
.blog-empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--light-text);
}

.blog-empty-state p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

/* Responsive Blog Styles */
@media (max-width: 768px) {
  .blog-intro {
    font-size: 1rem;
  }

  .blog-filters {
    gap: 0.75rem;
  }

  .filter-btn {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
  }

  .blog-posts-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .featured-post {
    padding: 2rem 1.5rem;
  }

  .featured-post h2 {
    font-size: 1.8rem;
  }

  .featured-post .post-excerpt {
    font-size: 1rem;
  }

  .blog-post-header h1 {
    font-size: 2rem;
  }

  .blog-post-meta {
    gap: 1rem;
    font-size: 0.9rem;
  }

  .blog-post-content {
    font-size: 1rem;
  }

  .blog-post-content h2 {
    font-size: 1.5rem;
  }

  .blog-post-content h3 {
    font-size: 1.3rem;
  }
}