/* Design System & Core Styles for Ansly Career Hub */

:root {
  --primary: #00236f;
  --primary-container: #1e3a8a;
  --on-primary: #ffffff;
  --on-primary-container: #90a8ff;
  --primary-fixed: #dce1ff;
  --primary-fixed-dim: #b6c4ff;
  --on-primary-fixed-variant: #264191;

  --secondary: #006c4a;
  --secondary-container: #82f5c1;
  --on-secondary: #ffffff;
  --on-secondary-container: #00714e;
  --secondary-fixed: #85f8c4;
  --secondary-fixed-dim: #68dba9;

  --background: #f8f9ff;
  --surface: #f8f9ff;
  --surface-container-lowest: #ffffff;
  --surface-container-low: #eff4ff;
  --surface-container: #e5eeff;
  --surface-container-high: #dce9ff;
  --surface-container-highest: #d3e4fe;
  
  --on-surface: #0b1c30;
  --on-surface-variant: #444651;
  --outline: #757682;
  --outline-variant: #c5c5d3;

  --error: #ba1a1a;
  --error-container: #ffdad6;
  --on-error: #ffffff;
  --banner-amber: #f59e0b;
}

/* Base Body Structure & Global Overflow Containment */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Strict Zero-Leakage Hidden State & Root Modal Containment (preserves responsive Tailwind utilities like lg:flex, sm:flex) */
.hidden:not([class*=":flex"]):not([class*=":block"]):not([class*=":grid"]):not([class*=":inline"]):not([class*=":table"]),
[hidden] {
  display: none !important;
}

/* Guarantee All Root Modals and Overlays Remain Closed by Default */
.modal-backdrop:not(.active),
.modal-overlay:not(.active),
#jobApplyInterceptorModal.hidden,
#subscriptionSuccessModal.hidden,
#verificationCheckoutModalBackdrop.hidden,
#marketplaceCheckoutModalBackdrop.hidden,
#addReelModalBackdrop.hidden,
#addProductModalBackdrop.hidden,
#addAdModalBackdrop.hidden,
#renewAdModalBackdrop.hidden,
#addJobModalBackdrop.hidden,
#addBlogModalBackdrop.hidden,
#safeDeleteModalBackdrop.hidden,
#addCustomFieldModalBackdrop.hidden,
#sheetsDiagnosticModalBackdrop.hidden,
#editProductModalBackdrop.hidden,
#editJobModalBackdrop.hidden,
#editBlogModalBackdrop.hidden,
#atsLeadGateModal.hidden,
#builderPaidModal.hidden {
  display: none !important;
}


html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  background-color: var(--surface);
  color: var(--on-surface);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Flex-grow container for dynamic screens */
main#appRoot {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Material Symbols Outlined Configuration */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'liga';
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}

.material-symbols-outlined.fill {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.view-screen {
  display: none !important;
  width: 100%;
  min-height: 75vh;
}
.view-screen.active {
  display: block !important;
}
.view-screen.flex.active,
.view-screen.form-center-screen.active {
  display: flex !important;
}

/* Admin Panel Full-Screen Sticky Viewport Containment */
body.admin-mode-active {
  overflow: hidden !important;
  height: 100vh !important;
  max-height: 100vh !important;
}

body.admin-mode-active main#appRoot {
  height: 100vh !important;
  max-height: 100vh !important;
  overflow: hidden !important;
  flex: 1 1 100% !important;
}

body.admin-mode-active #admin-screen.active {
  display: flex !important;
  flex-direction: column !important;
  height: 100vh !important;
  max-height: 100vh !important;
  overflow: hidden !important;
  min-height: 100vh !important;
}



/* Micro-transitions for interactive controls */
button, a, input, select {
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* UGC Reel Cards Aspect Ratio */
.reel-card {
  aspect-ratio: 9 / 16;
  min-width: 220px;
  max-width: 240px;
}

@media (min-width: 640px) {
  .reel-card {
    min-width: 240px;
    max-width: 260px;
  }
}

/* UPI Selectors */
.upi-pill.active {
  border-color: var(--primary);
  background-color: #dce1ff;
}

/* Marketplace Product Cards */
.marketplace-card {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.marketplace-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px -6px rgba(0, 35, 111, 0.12), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Sponsored Institute Card Highlight */
.sponsored-card {
  border: 2px solid #059669 !important;
  background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%) !important;
  box-shadow: 0 4px 20px -2px rgba(5, 150, 105, 0.12);
}

/* Admin Tabs Active Styling */
.admin-tab-btn.active {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

/* Modal Animations */
@keyframes modalSlideUp {
  from {
    transform: translateY(24px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.animate-modal {
  animation: modalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Pulsing Play Button Animation */
@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 106, 96, 0.6);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(0, 106, 96, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 106, 96, 0);
  }
}

.pulse-play-btn {
  animation: pulseGlow 2s infinite;
}

/* In-Place Video Player Container */
.reel-video-wrapper iframe,
.reel-video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Blog Prose Typography Styles */
.blog-article-content {
  color: #1e293b;
  font-size: 1.0625rem;
  line-height: 1.8;
}

.blog-article-content h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  color: #0b1c30;
  margin-top: 2rem;
  margin-bottom: 0.85rem;
  line-height: 1.3;
}

.blog-article-content h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #00236f;
  margin-top: 1.75rem;
  margin-bottom: 0.65rem;
  line-height: 1.35;
}

.blog-article-content p {
  margin-bottom: 1.25rem;
}

.blog-article-content ul, 
.blog-article-content ol {
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.blog-article-content ul {
  list-style-type: disc;
}

.blog-article-content ol {
  list-style-type: decimal;
}

.blog-article-content li {
  margin-bottom: 0.5rem;
}

.blog-article-content blockquote {
  border-left: 4px solid #059669;
  background-color: #f0fdf4;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 1rem 1rem 0;
  font-style: italic;
  color: #065f46;
  font-weight: 500;
}

.blog-article-content code {
  background-color: #eff4ff;
  color: #00236f;
  padding: 0.15rem 0.4rem;
  border-radius: 0.375rem;
  font-size: 0.9em;
  font-family: monospace;
}

.blog-article-content hr {
  border: 0;
  border-top: 1px solid #e2e8f0;
  margin: 2rem 0;
}

.blog-article-content strong {
  color: #0b1c30;
  font-weight: 700;
}

/* In-Article Blog Sponsor Ad Banner */
.blog-inline-ad-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-inline-ad-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 108, 74, 0.12), 0 8px 10px -6px rgba(0, 108, 74, 0.08);
}

