/*
Theme Name: EggyBlog
Theme URI: https://github.com/eggyblog
Author: EggyBlog Team
Description: A playful, colorful WordPress theme inspired by Eggy Party (蛋仔派对) game website. Features gradient colors, glassmorphism cards, responsive layout, and fun animations.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eggy-blog
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, block-styles
*/

/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
  /* Primary Colors */
  --eggy-purple: #6B4CFA;
  --eggy-purple-light: #9B6BFF;
  --eggy-purple-dark: #5035D4;
  --eggy-pink: #FF6B9D;
  --eggy-pink-light: #FF8DB5;
  --eggy-yellow: #FFD93D;
  --eggy-yellow-light: #FFE570;
  --eggy-blue: #4FC3F7;
  --eggy-blue-light: #81D4FA;
  --eggy-cyan: #00E5FF;
  --eggy-green: #69F0AE;
  --eggy-orange: #FFAB40;

  /* Gradients */
  --eggy-gradient: linear-gradient(135deg, #6B4CFA 0%, #FF6B9D 100%);
  --eggy-gradient-2: linear-gradient(135deg, #4FC3F7 0%, #6B4CFA 100%);
  --eggy-gradient-3: linear-gradient(135deg, #FFD93D 0%, #FF6B9D 100%);
  --eggy-gradient-4: linear-gradient(135deg, #00E5FF 0%, #6B4CFA 50%, #FF6B9D 100%);
  --eggy-gradient-hero: linear-gradient(180deg, #1a0533 0%, #2d1b69 25%, #4a2c8a 50%, #6B4CFA 75%, #9B6BFF 100%);
  --eggy-gradient-card: linear-gradient(145deg, rgba(107,76,250,0.08) 0%, rgba(255,107,157,0.08) 100%);

  /* Background Colors */
  --eggy-bg: #F8F5FF;
  --eggy-bg-alt: #F0EBFF;
  --eggy-card-bg: #FFFFFF;
  --eggy-dark-bg: #1a0533;
  --eggy-overlay: rgba(26, 5, 51, 0.7);

  /* Text Colors */
  --eggy-text: #2D264B;
  --eggy-text-light: #8B85A0;
  --eggy-text-muted: #B0AAC0;
  --eggy-text-white: #FFFFFF;
  --eggy-text-on-gradient: #FFFFFF;

  /* Shadows */
  --eggy-shadow-sm: 0 2px 8px rgba(107, 76, 250, 0.08);
  --eggy-shadow-md: 0 4px 20px rgba(107, 76, 250, 0.12);
  --eggy-shadow-lg: 0 8px 40px rgba(107, 76, 250, 0.16);
  --eggy-shadow-xl: 0 16px 60px rgba(107, 76, 250, 0.2);
  --eggy-shadow-pink: 0 8px 30px rgba(255, 107, 157, 0.3);
  --eggy-shadow-purple: 0 8px 30px rgba(107, 76, 250, 0.3);
  --eggy-shadow-card-hover: 0 20px 60px rgba(107, 76, 250, 0.2);

  /* Border Radius */
  --eggy-radius-sm: 8px;
  --eggy-radius-md: 16px;
  --eggy-radius-lg: 20px;
  --eggy-radius-xl: 24px;
  --eggy-radius-2xl: 32px;
  --eggy-radius-full: 50%;

  /* Transitions */
  --eggy-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --eggy-transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --eggy-transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --eggy-transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Spacing */
  --eggy-container-max: 1400px;
  --eggy-section-padding: 100px;
  --eggy-section-padding-mobile: 60px;

  /* Z-index layers */
  --eggy-z-base: 1;
  --eggy-z-dropdown: 100;
  --eggy-z-sticky: 500;
  --eggy-z-fixed: 1000;
  --eggy-z-overlay: 1500;
  --eggy-z-modal: 2000;
}

/* ============================================================
   Reset & Base Styles
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Nunito', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--eggy-text);
  background-color: var(--eggy-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--eggy-bg);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--eggy-purple) 0%, var(--eggy-pink) 100%);
  border-radius: 10px;
  border: 2px solid var(--eggy-bg);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--eggy-purple-dark) 0%, var(--eggy-pink) 100%);
}

/* Selection */
::selection {
  background: var(--eggy-purple-light);
  color: #fff;
}

::-moz-selection {
  background: var(--eggy-purple-light);
  color: #fff;
}

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Nunito', 'Noto Sans SC', sans-serif;
  font-weight: 800;
  line-height: 1.3;
  color: var(--eggy-text);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

h4 {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
}

p {
  margin-bottom: 1rem;
  color: var(--eggy-text);
}

a {
  color: var(--eggy-purple);
  text-decoration: none;
  transition: var(--eggy-transition);
}

a:hover {
  color: var(--eggy-pink);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* ============================================================
   Layout
   ============================================================ */
.eggy-container {
  max-width: var(--eggy-container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.eggy-section {
  padding: var(--eggy-section-padding) 0;
  position: relative;
}

.eggy-section--alt {
  background: var(--eggy-bg-alt);
}

.eggy-section--gradient {
  background: var(--eggy-gradient-hero);
  color: var(--eggy-text-white);
}

.eggy-grid {
  display: grid;
  gap: 30px;
}

.eggy-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.eggy-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.eggy-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.eggy-flex {
  display: flex;
  align-items: center;
}

.eggy-flex--between {
  justify-content: space-between;
}

.eggy-flex--center {
  justify-content: center;
}

.eggy-flex--wrap {
  flex-wrap: wrap;
}

/* ============================================================
   Header / Navigation
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--eggy-z-fixed);
  padding: 0 24px;
  transition: var(--eggy-transition);
  background: transparent;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 30px rgba(107, 76, 250, 0.1);
}

.header-inner {
  max-width: var(--eggy-container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: var(--eggy-z-fixed);
}

.site-logo .logo-icon {
  width: 44px;
  height: 44px;
  background: var(--eggy-gradient);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  box-shadow: var(--eggy-shadow-purple);
  transition: var(--eggy-transition-bounce);
}

.site-logo:hover .logo-icon {
  transform: rotate(10deg) scale(1.1);
}

.site-logo .logo-text {
  font-size: 1.5rem;
  font-weight: 900;
  background: var(--eggy-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.site-header.scrolled .site-logo .logo-text {
  background: var(--eggy-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Main Navigation */
.main-navigation {
  display: flex;
  align-items: center;
}

.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-navigation li {
  position: relative;
}

.main-navigation a {
  display: block;
  padding: 10px 18px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--eggy-text);
  border-radius: var(--eggy-radius-md);
  position: relative;
  overflow: hidden;
  transition: var(--eggy-transition);
}

.site-header:not(.scrolled) .main-navigation a {
  color: rgba(255, 255, 255, 0.9);
}

.main-navigation a::before {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 24px;
  height: 3px;
  background: var(--eggy-gradient);
  border-radius: 3px;
  transition: var(--eggy-transition);
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
  color: var(--eggy-purple);
  background: rgba(107, 76, 250, 0.08);
}

.site-header:not(.scrolled) .main-navigation a:hover,
.site-header:not(.scrolled) .main-navigation .current-menu-item a {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.main-navigation a:hover::before,
.main-navigation .current-menu-item a::before {
  transform: translateX(-50%) scaleX(1);
}

/* Submenu */
.main-navigation .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--eggy-radius-lg);
  box-shadow: var(--eggy-shadow-lg);
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--eggy-transition);
  z-index: var(--eggy-z-dropdown);
}

.main-navigation li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-navigation .sub-menu a {
  color: var(--eggy-text);
  border-radius: var(--eggy-radius-sm);
  padding: 10px 16px;
  font-size: 0.9rem;
}

.main-navigation .sub-menu a:hover {
  background: var(--eggy-gradient-card);
  color: var(--eggy-purple);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-search-btn {
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(107, 76, 250, 0.08);
  border-radius: var(--eggy-radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--eggy-text);
  font-size: 1.1rem;
  transition: var(--eggy-transition);
}

.site-header:not(.scrolled) .header-search-btn {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.header-search-btn:hover {
  background: var(--eggy-gradient);
  color: #fff;
  transform: scale(1.05);
  box-shadow: var(--eggy-shadow-purple);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: var(--eggy-z-fixed);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--eggy-text);
  border-radius: 3px;
  transition: var(--eggy-transition);
}

.site-header:not(.scrolled) .menu-toggle span {
  background: #fff;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--eggy-gradient-hero);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg video,
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.hero-particle {
  position: absolute;
  border-radius: var(--eggy-radius-full);
  opacity: 0.6;
  animation: floatParticle 15s infinite ease-in-out;
}

.hero-particle:nth-child(1) {
  width: 80px; height: 80px;
  background: var(--eggy-pink);
  top: 10%; left: 10%;
  animation-delay: 0s;
  animation-duration: 12s;
}

.hero-particle:nth-child(2) {
  width: 60px; height: 60px;
  background: var(--eggy-yellow);
  top: 20%; right: 15%;
  animation-delay: -3s;
  animation-duration: 14s;
}

.hero-particle:nth-child(3) {
  width: 100px; height: 100px;
  background: var(--eggy-blue);
  bottom: 30%; left: 20%;
  animation-delay: -5s;
  animation-duration: 16s;
}

.hero-particle:nth-child(4) {
  width: 50px; height: 50px;
  background: var(--eggy-cyan);
  bottom: 15%; right: 25%;
  animation-delay: -8s;
  animation-duration: 13s;
}

.hero-particle:nth-child(5) {
  width: 70px; height: 70px;
  background: var(--eggy-green);
  top: 50%; left: 50%;
  animation-delay: -10s;
  animation-duration: 18s;
}

.hero-particle:nth-child(6) {
  width: 40px; height: 40px;
  background: var(--eggy-purple-light);
  top: 35%; left: 70%;
  animation-delay: -2s;
  animation-duration: 11s;
}

@keyframes floatParticle {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  25% { transform: translate(30px, -50px) rotate(90deg) scale(1.1); }
  50% { transform: translate(-20px, -80px) rotate(180deg) scale(0.9); }
  75% { transform: translate(50px, -30px) rotate(270deg) scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 30px;
  animation: fadeInDown 0.8s ease-out;
}

.hero-badge .badge-dot {
  width: 8px;
  height: 8px;
  background: var(--eggy-green);
  border-radius: var(--eggy-radius-full);
  animation: pulse 2s infinite;
}

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

.hero-title {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 24px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-title .gradient-text {
  background: var(--eggy-gradient-3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 36px;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--eggy-transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(-100%);
  transition: var(--eggy-transition);
}

.btn:hover::before {
  transform: translateX(0);
}

.btn-primary {
  background: var(--eggy-gradient);
  color: #fff;
  box-shadow: var(--eggy-shadow-pink);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(255, 107, 157, 0.4);
  color: #fff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-3px);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--eggy-purple);
  border: 2px solid var(--eggy-purple);
}

.btn-outline:hover {
  background: var(--eggy-gradient);
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: var(--eggy-shadow-purple);
}

.btn-sm {
  padding: 10px 24px;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 20px 48px;
  font-size: 1.1rem;
}

.btn-icon {
  font-size: 1.2rem;
}

/* Hero Wave Divider */
.hero-wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  z-index: 3;
  line-height: 0;
}

.hero-wave svg {
  width: 100%;
  height: auto;
  min-height: 80px;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 60px;
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--eggy-yellow);
  display: block;
  line-height: 1.2;
}

.hero-stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

/* ============================================================
   Section Header
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: var(--eggy-gradient-card);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--eggy-purple);
  margin-bottom: 16px;
}

.section-badge .badge-icon {
  font-size: 1rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 900;
  color: var(--eggy-text);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-title .gradient-text {
  background: var(--eggy-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-description {
  font-size: 1.1rem;
  color: var(--eggy-text-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ============================================================
   Post Card
   ============================================================ */
.post-card {
  background: var(--eggy-card-bg);
  border-radius: var(--eggy-radius-xl);
  overflow: hidden;
  box-shadow: var(--eggy-shadow-sm);
  transition: var(--eggy-transition);
  position: relative;
}

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

.post-card-image {
  position: relative;
  padding-top: 56.25%; /* 16:9 */
  overflow: hidden;
}

.post-card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--eggy-transition-slow);
}

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

.post-card-image .card-category {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  background: var(--eggy-gradient);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: 50px;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post-card-image .card-read-time {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50px;
  z-index: 2;
}

.post-card-body {
  padding: 24px;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 0.85rem;
  color: var(--eggy-text-light);
}

.post-card-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.post-card-meta .meta-dot {
  width: 4px;
  height: 4px;
  background: var(--eggy-text-muted);
  border-radius: var(--eggy-radius-full);
}

.post-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

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

.post-card-excerpt {
  font-size: 0.9rem;
  color: var(--eggy-text-light);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
}

.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(107, 76, 250, 0.08);
}

.post-card-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.post-card-author .author-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--eggy-radius-full);
  object-fit: cover;
  border: 2px solid var(--eggy-purple-light);
}

.post-card-author .author-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--eggy-text);
}

.post-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--eggy-purple);
  transition: var(--eggy-transition);
}

