/* ============================================================
   resources-animations.css  |  Movina Values
   Link in resources.html <head> AFTER escripts.css
   ============================================================ */


/* ── 1. Scroll-reveal ── */
[data-reveal] {
  transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1),
              transform 0.65s cubic-bezier(0.22,1,0.36,1);
}
[data-reveal].reveal-ready         { opacity: 0; transform: translateY(32px); }
[data-reveal="left"].reveal-ready  { opacity: 0; transform: translateX(-40px); }
[data-reveal="right"].reveal-ready { opacity: 0; transform: translateX(40px); }
[data-reveal].is-visible           { opacity: 1 !important; transform: none !important; }
[data-delay="100"] { transition-delay: 0.10s; }
[data-delay="200"] { transition-delay: 0.20s; }
[data-delay="300"] { transition-delay: 0.30s; }
[data-delay="400"] { transition-delay: 0.40s; }


/* ── 2. Navbar scroll-shrink ── */
#navbar {
  transition: padding 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}
#navbar.scrolled {
  padding: 4px 0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.97);
}


/* ── 3. Hero ── */
.res-hero {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  padding: clamp(80px,12vw,140px) 20px clamp(60px,8vw,100px);
  text-align: center;
}
.res-hero-rings {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 0;
}
.rh-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(74,94,122,0.07);
  top: 50%; left: 50%;
  animation: rh-pulse 8s ease-in-out infinite;
}
.rh-ring:nth-child(1){width:340px;height:340px;transform:translate(-50%,-50%);animation-delay:0s}
.rh-ring:nth-child(2){width:600px;height:600px;transform:translate(-50%,-50%);animation-delay:2s}
.rh-ring:nth-child(3){width:860px;height:860px;transform:translate(-50%,-50%);animation-delay:4s}
@keyframes rh-pulse {
  0%,100%{opacity:0.4;transform:translate(-50%,-50%) scale(1)}
  50%    {opacity:1;  transform:translate(-50%,-50%) scale(1.04)}
}
.res-hero .container { position: relative; z-index: 1; }

.res-hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #4A5E7A;
  background: #eef3fb;
  border: 1px solid rgba(74,94,122,0.15);
  padding: 7px 16px; border-radius: 999px;
  margin-bottom: 22px;
  opacity: 0;
  animation: rs-up 0.7s 0.15s cubic-bezier(0.22,1,0.36,1) forwards;
}
.res-accent-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #FAC60A; flex-shrink: 0;
  animation: dot-pulse 2s ease-in-out infinite;
}
@keyframes dot-pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.6);opacity:.6}}

.res-hero-title {
  font-size: clamp(2.2rem,5vw,3.8rem);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -0.03em;
  color: #0f172a; margin-bottom: 18px;
  opacity: 0;
  animation: rs-up 0.7s 0.32s cubic-bezier(0.22,1,0.36,1) forwards;
}
.res-highlight {
  color: #4A5E7A; position: relative; display: inline-block;
}
.res-highlight::after {
  content: "";
  position: absolute; left: 0; bottom: -4px;
  width: 100%; height: 4px;
  background: #FAC60A; border-radius: 999px;
  transform: scaleX(0); transform-origin: left;
  animation: hl-sweep 0.9s 1.1s cubic-bezier(0.22,1,0.36,1) forwards;
}
@keyframes hl-sweep { to { transform: scaleX(1); } }

.res-hero-desc {
  font-size: clamp(1rem,2vw,1.15rem);
  color: #64748b; max-width: 580px;
  margin: 0 auto;
  line-height: 1.75;
  opacity: 0;
  animation: rs-up 0.7s 0.48s cubic-bezier(0.22,1,0.36,1) forwards;
}
@keyframes rs-up {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}


/* ── 4. Tab bar ── */
.res-tabs-section {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky; top: 60px; z-index: 90;
  padding: 0;
}
.res-tab-bar {
  display: flex; gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.res-tab-bar::-webkit-scrollbar { display: none; }

.res-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 18px 28px;
  font-size: 0.92rem; font-weight: 600;
  color: #64748b;
  background: transparent; border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: color 0.22s ease, border-color 0.22s ease, background 0.22s ease;
  position: relative;
}
.res-tab:hover { color: #1e293b; background: #f8fafc; }
.res-tab.active {
  color: #1e293b;
  border-bottom-color: #FAC60A;
  background: #fffbf0;
}
.res-tab-icon { font-size: 1rem; }


/* ── 5. Panels ── */
.res-panels-section {
  background: #f8fafc;
  padding: 60px 20px 100px;
  min-height: 60vh;
}
.res-panel { display: none; }
.res-panel.active { display: block; }

.res-panel-header {
  text-align: center;
  margin-bottom: 48px;
}
.res-panel-header h2 {
  font-size: clamp(1.6rem,3vw,2.2rem);
  font-weight: 800; color: #0f172a;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.res-panel-header p {
  color: #64748b; font-size: 1rem; max-width: 520px; margin: 0 auto;
}


/* ── 6. Resource cards ── */
.res-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
  gap: 24px;
}
.res-resource-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1),
              box-shadow 0.35s ease;
}
.res-resource-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(74,94,122,0.13);
}
.res-card-accent {
  height: 5px; width: 100%; flex-shrink: 0;
}
.res-card-body {
  padding: 28px 28px 24px;
  display: flex; flex-direction: column; flex: 1;
}
.res-card-cat {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #6D85A8; margin-bottom: 10px; display: block;
}
.res-resource-card h3 {
  font-size: 1.18rem; font-weight: 700;
  color: #0f172a; margin-bottom: 6px; line-height: 1.3;
}
.res-card-author {
  font-size: 0.83rem; color: #94a3b8;
  font-style: italic; margin-bottom: 12px;
}
.res-card-desc {
  font-size: 0.95rem; color: #475569;
  line-height: 1.7; margin-bottom: 20px; flex: 1;
}
.res-card-meta {
  list-style: none; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 20px;
}
.res-card-meta li {
  font-size: 0.78rem; font-weight: 600;
  color: #4A5E7A;
  background: #eef3fb;
  border: 1px solid rgba(74,94,122,0.15);
  padding: 4px 12px; border-radius: 999px;
}
.res-card-footer {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap; margin-top: auto;
}
.res-free-badge {
  font-size: 0.75rem; font-weight: 600;
  color: #0F6E56; background: #f0fdfa;
  border: 1px solid #9FE1CB;
  padding: 4px 12px; border-radius: 999px;
}