/* -------------------------------------------------------------------------- */
/* DYNAMIC SOCIAL PROOF & ACTIVITY TICKERS ANIMATIONS                        */
/* -------------------------------------------------------------------------- */

@keyframes toastSlideInBottom {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toastSlideOutBottom {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(24px) scale(0.95);
  }
}

@keyframes toastSlideInTop {
  0% {
    opacity: 0;
    transform: translateY(-24px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toastSlideOutTop {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-24px) scale(0.95);
  }
}

.toast-animate-in-bottom {
  animation: toastSlideInBottom 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-animate-out-bottom {
  animation: toastSlideOutBottom 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-animate-in-top {
  animation: toastSlideInTop 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-animate-out-top {
  animation: toastSlideOutTop 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ==========================================================================
   Job Board Animated Sliding Ticker (Marquee)
   ========================================================================== */
@keyframes tickerSliding {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.job-ticker-marquee {
  display: flex;
  width: max-content;
  animation: tickerSliding 35s linear infinite;
}

.job-ticker-marquee:hover {
  animation-play-state: paused;
}

.job-ticker-container {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
}

.pricing-ticker-container {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 3%, black 97%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 3%, black 97%, transparent);
}

@keyframes marquee-pricing {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.pricing-marquee {
  display: flex;
  width: max-content;
  animation: marquee-pricing 30s linear infinite;
}

.pricing-marquee:hover {
  animation-play-state: paused;
}

/* ==========================================================================
   Resume Watermark Overlay for Live Preview
   ========================================================================== */
.resume-watermark-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 15;
  user-select: none;
}

.resume-watermark-pattern {
  position: absolute;
  width: 240%;
  height: 240%;
  top: -70%;
  left: -70%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 20px;
  transform: rotate(-32deg);
  opacity: 0.13;
  font-weight: 900;
  font-size: 13px;
  color: #0b1c30;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ==========================================================================
   Ultra-Premium Dark Luxury Aesthetic Tokens & Utilities
   ========================================================================== */
:root {
  --dark-obsidian: #070B12;
  --dark-surface: #0B0F19;
  --dark-surface-elevated: #111827;
  --luxury-border: #1E293B;
  --luxury-border-glow: rgba(16, 185, 129, 0.25);
  --luxury-emerald: #10B981;
  --luxury-gold: #D97706;
  --luxury-gold-light: #F59E0B;
}

.bg-dark-obsidian {
  background-color: #070B12 !important;
}

.bg-dark-surface {
  background-color: #0B0F19 !important;
}

.border-luxury {
  border-color: #1E293B !important;
}

/* Glassmorphism Luxury Card */
.luxury-glass-card {
  background: rgba(11, 15, 25, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(30, 41, 59, 0.8);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.luxury-glass-card:hover {
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 12px 35px -10px rgba(16, 185, 129, 0.15);
}

/* Luxury Badges */
.badge-luxury-emerald {
  background: rgba(16, 185, 129, 0.12);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-luxury-gold {
  background: rgba(217, 119, 6, 0.15);
  color: #FBBF24;
  border: 1px solid rgba(217, 119, 6, 0.35);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Industry Dual Architecture Toggle */
.industry-toggle-group {
  display: inline-flex;
  background: #0B0F19;
  padding: 4px;
  border-radius: 9999px;
  border: 1px solid #1E293B;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.industry-toggle-btn {
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  color: #94A3B8;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.industry-toggle-btn:hover {
  color: #FFFFFF;
}

.industry-toggle-btn.active {
  background: #00236f;
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 35, 111, 0.4);
}

.industry-toggle-btn.active.toggle-non-it {
  background: #006c4a;
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 108, 74, 0.4);
}

.industry-toggle-btn.active.toggle-it {
  background: #2563EB;
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

/* ==========================================================================
   Executive Dark & Glassmorphism Theme (Ansly Membership & Dashboard)
   ========================================================================== */
.executive-dark-bg {
  background: radial-gradient(circle at top right, #0d1a33 0%, #060b17 50%, #030712 100%);
  color: #f8fafc;
}

.executive-glass-card {
  background: rgba(13, 21, 39, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: all 0.25s ease-in-out;
}

.executive-glass-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.executive-glass-panel {
  background: rgba(17, 24, 43, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.glow-emerald {
  box-shadow: 0 0 30px rgba(5, 150, 105, 0.2);
}

.glow-indigo {
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.2);
}

.glow-amber {
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.2);
}

.progress-bar-fill {
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.vip-gradient-border {
  border: 1px solid transparent;
  background-image: linear-gradient(rgba(13, 21, 39, 0.9), rgba(13, 21, 39, 0.9)), linear-gradient(135deg, #10b981, #06b6d4, #6366f1);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.starter-gradient-border {
  border: 1px solid transparent;
  background-image: linear-gradient(rgba(13, 21, 39, 0.9), rgba(13, 21, 39, 0.9)), linear-gradient(135deg, #3b82f6, #6366f1, #8b5cf6);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

