:root {
  --bg-color: #050511; /* Espacio profundo */
  --text-color: #e0e6ed;
  --accent-primary: #ea580c; /* Naranja profundo */
  --accent-secondary: #fbbf24; /* Ámbar dorado para gradiente cálido */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glow-primary: rgba(234, 88, 12, 0.4);
  --glow-secondary: rgba(251, 191, 36, 0.4);
  --shadow-glow: 0 0 20px rgba(249, 115, 22, 0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', system-ui, sans-serif; }

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  overflow-x: hidden;
}

/* Fondo Animado */
#bg-animation {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: -1; /* Detrás de todo */
  background: radial-gradient(circle at center, #1a1a2e 0%, #000000 100%);
}

/* Utilidades */
.container {
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
  background: linear-gradient(to right, var(--accent-secondary), var(--accent-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  padding-bottom: 1rem;
  letter-spacing: -1px;
  font-weight: 800;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-secondary), var(--accent-primary), transparent);
  animation: expandLine 1s ease-out;
}

@keyframes expandLine {
  from {
    width: 0;
  }
  to {
    width: 80px;
  }
}

.subtitle {
  text-align: center;
  margin-bottom: 3rem;
  opacity: 0.7;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Estilo Cristal (Glassmorphism) */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.glass:hover::before {
  left: 100%;
}

/* Navbar */
.navbar {
  position: fixed; width: 100%; padding: 1.5rem 2rem;
  display: flex; justify-content: space-between; align-items: center;
  background: linear-gradient(180deg, rgba(5, 5, 17, 0.95) 0%, rgba(5, 5, 17, 0.85) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: linear-gradient(180deg, rgba(5, 5, 17, 0.98) 0%, rgba(5, 5, 17, 0.95) 100%);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px var(--glow-primary);
  transition: all 0.3s ease;
  position: relative;
}

.logo::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary));
  transition: width 0.3s ease;
}

.logo:hover::after {
  width: 100%;
}

.logo:hover {
  filter: drop-shadow(0 0 10px var(--glow-primary));
}

.blink { animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0; } }

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary));
  transition: width 0.3s ease;
}

.nav-links a:hover::before,
.nav-links a.active::before {
  width: 100%;
}

.nav-links a:hover {
  color: var(--accent-secondary);
  text-shadow: 0 0 10px var(--glow-secondary);
  transform: translateY(-2px);
}

.nav-links a.active {
  color: var(--accent-secondary);
}

.nav-links a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary));
  transition: width 0.3s ease;
}

.nav-links a:hover::before,
.nav-links a.active::before {
  width: 100%;
}

.nav-links a:hover {
  color: var(--accent-secondary);
  text-shadow: 0 0 10px var(--glow-secondary);
  transform: translateY(-2px);
}

.nav-links a.active {
  color: var(--accent-secondary);
}

.btn-donate {
  background: linear-gradient(45deg, #003087, #009cde);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 48, 135, 0.3);
}

.btn-donate:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 48, 135, 0.5);
}

.burger {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--text-color);
  transition: all 0.3s ease;
}

.burger:hover {
  color: var(--accent-secondary);
  transform: scale(1.1);
}

/* Hero */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(234, 88, 12, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(251, 191, 36, 0.1) 0%, transparent 50%);
  pointer-events: none;
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.hero-content {
  position: relative;
  z-index: 1;
  animation: fadeInUp 1s ease-out;
}

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

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(234, 88, 12, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(251, 191, 36, 0.1) 0%, transparent 50%);
  pointer-events: none;
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.hero-content {
  position: relative;
  z-index: 1;
  animation: fadeInUp 1s ease-out;
}

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

.badge-ai {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid var(--accent-secondary);
  color: var(--accent-secondary);
  border-radius: 50px;
  font-size: 0.8rem;
  margin-bottom: 1.5rem;
  letter-spacing: 2px;
  position: relative;
  overflow: hidden;
  background: rgba(251, 191, 36, 0.1);
  animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.6);
  }
}

.hero h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 800;
  letter-spacing: -2px;
}

.badge-ai {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid var(--accent-secondary);
  color: var(--accent-secondary);
  border-radius: 50px;
  font-size: 0.8rem;
  margin-bottom: 1.5rem;
  letter-spacing: 2px;
  position: relative;
  overflow: hidden;
  background: rgba(251, 191, 36, 0.1);
  animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.6);
  }
}