.post-card-link:hover {
  color: var(--eggy-pink);
  gap: 10px;
}

/* Featured Post Card (Large) */
.post-card--featured {
  grid-column: span 2;
}

.post-card--featured .post-card-image {
  padding-top: 50%;
}

.post-card--featured .post-card-title {
  font-size: 1.5rem;
}

.post-card--featured .post-card-excerpt {
  -webkit-line-clamp: 3;
}

/* ============================================================
   Featured Articles Section
   ============================================================ */
.featured-section {
  background: var(--eggy-bg);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* ============================================================
   Categories Section
   ============================================================ */
.categories-section {
  background: var(--eggy-gradient-hero);
  position: relative;
  overflow: hidden;
}

.categories-section .section-title,
.categories-section .section-description {
  color: #fff;
}

.categories-section .section-description {
  color: rgba(255, 255, 255, 0.7);
}

.categories-section .section-badge {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.category-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--eggy-radius-xl);
  padding: 32px 24px;
  text-align: center;
  transition: var(--eggy-transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--eggy-gradient);
  opacity: 0;
  transition: var(--eggy-transition);
}

.category-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.category-card:hover::before {
  opacity: 0.2;
}

.category-card-icon {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--eggy-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  transition: var(--eggy-transition-bounce);
}

.category-card:hover .category-card-icon {
  transform: scale(1.1) rotate(5deg);
  background: rgba(255, 255, 255, 0.25);
}

