/* ===== BLOG PAGE — Rich Animated Styles ===== */

.blog-page h1,
.blog-page h2,
.blog-page h3 {
  color: var(--text-hi);
}
.blog-page p {
  color: var(--text-mid);
}

/* ---- Blog Card ---- */
.blog-list-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  background: linear-gradient(135deg, rgba(17,24,52,0.96) 0%, rgba(10,15,46,0.98) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  text-decoration: none;
  overflow: hidden;
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

/* Ambient glow behind the card */
.blog-list-item::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 17px;
  background: linear-gradient(120deg, #7c5cff33, #0ea5e922, #a855f733);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
  pointer-events: none;
}

/* Shimmer sweep across card on hover */
.blog-list-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255,255,255,0) 30%,
    rgba(255,255,255,0.06) 50%,
    rgba(255,255,255,0) 70%,
    transparent 100%
  );
  transform: skewX(-15deg);
  transition: left 0s;
  pointer-events: none;
  z-index: 1;
}

.blog-list-item:hover::before {
  opacity: 1;
}

.blog-list-item:hover::after {
  left: 130%;
  transition: left 0.7s ease;
}

.blog-list-item:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(124, 92, 255, 0.45);
  box-shadow:
    0 12px 40px rgba(99, 102, 241, 0.3),
    0 4px 16px rgba(124, 92, 255, 0.2),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

/* Left side: tag + title */
.blog-list-left {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.blog-list-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #a78bfa;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

.blog-list-title {
  font-size: 18px;
  font-weight: 700;
  color: #f0edff;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  line-height: 1.3;
  transition: color 0.25s ease;
}

.blog-list-item:hover .blog-list-title {
  color: #ffffff;
}

/* ---- Animated "Read Blog" Button ---- */
.blog-read-btn {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 22px;
  border-radius: 8px;
  background: linear-gradient(115deg, #7c5cff 0%, #6366f1 50%, #3a7bff 100%);
  background-size: 200% 200%;
  animation: blog-btn-gradient 4s ease infinite;
  box-shadow:
    0 4px 18px rgba(99, 102, 241, 0.45),
    inset 0 1px 0 rgba(255,255,255,0.2);
  white-space: nowrap;
  overflow: hidden;
  transition:
    transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease;
  flex-shrink: 0;
}

@keyframes blog-btn-gradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Shimmer on the button */
.blog-read-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 45%;
  height: 100%;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255,255,255,0.5) 50%,
    transparent 100%
  );
  transform: skewX(-18deg);
  animation: blog-btn-shimmer 3s ease-in-out infinite;
  animation-delay: 1.2s;
  pointer-events: none;
}

@keyframes blog-btn-shimmer {
  0%   { left: -75%; }
  22%  { left: 130%; }
  100% { left: 130%; }
}

.blog-read-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  position: relative;
  z-index: 1;
}

/* Animated arrow bounce */
.blog-read-arrow {
  font-size: 16px;
  color: #ffffff;
  display: inline-block;
  animation: blog-arrow-bounce 1.8s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

@keyframes blog-arrow-bounce {
  0%, 100% { transform: translateX(0); opacity: 0.85; }
  50%       { transform: translateX(5px); opacity: 1; }
}

/* Hover: button lifts + stronger glow */
.blog-list-item:hover .blog-read-btn {
  transform: scale(1.06) translateY(-1px);
  box-shadow:
    0 10px 32px rgba(99, 102, 241, 0.65),
    0 4px 12px rgba(124, 92, 255, 0.4),
    inset 0 1px 0 rgba(255,255,255,0.3);
}

/* Arrow speeds up on hover */
.blog-list-item:hover .blog-read-arrow {
  animation: blog-arrow-bounce-fast 0.7s ease-in-out infinite;
}

@keyframes blog-arrow-bounce-fast {
  0%, 100% { transform: translateX(0); }
  50%       { transform: translateX(7px); }
}

/* ---- Embed iframe ---- */
.blog-embed-full {
  width: 100%;
  background: var(--bg-panel-2);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: stretch;
  justify-content: center;
}
.blog-embed-full iframe {
  width: 100%;
  max-width: 1600px;
  height: 100vh;
  min-height: 600px;
  border: none;
  display: block;
}

@media (max-width: 860px) {
  .blog-embed-full iframe {
    height: 80vh;
    min-height: 420px;
  }
  .blog-list-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 22px 24px;
  }
  .blog-read-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-read-btn,
  .blog-read-btn::before,
  .blog-read-arrow {
    animation: none !important;
  }
  .blog-list-item {
    transition: none;
  }
}