.hero h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 800;
  letter-spacing: -2px;
}

.text-gradient {
  background: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary), var(--accent-secondary));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease infinite;
  text-shadow: 0 0 40px var(--glow-primary);
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.hero p {
  font-size: 1.2rem;
  color: #94a3b8;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.text-gradient {
  background: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary), var(--accent-secondary));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease infinite;
  text-shadow: 0 0 40px var(--glow-primary);
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.hero p {
  font-size: 1.2rem;
  color: #94a3b8;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.btn-primary {
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--text-color), #cbd5e1);
  color: var(--bg-color);
  border-radius: 12px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--text-color), #cbd5e1);
  color: var(--bg-color);
  border-radius: 12px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}


.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
  padding: 1rem 2rem;
  border: 2px solid var(--glass-border);
  color: var(--text-color);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  padding: 1rem 2rem;
  border: 2px solid var(--glass-border);
  color: var(--text-color);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.btn-secondary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(251, 191, 36, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn-secondary:hover::before {
  width: 300px;
  height: 300px;
}

.btn-secondary:hover {
  border-color: var(--accent-secondary);
  color: var(--accent-secondary);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(251, 191, 36, 0.2);
}

.btn-secondary span {
  position: relative;
  z-index: 1;
}

.btn-secondary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(251, 191, 36, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn-secondary:hover::before {
  width: 300px;
  height: 300px;
}

.btn-secondary:hover {
  border-color: var(--accent-secondary);
  color: var(--accent-secondary);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(251, 191, 36, 0.2);
}

.btn-secondary span {
  position: relative;
  z-index: 1;
}

/* Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  position: relative;
  transform-style: preserve-3d;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-header {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.card-header i {
  transition: all 0.3s ease;
}

.card-header span {
  font-size: 1rem;
  color: #94a3b8;
  font-weight: normal;
  padding: 0.25rem 0.75rem;
  background: rgba(234, 88, 12, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(234, 88, 12, 0.2);
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  position: relative;
  transform-style: preserve-3d;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-header {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.card-header i {
  transition: all 0.3s ease;
}

.card-header span {
  font-size: 1rem;
  color: #94a3b8;
  font-weight: normal;
  padding: 0.25rem 0.75rem;
  background: rgba(234, 88, 12, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(234, 88, 12, 0.2);
}

/* Clickable cards */
.clickable-card {
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.clickable-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 16px;
  padding: 2px;
  background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.clickable-card:hover::after {
  opacity: 1;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.clickable-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 16px;
  padding: 2px;
  background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.clickable-card:hover::after {
  opacity: 1;
}

.clickable-card:hover {
  transform: translateY(-8px) rotateX(2deg);
  border-color: var(--accent-secondary);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(249, 115, 22, 0.2),
    inset 0 0 30px rgba(251, 191, 36, 0.1);
}

.clickable-card:hover .card-header i {
  transform: scale(1.2) rotate(5deg);
  filter: drop-shadow(0 0 10px var(--glow-primary));
}

.card-content h3 {
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  transition: color 0.3s ease;
}

.clickable-card:hover .card-content h3 {
  color: var(--accent-secondary);
}

.card-content p {
  color: #94a3b8;
  line-height: 1.6;
  margin: 0;
  transform: translateY(-8px) rotateX(2deg);
  border-color: var(--accent-secondary);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(249, 115, 22, 0.2),
    inset 0 0 30px rgba(251, 191, 36, 0.1);
}

.clickable-card:hover .card-header i {
  transform: scale(1.2) rotate(5deg);
  filter: drop-shadow(0 0 10px var(--glow-primary));
}

.card-content h3 {
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  transition: color 0.3s ease;
}

.clickable-card:hover .card-content h3 {
  color: var(--accent-secondary);
}

.card-content p {
  color: #94a3b8;
  line-height: 1.6;
  margin: 0;
}

/* Article View */
#article-view-container,
#section-view-container {
    max-width: 900px;
    margin: 0 auto;
}

.article-view {
    animation: fadeIn 0.5s ease-in;
    padding: 3rem 4rem;
    min-height: 60vh;
}

@media (max-width: 768px) {
    .article-view {
        padding: 2rem 1.5rem;
    }
    
    .article-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .article-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .article-content h1,
    .article-header h1 {
        font-size: 2rem !important;
    }
    
    .article-content h2 {
        font-size: 1.5rem;
    }
    
    .article-content h3 {
        font-size: 1.25rem;
    }
}

.btn-back {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    margin-bottom: 2.5rem;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.btn-back:hover {
    background: rgba(249, 115, 22, 0.1);
    border-color: var(--accent-primary);
    background: rgba(249, 115, 22, 0.1);
    border-color: var(--accent-primary);
    transform: translateX(-3px);
    color: var(--accent-primary);
    color: var(--accent-primary);
}

.section-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--glass-border);
}

.article-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--glass-border);
}