.category-card-title {
  position: relative;
  z-index: 1;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.category-card-count {
  position: relative;
  z-index: 1;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
}

/* ============================================================
   Newsletter / CTA Section
   ============================================================ */
.newsletter-section {
  background: var(--eggy-bg-alt);
  position: relative;
  overflow: hidden;
}

.newsletter-box {
  background: var(--eggy-gradient);
  border-radius: var(--eggy-radius-2xl);
  padding: 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.newsletter-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--eggy-radius-full);
}

.newsletter-box::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--eggy-radius-full);
}

.newsletter-title {
  position: relative;
  z-index: 1;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
}

.newsletter-description {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  position: relative;
  z-index: 1;
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  gap: 12px;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 16px 24px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  outline: none;
  transition: var(--eggy-transition);
}

.newsletter-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-form input[type="email"]:focus {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.25);
}

.newsletter-form button {
  padding: 16px 32px;
  background: #fff;
  color: var(--eggy-purple);
  border: none;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: var(--eggy-transition);
  white-space: nowrap;
}

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

/* ============================================================
   Sidebar
   ============================================================ */
.sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-widget {
  background: var(--eggy-card-bg);
  border-radius: var(--eggy-radius-xl);
  padding: 28px;
  margin-bottom: 30px;
  box-shadow: var(--eggy-shadow-sm);
}

