/*--------------------------------------------------------------
# Prepflix UI/UX Enhancement Layer — April 2026
# Comprehensive visual upgrade: navigation, typography,
# cards, buttons, animations, and page-level polish.
--------------------------------------------------------------*/

/* ── CSS Variables: Elevation + Radius + Motion ── */
:root {
  --shadow-xs:  0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg:  0 10px 15px rgba(0,0,0,0.08), 0 4px 6px rgba(0,0,0,0.04);
  --shadow-xl:  0 20px 25px rgba(0,0,0,0.08), 0 10px 10px rgba(0,0,0,0.03);
  --shadow-glow: 0 0 0 3px rgba(13,131,253,0.15);
  --radius-xs:  4px;
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full: 9999px;
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast:   150ms;
  --duration-base:   250ms;
  --duration-slow:   400ms;
}

/* ── Header: Frosted Glass on Scroll ── */
.header {
  padding: 12px 0;
  transition: all 0.35s var(--ease-out, cubic-bezier(0.16,1,0.3,1));
}
.header .header-container {
  border-radius: 14px;
  padding: 8px 20px 8px 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: background 0.35s, box-shadow 0.35s, backdrop-filter 0.35s;
}
.scrolled .header {
  padding: 8px 0;
}
.scrolled .header .header-container {
  background: rgba(255,255,255,0.88) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.04);
}
.header .logo img {
  max-height: 32px;
}

/* ── Navigation Links: Animated Underline ── */
@media (min-width: 1200px) {
  .navmenu a,
  .navmenu a:focus {
    font-size: 0.875rem;
    font-weight: 500;
    padding: 12px 14px;
    letter-spacing: 0.01em;
    position: relative;
    color: #374151;
    transition: color 250ms ease;
  }
  .navmenu a::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 14px;
    right: 14px;
    height: 2px;
    border-radius: 9999px;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 250ms cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  .navmenu li:hover > a::after,
  .navmenu .active::after,
  .navmenu .active:focus::after {
    transform: scaleX(1);
  }
  .navmenu li:hover > a,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--accent-color);
  }
}

/* ── Header CTA Button ── */
.header .btn-getstarted,
.header .btn-getstarted:focus {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 9999px;
  letter-spacing: 0.02em;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: all 250ms cubic-bezier(0.16,1,0.3,1);
}
.header .btn-getstarted:hover,
.header .btn-getstarted:focus:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.07), 0 0 0 3px rgba(13,131,253,0.15);
}

/* ── Pulse Animation (was missing site-wide) ── */
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0   rgba(255, 193, 7, 0.55); }
  70%  { box-shadow: 0 0 0 14px rgba(255, 193, 7, 0);   }
  100% { box-shadow: 0 0 0 0   rgba(255, 193, 7, 0);    }
}
.pulse-button {
  animation: pulse-ring 2.2s cubic-bezier(0.66, 0, 0, 1) infinite;
  transition: transform 250ms ease, box-shadow 250ms ease !important;
}
.pulse-button:hover {
  animation: none;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(255,193,7,0.4) !important;
}

/* ── Global Buttons ── */
.btn {
  transition: all 250ms cubic-bezier(0.16,1,0.3,1);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13,131,253,0.35);
}
.btn-warning.text-dark { border: none; }