.article-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.article-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.article-header h1 {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(to right, var(--accent-secondary), var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    margin: 0;
    line-height: 1.2;
    flex: 1;
    min-width: 0;
}

.article-type-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: 8px;
    color: var(--accent-primary);
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
}

.article-type-badge i {
    font-size: 1.2rem;
    flex: 1;
    min-width: 0;
}

.article-type-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: 8px;
    color: var(--accent-primary);
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
}

.article-type-badge i {
    font-size: 1.2rem;
}

.article-content {
    line-height: 1.9;
    font-size: 1.1rem;
    color: #e2e8f0;
    text-align: left;
    text-align: left;
}

.article-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(to right, var(--accent-secondary), var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--glass-border);
}

.article-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-secondary);
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
    text-align: left;
    text-align: left;
}

.article-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.article-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #cbd5e1;
    font-size: 1.05rem;
}

.article-content ul, .article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2.5rem;
    color: #cbd5e1;
}

.article-content li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
    font-size: 1.05rem;
}

.article-content li::marker {
    color: var(--accent-primary);
}

.article-content code {
    background: rgba(0, 0, 0, 0.4);
    padding: 3px 8px;
    border-radius: 4px;
    color: #ff79c6;
    font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
    font-size: 0.9em;
    border: 1px solid rgba(255, 121, 198, 0.2);
}

.article-content pre {
    background: rgba(0, 0, 0, 0.5);
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 2rem 0;
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.article-content pre code {
    background: none;
    padding: 0;
    color: #f8f8f2;
    border: none;
    font-size: 0.95em;
    line-height: 1.6;
}

.article-content blockquote {
    border-left: 4px solid var(--accent-primary);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: rgba(249, 115, 22, 0.05);
    background: rgba(249, 115, 22, 0.05);
    border-radius: 0 8px 8px 0;
    color: #cbd5e1;
    font-style: italic;
    font-size: 1.05rem;
}

.article-content strong {
    color: var(--text-color);
    font-weight: 600;
}

.article-content em {
    color: #cbd5e1;
    font-style: italic;
}

.article-content hr {
    border: none;
    border-top: 2px solid var(--glass-border);
    margin: 3rem 0;
    opacity: 0.5;
}

.article-content a {
    color: var(--accent-secondary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: 0.3s;
}

.article-content a:hover {
    border-bottom-color: var(--accent-secondary);
    color: #ff8c42;
    color: #ff8c42;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

.article-content table th,
.article-content table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.article-content table th {
    background: rgba(249, 115, 22, 0.1);
    background: rgba(249, 115, 22, 0.1);
    color: var(--accent-primary);
    font-weight: 600;
}

.article-content table tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* Blog Viewer - Updated for cards */
#articles-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    max-width: 1200px;
    margin: 0 auto;
}

.article-item {
    margin-bottom: 0;
    animation: fadeInUp 0.6s ease-out both;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out both;
    opacity: 0;
}

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

.article-date-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(234, 88, 12, 0.15);
    border: 1px solid rgba(234, 88, 12, 0.3);
    border-radius: 12px;
    font-size: 0.85rem;
    color: var(--accent-primary);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.article-reading-time {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #94a3b8;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.article-reading-time i {
    color: var(--accent-secondary);
}
.article-item:nth-child(6) { animation-delay: 0.6s; }

.article-date-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(234, 88, 12, 0.15);
    border: 1px solid rgba(234, 88, 12, 0.3);
    border-radius: 12px;
    font-size: 0.85rem;
    color: var(--accent-primary);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.article-reading-time {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #94a3b8;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.article-reading-time i {
    color: var(--accent-secondary);
}

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

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

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

.blog-container h1 { 
    font-size: 2rem; 
    color: var(--accent-secondary); 
    margin-bottom: 1rem; 
    border-bottom: 2px solid var(--glass-border);
    padding-bottom: 0.5rem;
}

.blog-container h2 { 
    font-size: 1.5rem; 
    color: var(--accent-primary); 
    margin-top: 2rem;
    margin-bottom: 1rem; 
}

.blog-container h3 { 
    font-size: 1.25rem; 
    color: var(--text-color); 
    margin-top: 1.5rem;
    margin-bottom: 0.75rem; 
}

.blog-container p { 
    margin-bottom: 1rem; 
    line-height: 1.7; 
    color: #cbd5e1; 
}

.blog-container ul, .blog-container ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
    color: #cbd5e1;
}

.blog-container li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.blog-container code { 
    background: rgba(0, 0, 0, 0.3); 
    padding: 2px 6px; 
    border-radius: 4px; 
    color: #ff79c6;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.blog-container pre {
    background: rgba(0, 0, 0, 0.4);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1rem;
    border: 1px solid var(--glass-border);
}

.blog-container pre code {
    background: none;
    padding: 0;
    color: #f8f8f2;
}

.blog-container blockquote {
    border-left: 4px solid var(--accent-primary);
    padding-left: 1rem;
    margin: 1rem 0;
    color: #94a3b8;
    font-style: italic;
}

.blog-container strong {
    color: var(--text-color);
    font-weight: 600;
}

.blog-container em {
    color: #cbd5e1;
}

.blog-container hr {
    border: none;
    border-top: 1px solid var(--glass-border);
    margin: 2rem 0;
}

/* Donation Box */
.donation-box { text-align: center; max-width: 600px; margin: 0 auto; }
.btn-paypal {
  margin-top: 2rem; padding: 1rem 3rem; font-size: 1.2rem;
  background: #ffc439; color: #2c2e2f; border: none; border-radius: 50px;
  cursor: pointer; font-weight: bold; transition: 0.3s;
}
.btn-paypal:hover { background: #fff; }

/* Footer */
footer {
    text-align: center;
    padding: 4rem 2rem 2rem;
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
    border-top: 1px solid var(--glass-border);
    position: relative;
    background: linear-gradient(180deg, transparent 0%, rgba(5, 5, 17, 0.5) 100%);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-secondary), var(--accent-primary), transparent);
}