.widget-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--eggy-text);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 3px solid;
  border-image: var(--eggy-gradient) 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.widget-title .widget-icon {
  font-size: 1.2rem;
}

/* Search Widget */
.search-widget .search-form {
  display: flex;
  gap: 8px;
}

.search-widget .search-field {
  flex: 1;
  padding: 12px 18px;
  border: 2px solid rgba(107, 76, 250, 0.15);
  border-radius: var(--eggy-radius-md);
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  color: var(--eggy-text);
  background: var(--eggy-bg);
  outline: none;
  transition: var(--eggy-transition);
}

.search-widget .search-field:focus {
  border-color: var(--eggy-purple);
  box-shadow: 0 0 0 4px rgba(107, 76, 250, 0.1);
}

.search-widget .search-submit {
  width: 48px;
  height: 48px;
  border: none;
  background: var(--eggy-gradient);
  color: #fff;
  border-radius: var(--eggy-radius-md);
  cursor: pointer;
  font-size: 1rem;
  transition: var(--eggy-transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-widget .search-submit:hover {
  transform: scale(1.05);
  box-shadow: var(--eggy-shadow-purple);
}

/* Category Widget */
.category-widget ul li {
  margin-bottom: 4px;
}

.category-widget ul li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  color: var(--eggy-text);
  font-weight: 600;
  border-radius: var(--eggy-radius-sm);
  transition: var(--eggy-transition);
}

.category-widget ul li a:hover {
  background: var(--eggy-gradient-card);
  color: var(--eggy-purple);
  padding-left: 22px;
}

.category-widget .cat-count {
  background: var(--eggy-bg);
  padding: 2px 10px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--eggy-text-light);
  min-width: 30px;
  text-align: center;
}