/* ── Section Titles ── */
.section-title {
  padding-bottom: 52px;
}
.section-title h2 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}
.section-title h2::after {
  display: block;
  content: '';
  width: 44px;
  height: 3px;
  border-radius: 9999px;
  background: var(--accent-color);
  margin: 12px auto 0;
  transition: width 400ms ease;
}
.section-title:hover h2::after {
  width: 72px;
}
.section-title p {
  font-size: 1rem;
  color: #6b7280;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ── Hero Enhancements ── */
.hero .company-badge {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border: 1.5px solid rgba(13,131,253,0.2);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  gap: 6px;
}
.hero .hero-content h1 {
  font-size: 3.2rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
@media (max-width: 992px) {
  .hero .hero-content h1 { font-size: 2.4rem; }
}
@media (max-width: 575px) {
  .hero .hero-content h1 { font-size: 2rem; }
}
.hero .customers-badge {
  box-shadow: 0 10px 15px rgba(0,0,0,0.08), 0 4px 6px rgba(0,0,0,0.04);
  border-radius: 16px;
}
.hero .stat-item {
  border-radius: 12px;
  transition: all 250ms cubic-bezier(0.16,1,0.3,1);
}
.hero .stat-item:hover {
  background-color: #f0f7ff;
  transform: translateY(-2px);
}
.hero .stat-item .stat-icon {
  border-radius: 12px;
  transition: all 250ms cubic-bezier(0.16,1,0.3,1);
}
.hero .stats-row {
  border-radius: 20px;
  box-shadow: 0 10px 15px rgba(0,0,0,0.08), 0 4px 6px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.04);
  overflow: hidden;
}

/* ── Trust Bar: Pill Badges ── */
.hero-trust-bar {
  margin-top: 20px !important;
}
.hero-trust-bar span {
  background: #f8fafc !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 9999px !important;
  padding: 5px 13px !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  color: #374151 !important;
  gap: 5px !important;
  transition: border-color 150ms, background 150ms;
}
.hero-trust-bar span:hover {
  border-color: var(--accent-color) !important;
  background: #eff6ff !important;
}

/* ── Blog Cards ── */
.blog-card {
  border-radius: 16px !important;
  background: #fff;
  border: 1px solid #f0f4f8 !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: transform 250ms cubic-bezier(0.16,1,0.3,1),
              box-shadow 250ms cubic-bezier(0.16,1,0.3,1),
              border-color 250ms ease !important;
  padding-bottom: 18px;
}
.blog-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 20px 25px rgba(0,0,0,0.08), 0 10px 10px rgba(0,0,0,0.03) !important;
  border-color: rgba(13,131,253,0.15) !important;
}
.card-img-wrapper {
  border-radius: 0 !important;
  margin-bottom: 0 !important;
  overflow: hidden;
}
.blog-card:hover .card-img {
  transform: scale(1.04) !important;
}
.blog-card .tag-group,
.blog-card .blog-title,
.blog-card .blog-meta {
  padding-left: 16px;
  padding-right: 16px;
}
.blog-card .tag-group {
  padding-top: 14px;
  margin-bottom: 8px !important;
}
.blog-title {
  font-size: 1.02rem !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  margin-bottom: 0 !important;
}
.blog-meta {
  padding-left: 16px !important;
  padding-right: 16px !important;
  border-top: 1px solid #f3f4f6 !important;
  padding-top: 12px !important;
  margin-top: 14px !important;
}
.blog-tag {
  border-radius: 4px !important;
  font-size: 0.66rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  padding: 3px 8px !important;
}

/* ── Category Filter: Pill Tabs ── */
.category-bar {
  scrollbar-width: none;
  -ms-overflow-style: none;
  gap: 8px !important;
}
.category-bar::-webkit-scrollbar {
  display: none;
}
.category-link {
  display: inline-flex !important;
  align-items: center;
  padding: 6px 14px !important;
  border-radius: 9999px !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  border: 1.5px solid #e5e7eb !important;
  transition: all 150ms ease !important;
  background: #fff;
  color: #4b5563 !important;
  text-decoration: none !important;
  white-space: nowrap;
}
.category-link:hover {
  background: #eff6ff !important;
  border-color: rgba(13,131,253,0.3) !important;
  color: var(--accent-color, #0d83fd) !important;
}
.category-link.active {
  background: var(--accent-color, #0d83fd) !important;
  color: #fff !important;
  border-color: var(--accent-color, #0d83fd) !important;
  box-shadow: 0 1px 3px rgba(13,131,253,0.3);
}
.category-divider {
  display: none !important;
}
.category-label {
  font-weight: 700 !important;
  color: #111827 !important;
  font-size: 0.82rem !important;
  flex-shrink: 0;
}

/* ── Footer ── */
.footer .footer-about .social-links a {
  transition: all 250ms cubic-bezier(0.16,1,0.3,1);
}
.footer .footer-about .social-links a:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.07);
}

/* ── Scroll-to-Top Button ── */
.scroll-top {
  border-radius: 12px !important;
  box-shadow: 0 4px 6px rgba(0,0,0,0.07) !important;
  transition: all 250ms cubic-bezier(0.16,1,0.3,1) !important;
}
.scroll-top:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 15px rgba(0,0,0,0.08) !important;
}

/* ── Reality Check: Path Card Micro-Interactions ── */
.path-item {
  transition: background 150ms ease;
  border-radius: 8px;
}
.path-item:hover {
  background: rgba(255,255,255,0.04);
}
.path-item-icon {
  transition: transform 250ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.path-item:hover .path-item-icon {
  transform: scale(1.18);
}

/* ── Sticky CTA Bar ── */
.desktop-sticky-cta {
  border-top: 1px solid #e5e7eb !important;
  backdrop-filter: blur(12px) !important;
  background: rgba(255,255,255,0.95) !important;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.07) !important;
}

/* ── Mobile Nav ── */
@media (max-width: 1199px) {
  .navmenu ul {
    border-radius: 12px !important;
    box-shadow: 0 20px 25px rgba(0,0,0,0.08), 0 10px 10px rgba(0,0,0,0.03) !important;
    border: 1px solid #f0f4f8 !important;
  }
  .navmenu a,
  .navmenu a:focus {
    font-size: 0.95rem !important;
    padding: 12px 20px !important;
    border-bottom: 1px solid #f9fafb;
  }
}