footer p {
    opacity: 0.7;
    position: relative;
    background: linear-gradient(180deg, transparent 0%, rgba(5, 5, 17, 0.5) 100%);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-secondary), var(--accent-primary), transparent);
}

footer p {
    opacity: 0.7;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-social a {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.footer-social a:hover {
    opacity: 1;
    color: var(--accent-secondary);
    transform: translateY(-3px) scale(1.2);
    filter: drop-shadow(0 0 10px var(--glow-secondary));
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: rgba(251, 191, 36, 0.2);
    border-color: var(--accent-secondary);
    color: var(--accent-secondary);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.3);
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-social a {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.footer-social a:hover {
    opacity: 1;
    color: var(--accent-secondary);
    transform: translateY(-3px) scale(1.2);
    filter: drop-shadow(0 0 10px var(--glow-secondary));
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: rgba(251, 191, 36, 0.2);
    border-color: var(--accent-secondary);
    color: var(--accent-secondary);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.3);
}

/* Comments Section */
#comments-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid var(--glass-border);
    min-height: 200px;
    width: 100%;
}

#comments-section .glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
}

/* Estilos para el widget de Giscus */
#comments-section .giscus,
#comments-section .giscus-frame {
    width: 100%;
    min-height: 200px;
}

/* AI Tech Curator - Integrado en Card */
.ai-curator-content {
  min-height: 200px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.typing-indicator {
  color: var(--accent-secondary);
  font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
  margin: 0;
  animation: pulse 2s ease-in-out infinite;
  animation: pulse 2s ease-in-out infinite;
}

.ai-news-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
}

.ai-news-item {
  padding: 1.5rem;
  padding: 1.5rem;
  background: rgba(249, 115, 22, 0.05);
  border-left: 3px solid var(--accent-secondary);
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.ai-news-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.1), transparent);
  transition: left 0.5s ease;
}

.ai-news-item:hover::before {
  left: 100%;
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.ai-news-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.1), transparent);
  transition: left 0.5s ease;
}

.ai-news-item:hover::before {
  left: 100%;
}