.category-widget ul li a:hover .cat-count {
  background: var(--eggy-gradient);
  color: #fff;
}

/* Popular Posts Widget */
.popular-widget .popular-post {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(107, 76, 250, 0.06);
  transition: var(--eggy-transition);
}

.popular-widget .popular-post:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.popular-widget .popular-post:first-child {
  padding-top: 0;
}

.popular-widget .popular-post:hover {
  transform: translateX(4px);
}

.popular-widget .popular-thumb {
  width: 72px;
  height: 72px;
  min-width: 72px;
  border-radius: var(--eggy-radius-md);
  overflow: hidden;
}

.popular-widget .popular-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popular-widget .popular-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.popular-widget .popular-title {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}

.popular-widget .popular-title a {
  color: var(--eggy-text);
}

.popular-widget .popular-title a:hover {
  color: var(--eggy-purple);
}

.popular-widget .popular-date {
  font-size: 0.8rem;
  color: var(--eggy-text-light);
}

/* Tags Widget */
.tags-widget .tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags-widget .tag-link {
  display: inline-block;
  padding: 8px 16px;
  background: var(--eggy-bg);
  color: var(--eggy-text-light);
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 50px;
  transition: var(--eggy-transition);
}

.tags-widget .tag-link:hover {
  background: var(--eggy-gradient);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--eggy-shadow-purple);
}

/* ============================================================
   Single Post
   ============================================================ */
.single-post-header {
  padding: 140px 0 60px;
  text-align: center;
  background: var(--eggy-gradient-hero);
  position: relative;
  overflow: hidden;
}

.single-post-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--eggy-bg);
  clip-path: ellipse(60% 100% at 50% 100%);
}

.single-post-header .post-category {
  display: inline-block;
  padding: 6px 20px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.single-post-header .post-title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  color: #fff;
  max-width: 800px;
  margin: 0 auto 24px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.single-post-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.single-post-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.single-post-meta .author-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--eggy-radius-full);
  border: 2px solid rgba(255, 255, 255, 0.3);
  object-fit: cover;
}

.single-post-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px;
}

.single-post-content .featured-image {
  border-radius: var(--eggy-radius-xl);
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: var(--eggy-shadow-lg);
}

.post-content {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--eggy-text);
}

.post-content h2 {
  font-size: 1.75rem;
  margin: 40px 0 20px;
  padding-left: 20px;
  border-left: 4px solid;
  border-image: var(--eggy-gradient) 1;
}

.post-content h3 {
  font-size: 1.35rem;
  margin: 32px 0 16px;
}

.post-content p {
  margin-bottom: 20px;
}

.post-content a {
  color: var(--eggy-purple);
  text-decoration: underline;
  text-decoration-color: rgba(107, 76, 250, 0.3);
  text-underline-offset: 3px;
}

.post-content a:hover {
  text-decoration-color: var(--eggy-purple);
}

.post-content blockquote {
  margin: 30px 0;
  padding: 24px 28px;
  background: var(--eggy-gradient-card);
  border-left: 4px solid var(--eggy-purple);
  border-radius: 0 var(--eggy-radius-lg) var(--eggy-radius-lg) 0;
  font-style: italic;
  color: var(--eggy-text);
}