/* ── Blog Article: Typography ── */
.article-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #1f2937;
}
.article-body p { margin-bottom: 1.5rem; }
.article-body h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #111827;
  margin: 3rem 0 1.1rem;
  letter-spacing: -0.02em;
  padding-bottom: 10px;
  border-bottom: 2px solid #f3f4f6;
}
.article-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #111827;
  margin: 2rem 0 0.9rem;
  letter-spacing: -0.01em;
}
.article-body strong { color: #111827; }
.article-body a {
  color: var(--accent-color, #0d83fd);
  text-decoration: underline;
  text-decoration-color: rgba(13,131,253,0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 150ms;
}
.article-body a:hover {
  text-decoration-color: var(--accent-color, #0d83fd);
}

/* ── Code Blocks ── */
.article-body pre {
  background: #0f172a;
  border-radius: 12px;
  padding: 20px 24px;
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 0.84rem;
  color: #e2e8f0;
  overflow-x: auto;
  margin: 1.5rem 0;
  line-height: 1.75;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 10px 15px rgba(0,0,0,0.08), 0 4px 6px rgba(0,0,0,0.04);
}
.article-body code {
  background: #f0f4ff;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 0.86em;
  color: #d63384;
  border: 1px solid #e5e7eb;
}
.article-body pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
  border: none;
}

/* ── Info Boxes ── */
.box {
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 1.4rem;
  font-size: 0.97rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  transition: box-shadow 150ms;
}
.box:hover { box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04); }
.box-example   { background: #eff6ff; border-left: 3px solid #3b82f6; }
.box-example .box-label { color: #1d4ed8; }
.box-takeaway  { background: #f0fdf4; border-left: 3px solid #22c55e; }
.box-takeaway .box-label { color: #15803d; }
.box-warning   { background: #fffbeb; border-left: 3px solid #f59e0b; }
.box-warning .box-label { color: #b45309; }
.box-interview { background: #fff1f2; border-left: 3px solid #f43f5e; }
.box-interview .box-label { color: #be123c; }
.box-label {
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Table of Contents ── */
.toc {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 22px 26px;
  margin-bottom: 2rem;
}
.toc h4 {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 14px;
}
.toc-link {
  color: #374151;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 150ms;
  line-height: 1.5;
}
.toc-link:hover { color: var(--accent-color, #0d83fd); }
.toc-num {
  color: var(--accent-color, #0d83fd);
  font-weight: 800;
  font-size: 0.78rem;
  margin-right: 4px;
}

/* ── Article Tables ── */
.content-table thead th:first-child { border-radius: 8px 0 0 0; }
.content-table thead th:last-child  { border-radius: 0 8px 0 0; }
.content-table tbody tr:hover td { background: #f8faff; }
.content-table-wrap {
  border-radius: 12px;
  overflow: hidden;
  overflow-x: auto;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
}

/* ── Concept Dividers ── */
.concept-divider {
  background: linear-gradient(135deg, #0f172a 0%, #1a2e4a 100%);
  border-radius: 12px;
  padding: 18px 24px;
  margin: 2.5rem 0 1.5rem;
  border-left: 3px solid var(--accent-color, #0d83fd);
  box-shadow: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.04);
}
.concept-divider h2 {
  font-size: 0.72rem !important;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #64748b !important;
  margin: 0 0 3px !important;
  border: none !important;
  padding: 0 !important;
}
.concept-divider h3 {
  font-size: 1.15rem !important;
  font-weight: 800;
  color: #f1f5f9 !important;
  margin: 0 !important;
}

/* ── Breadcrumb ── */
.breadcrumb-item + .breadcrumb-item::before { color: #9ca3af; }
.breadcrumb-item a { color: #6b7280; transition: color 150ms; }
.breadcrumb-item a:hover { color: var(--accent-color); }
.breadcrumb-item.active { color: #374151; }

/* ── Sidebar Widget ── */
.sidebar-widget {
  border-radius: 20px !important;
  border: 1px solid #f0f4f8 !important;
  box-shadow: 0 4px 6px rgba(0,0,0,0.07) !important;
}

/* ── Reading Progress Bar ── */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-color, #0d83fd), #7c3aed);
  z-index: 99999;
  transition: width 0.1s linear;
  border-radius: 0 9999px 9999px 0;
  pointer-events: none;
}

/* ── Focus States: Accessibility ── */
*:focus-visible {
  outline: 2px solid var(--accent-color, #0d83fd);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── AOS: Better timing ── */
[data-aos] {
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1) !important;
}