/* Primary button */
.res-btn-primary {
  display: inline-flex; align-items: center;
  padding: 11px 22px;
  border-radius: 999px;
  background: #1e293b; color: #ffffff;
  font-size: 0.88rem; font-weight: 700;
  text-decoration: none; border: none; cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
  position: relative; overflow: hidden;
}
.res-btn-primary:hover {
  background: #0f172a;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(30,41,59,0.22);
}
.res-btn-large { padding: 15px 32px; font-size: 1rem; }


/* ── 7. Podcast ── */
.res-podcast-platforms {
  display: flex; gap: 14px; justify-content: center;
  flex-wrap: wrap; margin-bottom: 40px;
}
.res-platform-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px; border-radius: 999px;
  font-weight: 700; font-size: 0.92rem;
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, opacity 0.22s ease;
  position: relative; overflow: hidden;
}
.res-platform-btn:hover { transform: translateY(-3px); opacity: 0.9; }
.res-platform-btn.spotify { background: #1DB954; color: #ffffff; }
.res-platform-btn.apple   { background: #000000; color: #ffffff; }

.res-episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px,1fr));
  gap: 16px;
}
.res-episode-card {
  border-radius: 14px; overflow: hidden;
  border: 1px solid #e2e8f0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.res-episode-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(74,94,122,0.1);
}
.res-episode-card iframe { display: block; border-radius: 0; }


/* ── 8. Club ── */
.res-club-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px; align-items: start;
}
.res-club-badge {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #FAC60A;
  background: rgba(250,198,10,0.12);
  border: 1px solid rgba(250,198,10,0.35);
  padding: 5px 14px; border-radius: 999px;
  margin-bottom: 16px;
}
.res-club-hero h3 {
  font-size: clamp(1.5rem,3vw,2rem);
  font-weight: 800; color: #0f172a;
  letter-spacing: -0.02em; margin-bottom: 14px;
}
.res-club-hero > p {
  color: #64748b; line-height: 1.75;
  font-size: 1rem; margin-bottom: 28px;
}
.res-club-perks {
  list-style: none; padding: 0;
  display: flex; flex-direction: column; gap: 12px;
  margin-bottom: 36px;
}
.res-club-perks li {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.95rem; color: #334155; font-weight: 500;
}
.res-perk-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #FAC60A; flex-shrink: 0;
}

.res-club-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.res-club-stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 28px 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.res-club-stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(74,94,122,0.12);
}
.res-stat-num {
  display: block;
  font-size: 2.4rem; font-weight: 800;
  color: #1e293b; line-height: 1;
  margin-bottom: 6px;
}
.res-stat-label {
  font-size: 0.82rem; color: #64748b; font-weight: 500;
}


/* ── 9. Footer ── */
.footer-column {
  opacity: 1; transform: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.footer-column.stagger-ready { opacity: 0; transform: translateY(20px); }
.footer-column.is-visible    { opacity: 1 !important; transform: none !important; }


/* ── 10. Ripple ── */
.ripple-btn { position: relative; overflow: hidden; }
.ripple {
  position: absolute; border-radius: 50%;
  transform: scale(0);
  animation: rs-ripple 0.55s linear;
  background: rgba(255,255,255,0.28);
  pointer-events: none;
}
@keyframes rs-ripple { to { transform: scale(4); opacity: 0; } }


/* ── 11. Responsive ── */
@media (max-width: 768px) {
  .res-club-grid { grid-template-columns: 1fr; }
  .res-club-cards { grid-template-columns: 1fr 1fr; }
  .res-tab { padding: 14px 18px; font-size: 0.85rem; }
}
@media (max-width: 480px) {
  .res-club-cards { grid-template-columns: 1fr; }
}


/* ── 12. Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal], [data-reveal].reveal-ready,
  .res-hero-tag, .res-hero-title, .res-hero-desc,
  .footer-column {
    opacity: 1 !important; transform: none !important;
  }
}