.post-content ul,
.post-content ol {
  margin: 20px 0;
  padding-left: 28px;
}

.post-content ul {
  list-style: none;
}

.post-content ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
}

.post-content ul li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--eggy-purple);
  font-size: 0.8rem;
}

.post-content ol {
  list-style: decimal;
}

.post-content ol li {
  margin-bottom: 10px;
}

.post-content code {
  padding: 3px 8px;
  background: var(--eggy-bg-alt);
  border-radius: 6px;
  font-size: 0.9em;
  color: var(--eggy-purple);
  font-family: 'Fira Code', monospace;
}

.post-content pre {
  margin: 24px 0;
  padding: 24px;
  background: var(--eggy-dark-bg);
  color: #e0d4f7;
  border-radius: var(--eggy-radius-lg);
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.6;
}

.post-content pre code {
  padding: 0;
  background: none;
  color: inherit;
}

.post-content img {
  border-radius: var(--eggy-radius-lg);
  margin: 24px 0;
  box-shadow: var(--eggy-shadow-md);
}

/* Post Tags */
.post-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(107, 76, 250, 0.1);
}

.post-tags .tags-label {
  font-weight: 700;
  color: var(--eggy-text);
  font-size: 0.9rem;
}

.post-tags .tag-link {
  padding: 6px 16px;
  background: var(--eggy-bg);
  color: var(--eggy-text-light);
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 50px;
  transition: var(--eggy-transition);
}

.post-tags .tag-link:hover {
  background: var(--eggy-gradient);
  color: #fff;
}

/* Post Navigation */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 50px;
  padding-top: 40px;
  border-top: 2px solid rgba(107, 76, 250, 0.08);
}

.post-nav-item {
  padding: 24px;
  background: var(--eggy-card-bg);
  border-radius: var(--eggy-radius-lg);
  box-shadow: var(--eggy-shadow-sm);
  transition: var(--eggy-transition);
}

.post-nav-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--eggy-shadow-md);
}

.post-nav-item.next {
  text-align: right;
}

.post-nav-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--eggy-text-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.post-nav-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--eggy-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-nav-title a {
  color: var(--eggy-text);
}

.post-nav-title a:hover {
  color: var(--eggy-purple);
}

/* Related Posts */
.related-posts {
  margin-top: 60px;
}

.related-posts-title {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 30px;
  text-align: center;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ============================================================
   Archive Page
   ============================================================ */
.archive-header {
  padding: 140px 0 60px;
  background: var(--eggy-gradient-hero);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.archive-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--eggy-bg);
  clip-path: ellipse(60% 100% at 50% 100%);
}

.archive-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: #fff;
  margin-bottom: 12px;
}

.archive-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.archive-content {
  padding: 60px 0;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 50px;
}

.pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--eggy-card-bg);
  color: var(--eggy-text);
  font-weight: 700;
  border-radius: var(--eggy-radius-md);
  box-shadow: var(--eggy-shadow-sm);
  transition: var(--eggy-transition);
}

.pagination .page-numbers:hover {
  background: var(--eggy-gradient);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--eggy-shadow-purple);
}

.pagination .page-numbers.current {
  background: var(--eggy-gradient);
  color: #fff;
  box-shadow: var(--eggy-shadow-purple);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--eggy-dark-bg);
  color: rgba(255, 255, 255, 0.7);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(107, 76, 250, 0.15) 0%, transparent 70%);
  border-radius: var(--eggy-radius-full);
}

.site-footer::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 107, 157, 0.1) 0%, transparent 70%);
  border-radius: var(--eggy-radius-full);
}

.footer-wave {
  line-height: 0;
}

.footer-wave svg {
  width: 100%;
  height: auto;
}

.footer-main {
  padding: 80px 0 60px;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 60px;
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-brand .logo-icon {
  width: 48px;
  height: 48px;
  background: var(--eggy-gradient);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
}

.footer-brand .logo-text {
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
}

.footer-brand .footer-description {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--eggy-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  transition: var(--eggy-transition);
}

.footer-social a:hover {
  background: var(--eggy-gradient);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: var(--eggy-shadow-purple);
}

.footer-column .footer-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 14px;
}