.ai-news-item:hover {
  background: rgba(249, 115, 22, 0.1);
  border-left-color: var(--accent-primary);
  transform: translateX(8px) scale(1.02);
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.2);
  transform: translateX(8px) scale(1.02);
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.2);
}

.ai-news-title {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: var(--text-color);
}

.ai-news-number {
  color: var(--accent-secondary);
  font-family: 'Courier New', monospace;
  font-weight: bold;
  margin-right: 0.5rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 6px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.ai-news-item:hover .ai-news-number {
  background: rgba(251, 191, 36, 0.25);
  border-color: var(--accent-secondary);
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 10px var(--glow-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 6px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.ai-news-item:hover .ai-news-number {
  background: rgba(251, 191, 36, 0.25);
  border-color: var(--accent-secondary);
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 10px var(--glow-secondary);
}

.ai-news-title-text {
  color: var(--text-color);
  flex: 1;
}

.ai-news-summary {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  border-left: 2px solid rgba(249, 115, 22, 0.2);
  border-left: 2px solid rgba(249, 115, 22, 0.2);
}

.ai-keypoints-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
}

.ai-keypoint-item {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0.6rem;
  padding-left: 1.2rem;
  position: relative;
  font-style: italic;
}

.ai-keypoint-item::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-secondary);
  font-weight: bold;
  font-size: 0.8rem;
}

.ai-keypoint-item:last-child {
  margin-bottom: 0;
}

.ai-keypoint-text {
  display: inline;
}

.ai-news-link-wrapper {
  opacity: 0;
  transition: opacity 0.3s ease;
  padding-left: 1.5rem;
  margin-top: 0.5rem;
  margin-top: 0.5rem;
}

.ai-news-link {
  color: var(--accent-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 8px;
}

.ai-news-link:hover {
  color: var(--accent-primary);
  transform: translateX(5px);
  background: rgba(251, 191, 36, 0.2);
  border-color: var(--accent-secondary);
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
  transform: translateX(5px);
  background: rgba(251, 191, 36, 0.2);
  border-color: var(--accent-secondary);
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
}

.ai-news-link::after {
  content: '↗';
  font-size: 0.8rem;
  opacity: 0.7;
  transition: transform 0.3s ease;
}

.ai-news-link:hover::after {
  transform: translate(3px, -3px);
  opacity: 1;
  transition: transform 0.3s ease;
}

.ai-news-link:hover::after {
  transform: translate(3px, -3px);
  opacity: 1;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .ai-curator-content {
    font-size: 0.85rem;
  }
  
  .ai-news-item {
    padding: 0.75rem;
  }
  
  .ai-news-summary {
    padding-left: 1rem;
    font-size: 0.85rem;
  }
  
  .ai-news-link-wrapper {
    padding-left: 1rem;
  }
}

/* Daily Poker Puzzle Styles */
.poker-puzzle-container {
  max-width: 900px;
  margin: 0 auto;
}

.poker-puzzle-card {
  padding: 2.5rem;
}

.poker-puzzle-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--glass-border);
}