.footer-column .footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 3px;
  background: var(--eggy-gradient);
  border-radius: 3px;
}

.footer-column ul li {
  margin-bottom: 12px;
}

.footer-column ul li a {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--eggy-transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-column ul li a::before {
  content: '›';
  color: var(--eggy-purple-light);
  font-weight: 700;
  opacity: 0;
  transform: translateX(-8px);
  transition: var(--eggy-transition);
}

.footer-column ul li a:hover {
  color: #fff;
  padding-left: 8px;
}

.footer-column ul li a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  position: relative;
  z-index: 1;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a:hover {
  color: var(--eggy-purple-light);
}

/* ============================================================
   Back to Top Button
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--eggy-gradient);
  color: #fff;
  border: none;
  border-radius: var(--eggy-radius-lg);
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--eggy-z-sticky);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--eggy-transition);
  box-shadow: var(--eggy-shadow-purple);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(107, 76, 250, 0.4);
}

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

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Scroll Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }
.animate-on-scroll.delay-5 { transition-delay: 0.5s; }

/* ============================================================
   Comments Section
   ============================================================ */
.comments-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.comments-title {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 30px;
}

.comment-list {
  list-style: none;
}

.comment {
  background: var(--eggy-card-bg);
  border-radius: var(--eggy-radius-xl);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--eggy-shadow-sm);
}

.comment-body {
  display: flex;
  gap: 16px;
}

.comment-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--eggy-radius-full);
  object-fit: cover;
  flex-shrink: 0;
}

.comment-content {
  flex: 1;
}

.comment-author {
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 4px;
}

.comment-date {
  font-size: 0.8rem;
  color: var(--eggy-text-light);
  margin-bottom: 12px;
}

.comment-text {
  font-size: 0.95rem;
  line-height: 1.7;
}

.comment-reply {
  margin-left: 40px;
}

/* Comment Form */
.comment-respond {
  background: var(--eggy-card-bg);
  border-radius: var(--eggy-radius-xl);
  padding: 32px;
  box-shadow: var(--eggy-shadow-sm);
}

.comment-form .form-group {
  margin-bottom: 20px;
}

.comment-form label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--eggy-text);
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid rgba(107, 76, 250, 0.12);
  border-radius: var(--eggy-radius-md);
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  color: var(--eggy-text);
  background: var(--eggy-bg);
  outline: none;
  transition: var(--eggy-transition);
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--eggy-purple);
  box-shadow: 0 0 0 4px rgba(107, 76, 250, 0.1);
}

.comment-form textarea {
  min-height: 140px;
  resize: vertical;
}

.comment-form .form-submit .btn {
  width: 100%;
}

/* ============================================================
   No Results
   ============================================================ */
.no-results {
  text-align: center;
  padding: 80px 24px;
}

.no-results-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.no-results h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.no-results p {
  color: var(--eggy-text-light);
}

/* ============================================================
   Responsive - Tablet (768px - 1199px)
   ============================================================ */
@media (max-width: 1199px) {
  .eggy-grid--4 {
    grid-template-columns: repeat(3, 1fr);
  }

  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .related-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-stats {
    gap: 24px;
  }
}

/* ============================================================
   Responsive - Small Tablet (768px - 991px)
   ============================================================ */
@media (max-width: 991px) {
  :root {
    --eggy-section-padding: 70px;
  }

  .eggy-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .post-card--featured {
    grid-column: span 2;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .main-navigation {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 100px 30px 30px;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
    transition: var(--eggy-transition);
    z-index: calc(var(--eggy-z-fixed) - 1);
    overflow-y: auto;
  }

  .main-navigation.active {
    right: 0;
  }

  .main-navigation ul {
    flex-direction: column;
    width: 100%;
    gap: 4px;
  }

  .main-navigation li {
    width: 100%;
  }

  .main-navigation a {
    color: var(--eggy-text) !important;
    padding: 14px 18px;
    border-radius: var(--eggy-radius-md);
  }

  .main-navigation a:hover,
  .main-navigation .current-menu-item a {
    background: var(--eggy-gradient-card) !important;
    color: var(--eggy-purple) !important;
  }

  .main-navigation .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: var(--eggy-bg);
    box-shadow: none;
    padding: 8px;
    margin-top: 4px;
    margin-left: 16px;
    border-radius: var(--eggy-radius-md);
    display: none;
  }

  .main-navigation li:hover > .sub-menu,
  .main-navigation .sub-menu.active {
    display: block;
  }

  .menu-toggle {
    display: flex;
  }

  .newsletter-box {
    padding: 40px 24px;
  }

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

/* ============================================================
   Responsive - Mobile (< 768px)
   ============================================================ */
@media (max-width: 767px) {
  :root {
    --eggy-section-padding: 60px;
  }

  body {
    font-size: 15px;
  }

  .eggy-container {
    padding: 0 16px;
  }

  /* Header */
  .header-inner {
    height: 64px;
  }

  .site-logo .logo-text {
    font-size: 1.2rem;
  }

  .site-logo .logo-icon {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }

  /* Hero */
  .hero-section {
    min-height: 100svh;
    padding-top: 80px;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
  }

  .hero-stat {
    flex: 1;
    min-width: 100px;
  }

  .hero-stat-number {
    font-size: 1.5rem;
  }

  /* Grids */
  .eggy-grid--2,
  .eggy-grid--3,
  .eggy-grid--4 {
    grid-template-columns: 1fr;
  }

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

  .post-card--featured {
    grid-column: span 1;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .category-card {
    padding: 24px 16px;
  }

  .category-card-icon {
    width: 50px;
    height: 50px;
    font-size: 22px;
  }

  /* Section */
  .section-header {
    margin-bottom: 40px;
  }

  .section-title {
    font-size: 1.5rem;
  }

  /* Post Card */
  .post-card-body {
    padding: 18px;
  }

  .post-card-title {
    font-size: 1.05rem;
  }

  /* Sidebar */
  .sidebar {
    position: static;
    margin-top: 40px;
  }

  /* Single Post */
  .single-post-header {
    padding: 100px 0 40px;
  }

  .single-post-content {
    padding: 40px 16px;
  }

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

  .post-navigation {
    grid-template-columns: 1fr;
  }

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

  /* Archive */
  .archive-header {
    padding: 100px 0 40px;
  }

  .archive-content {
    padding: 40px 0;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-main {
    padding: 50px 0 30px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  /* Comments */
  .comment-reply {
    margin-left: 16px;
  }

  /* Back to Top */
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }

  /* Pagination */
  .pagination .page-numbers {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
  }
}

/* ============================================================
   Responsive - Small Mobile (< 480px)
   ============================================================ */
@media (max-width: 479px) {
  .categories-grid {
    grid-template-columns: 1fr;
  }

  .hero-badge {
    font-size: 0.8rem;
    padding: 6px 14px;
  }

  .post-card-meta {
    flex-wrap: wrap;
    gap: 8px;
  }

  .newsletter-box {
    padding: 30px 16px;
    border-radius: var(--eggy-radius-lg);
  }
}

/* ============================================================
   WordPress Core Styles Compatibility
   ============================================================ */
.alignleft {
  float: left;
  margin: 0 24px 24px 0;
}

.alignright {
  float: right;
  margin: 0 0 24px 24px;
}

.aligncenter {
  display: block;
  margin: 24px auto;
}

.alignwide {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.alignfull {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 0.85rem;
  color: var(--eggy-text-light);
  text-align: center;
  margin-top: 8px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.gallery-item {
  overflow: hidden;
  border-radius: var(--eggy-radius-lg);
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: var(--eggy-transition);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Screen Reader Text */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--eggy-gradient);
  color: #fff;
  padding: 12px 24px;
  border-radius: 0 0 var(--eggy-radius-md) var(--eggy-radius-md);
  z-index: 10000;
  font-weight: 700;
  transition: var(--eggy-transition);
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

/* WordPress Block Editor Support */
.entry-content > * {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.entry-content > .alignwide,
.entry-content > .alignfull {
  max-width: 100%;
}

/* Mobile Navigation Overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: calc(var(--eggy-z-fixed) - 2);
  opacity: 0;
  visibility: hidden;
  transition: var(--eggy-transition);
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}