.poker-puzzle-title {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.poker-puzzle-title h3 {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(to right, var(--accent-secondary), var(--accent-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
}

.poker-puzzle-date {
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 500;
}

.poker-puzzle-history {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(249, 115, 22, 0.05);
  background: rgba(249, 115, 22, 0.05);
  border-left: 3px solid var(--accent-secondary);
  border-radius: 8px;
}

.poker-puzzle-history h4 {
  color: var(--accent-secondary);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.poker-puzzle-history p {
  color: #cbd5e1;
  line-height: 1.7;
  margin: 0;
}

.poker-puzzle-table {
  margin-bottom: 2rem;
}

.poker-board,
.poker-hero {
  margin-bottom: 1.5rem;
}

.poker-board h4,
.poker-hero h4 {
  color: var(--accent-primary);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.poker-cards {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.poker-card {
  width: 60px;
  height: 84px;
  background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
  border: 2px solid #ddd;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 1.2rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  transform-style: preserve-3d;
  cursor: pointer;
}

.poker-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
  border-radius: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.poker-card:hover::before {
  opacity: 0.3;
  transform-style: preserve-3d;
  cursor: pointer;
}

.poker-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
  border-radius: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.poker-card:hover::before {
  opacity: 0.3;
}

.poker-card:hover {
  transform: translateY(-8px) rotateY(5deg) scale(1.1);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4), 0 0 20px rgba(251, 191, 36, 0.3);
}

.poker-card.red {
  color: #dc2626;
  border-color: #dc2626;
}

.poker-card.black {
  color: #1f2937;
  border-color: #1f2937;
}

.poker-card .card-rank {
  font-size: 1.4rem;
  line-height: 1;
}

.poker-card .card-suit {
  font-size: 1.6rem;
  line-height: 1;
  margin-top: 0.2rem;
}

.board-cards .poker-card {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.hero-cards .poker-card {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border-width: 3px;
}

.poker-puzzle-info {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(249, 115, 22, 0.05);
  background: rgba(249, 115, 22, 0.05);
  border-radius: 8px;
  flex-wrap: wrap;
}

.poker-info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #cbd5e1;
  font-size: 1rem;
}

.poker-info-item i {
  color: var(--accent-primary);
  font-size: 1.2rem;
}

.poker-info-item strong {
  color: var(--text-color);
  margin-right: 0.5rem;
}

.btn-show-solution {
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: var(--text-color);
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.btn-show-solution:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(249, 115, 22, 0.3);
  box-shadow: 0 8px 16px rgba(249, 115, 22, 0.3);
}

.btn-show-solution:active {
  transform: translateY(0);
}

.poker-solution {
  margin-top: 2rem;
  padding: 2rem;
  background: rgba(249, 115, 22, 0.1);
  background: rgba(249, 115, 22, 0.1);
  border-left: 4px solid var(--accent-secondary);
  border-radius: 8px;
  animation: fadeIn 0.5s ease-in;
}

.poker-solution h4 {
  color: var(--accent-secondary);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.poker-solution p {
  color: #cbd5e1;
  line-height: 1.8;
  font-size: 1.05rem;
  margin: 0;
}

.poker-puzzle-comments {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--glass-border);
  min-height: 200px;
  width: 100%;
}

.poker-puzzle-comments .giscus,
.poker-puzzle-comments .giscus-frame {
  width: 100%;
  min-height: 200px;
}

/* Reading Progress Indicator */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary));
    z-index: 1001;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px var(--glow-primary);
}

/* Table of Contents */
.toc-container {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding: 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    margin-bottom: 2rem;
}

.toc-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--accent-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 0.5rem;
}

.toc-list a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 0.5rem;
    border-radius: 6px;
    border-left: 2px solid transparent;
}

.toc-list a:hover,
.toc-list a.active {
    color: var(--accent-secondary);
    background: rgba(251, 191, 36, 0.1);
    border-left-color: var(--accent-secondary);
    padding-left: 1rem;
}

/* Skeleton Loaders */
.skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

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

.skeleton-card {
    padding: 2rem;
    border-radius: 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.skeleton-line {
    height: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.skeleton-line.short {
    width: 60%;
}

.skeleton-line.medium {
    width: 80%;
}

.skeleton-title {
    height: 2rem;
    width: 70%;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

/* Mobile */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.5rem; }
  .nav-links {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(5, 5, 17, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: slideDown 0.3s ease-out;
  }

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

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

  .burger {
    display: block;
  }
  
  .article-content {
      font-size: 1rem;
  }
  
  .article-content ul,
  .article-content ol {
      padding-left: 1.5rem;
  }
  
  #comments-section {
      margin-top: 3rem;
      padding-top: 2rem;
  }
  
  .poker-puzzle-card {
    padding: 1.5rem;
  }
  
  .poker-puzzle-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .poker-puzzle-title h3 {
    font-size: 1.4rem;
  }
  
  .poker-card {
    width: 50px;
    height: 70px;
    font-size: 1rem;
  }
  
  .poker-card .card-rank {
    font-size: 1.2rem;
  }
  
  .poker-card .card-suit {
    font-size: 1.4rem;
  }
  
  .poker-puzzle-info {
    flex-direction: column;
    gap: 1rem;
  }
  
  .toc-container {
    position: relative;
    max-height: none;
    margin-bottom: 2rem;
  }
  
  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 45px;
    height: 45px;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-buttons a {
    width: 100%;
    text-align: center;
  }
  
  .grid-3 {
    grid-template-columns: 1fr;
  }
  
  #articles-container {
    grid-template-columns: 1fr;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1rem;
    padding: 0 1rem;
  }
}