/* ============================================
   FLY LUX - COMPLETE THEME BRANDING
   Premium Travel Course - Kajabi Taylor Theme
   ============================================ */

/* ----- CSS Variables ----- */
:root {
  --fly-gold: #c4a052;
  --fly-gold-light: #d4b76a;
  --fly-gold-dark: #a68a3a;
  --fly-charcoal: #1c1c1c;
  --fly-charcoal-light: #2a2a2a;
  --fly-cream: #faf8f5;
  --fly-cream-dark: #f0ebe3;
  --fly-text-dark: #1a1a1a;
  --fly-text-muted: #6b6b6b;
  --fly-text-light: #999;
  --fly-success: #2d6a4f;
  --fly-error: #c1292e;
  --fly-white: #ffffff;
}

/* ============================================
   LOGIN PAGE STYLES
   ============================================ */

/* Login page full background */
body .section.background-ede6e1,
body .section[class*="background-"] {
  background: linear-gradient(135deg, var(--fly-charcoal) 0%, var(--fly-charcoal-light) 100%) !important;
}

/* Full height login section */
.section .sizer.sizer--full {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* Login content container */
.auth__content {
  background: white;
  padding: 48px 40px;
  border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  max-width: 420px;
  margin: 0 auto;
}

/* Login logo/image */
.auth__image {
  margin-bottom: 32px;
}

.auth__image .image {
  max-width: 180px !important;
  margin: 0 auto;
  display: block;
}

/* Login title */
h1.auth__title,
.auth__title {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-weight: 500 !important;
  font-size: 2rem !important;
  color: var(--fly-charcoal) !important;
  text-align: center !important;
  margin-bottom: 32px !important;
  letter-spacing: -0.02em !important;
  text-transform: none !important;
}

/* Form labels */
.auth__label,
.auth__content label {
  font-family: 'Source Sans 3', -apple-system, sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: var(--fly-text-muted) !important;
  margin-bottom: 8px !important;
}

/* Form inputs */
.auth__field,
.auth__content .form-control {
  font-family: 'Source Sans 3', -apple-system, sans-serif !important;
  font-size: 16px !important;
  padding: 16px 18px !important;
  border: 1px solid var(--fly-cream-dark) !important;
  border-radius: 2px !important;
  background: white !important;
  color: var(--fly-text-dark) !important;
  width: 100% !important;
  transition: all 0.3s ease !important;
  border-left-width: 1px !important;
  border-top-width: 1px !important;
  border-right-width: 1px !important;
}

.auth__field:focus,
.auth__content .form-control:focus {
  border-color: var(--fly-gold) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(196, 160, 82, 0.15) !important;
  background: white !important;
}

/* Form groups spacing */
.auth__content .form-group {
  margin-bottom: 20px;
}

/* Remember me checkbox - proper alignment */
.auth__content input[type="checkbox"] {
  accent-color: var(--fly-gold);
  width: 18px;
  height: 18px;
  margin: 0;
  margin-right: 10px;
  flex-shrink: 0;
  vertical-align: middle;
}

.auth__content label[kjb-settings-id*="remember_me"] {
  display: flex !important;
  align-items: center !important;
  font-size: 14px !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  cursor: pointer;
}

.auth__content label[kjb-settings-id*="remember_me"] .auth__label {
  font-size: 14px !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  margin-bottom: 0 !important;
  line-height: 1 !important;
}

/* Login button */
.auth__content .form-btn,
.auth__content button[type="submit"] {
  font-family: 'Source Sans 3', -apple-system, sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  padding: 18px 32px !important;
  background: var(--fly-gold) !important;
  color: white !important;
  border: none !important;
  border-radius: 2px !important;
  cursor: pointer !important;
  width: 100% !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 20px rgba(196, 160, 82, 0.35) !important;
  margin-top: 8px !important;
  animation: goldenPulse 3s ease-in-out infinite;
}

.auth__content .form-btn:hover,
.auth__content button[type="submit"]:hover {
  background: var(--fly-gold-light) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 30px rgba(196, 160, 82, 0.45) !important;
}

@keyframes goldenPulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(196, 160, 82, 0.35);
  }
  50% {
    box-shadow: 0 4px 30px rgba(196, 160, 82, 0.55), 0 0 40px rgba(196, 160, 82, 0.2);
  }
}

/* Social login divider */
.auth__content .divider {
  position: relative;
  text-align: center;
  margin: 24px 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fly-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.auth__content .divider::before,
.auth__content .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--fly-cream-dark);
}

.auth__content .divider::before {
  margin-right: 16px;
}

.auth__content .divider::after {
  margin-left: 16px;
}

/* Ensure the divider text span is centered */
.auth__content .divider span,
.auth__content .divider [kjb-element] {
  flex-shrink: 0;
}

/* Google sign-in button styling */
.gsi-material-button {
  margin-top: 12px;
  border-radius: 2px !important;
}

/* Forgot password link */
.auth__link,
.auth__link a {
  font-family: 'Source Sans 3', -apple-system, sans-serif !important;
  font-size: 14px !important;
  color: var(--fly-gold) !important;
  text-decoration: none !important;
  text-align: center !important;
  display: block !important;
  margin-top: 24px !important;
  transition: color 0.2s ease !important;
}

.auth__link a:hover {
  color: var(--fly-gold-light) !important;
  text-decoration: underline !important;
}

/* Signup link section */
.auth__signup {
  text-align: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--fly-cream-dark);
  font-family: 'Source Sans 3', -apple-system, sans-serif;
  font-size: 14px;
  color: var(--fly-text-muted);
}

.auth__signup a {
  color: var(--fly-gold) !important;
  font-weight: 600;
  text-decoration: none;
  margin-left: 4px;
  transition: color 0.2s ease;
}

.auth__signup a:hover {
  color: var(--fly-gold-light) !important;
  text-decoration: underline;
}

/* Error/alert messages */
.auth__message,
.auth__content .alert {
  border-radius: 2px !important;
  margin-bottom: 20px !important;
  font-size: 14px !important;
  padding: 12px 16px !important;
}

.auth__content .alert--danger {
  background: rgba(193, 41, 46, 0.1) !important;
  border-color: var(--fly-error) !important;
  color: var(--fly-error) !important;
  border-left: 3px solid var(--fly-error) !important;
}

/* ============================================
   FORGOT PASSWORD PAGE STYLES
   ============================================ */

/* Apply same dark background to password pages */
body[class*="forgot"] .section,
.forgot-password .section {
  background: linear-gradient(135deg, var(--fly-charcoal) 0%, var(--fly-charcoal-light) 100%) !important;
}

/* ============================================
   LIBRARY PAGE STYLES
   ============================================ */

/* Library page background */
.products {
  background: var(--fly-cream) !important;
}

/* Library header section */
.products__header {
  margin-bottom: 40px !important;
  padding-bottom: 24px !important;
  border-bottom: 1px solid var(--fly-cream-dark) !important;
}

.products__title {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-weight: 500 !important;
  font-size: 36px !important;
  color: var(--fly-charcoal) !important;
  letter-spacing: -0.02em !important;
  margin: 0 !important;
}

/* Resume course widget styling */
.resume-course {
  background: var(--fly-white) !important;
  border-radius: 8px !important;
  padding: 24px !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
  border-left: 4px solid var(--fly-gold) !important;
  margin-bottom: 32px !important;
  transition: all 0.3s ease !important;
}

.resume-course:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12) !important;
  transform: translateY(-2px) !important;
}

.resume-course__title {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-weight: 500 !important;
  color: var(--fly-charcoal) !important;
  font-size: 18px !important;
  margin-bottom: 8px !important;
}

.resume-course__status {
  color: var(--fly-text-muted) !important;
  font-size: 14px !important;
}

/* Product cards - Library items */
.product {
  background: var(--fly-white) !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
  transition: all 0.3s ease !important;
  overflow: hidden !important;
  border: none !important;
  animation: fadeInUp 0.5s ease-out !important;
}

.product:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15) !important;
  transform: translateY(-6px) !important;
}

/* Product image */
.product__image {
  position: relative !important;
  overflow: hidden !important;
}

.product__image img {
  width: 100% !important;
  height: auto !important;
  transition: transform 0.5s ease !important;
}

.product:hover .product__image img {
  transform: scale(1.05) !important;
}

/* Gold overlay on hover */
.product__image::after {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: linear-gradient(135deg, rgba(196, 160, 82, 0.1) 0%, rgba(196, 160, 82, 0.2) 100%) !important;
  opacity: 0 !important;
  transition: opacity 0.3s ease !important;
}

.product:hover .product__image::after {
  opacity: 1 !important;
}

/* Product content */
.product__content {
  padding: 24px !important;
}

.product__info {
  margin-bottom: 20px !important;
}

/* Product title */
.product__title {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-weight: 500 !important;
  font-size: 20px !important;
  color: var(--fly-charcoal) !important;
  margin: 0 0 12px 0 !important;
  letter-spacing: -0.01em !important;
  line-height: 1.3 !important;
  transition: color 0.2s ease !important;
}

.product__title:hover {
  color: var(--fly-gold) !important;
}

/* Product description */
.product__body {
  font-family: 'Source Sans Pro', -apple-system, sans-serif !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  color: var(--fly-text-muted) !important;
  margin: 0 !important;
}

/* Progress bar styling */
.progress {
  height: 8px !important;
  background: var(--fly-cream) !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  margin: 16px 0 !important;
}

.progress__inner {
  height: 100% !important;
  background: linear-gradient(90deg, var(--fly-gold), var(--fly-gold-light)) !important;
  border-radius: 20px !important;
  transition: width 0.5s ease !important;
}

/* Progress text */
.progress__text {
  font-size: 13px !important;
  color: var(--fly-gold) !important;
  font-weight: 600 !important;
  margin-top: 8px !important;
}

/* Product button */
.product__button {
  margin-top: auto !important;
}

.product__button .btn,
.products .btn {
  font-family: 'Source Sans Pro', -apple-system, sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  padding: 14px 28px !important;
  background: var(--fly-gold) !important;
  color: var(--fly-white) !important;
  border: none !important;
  border-radius: 2px !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(196, 160, 82, 0.25) !important;
}

.product__button .btn:hover,
.products .btn:hover {
  background: var(--fly-gold-light) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(196, 160, 82, 0.35) !important;
  color: var(--fly-white) !important;
}

/* Outline button variant */
.product__button .btn--outline,
.products .btn--outline {
  background: transparent !important;
  color: var(--fly-gold) !important;
  border: 2px solid var(--fly-gold) !important;
  box-shadow: none !important;
}

.product__button .btn--outline:hover,
.products .btn--outline:hover {
  background: var(--fly-gold) !important;
  color: var(--fly-white) !important;
}

/* Full width button */
.product__button .btn--full {
  width: 100% !important;
  display: block !important;
  text-align: center !important;
}

/* ============================================
   LIBRARY PAGE - GRID LAYOUT
   ============================================ */

.products__list {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 24px !important;
}

.products__col {
  margin-bottom: 0 !important;
}

/* Ensure equal height cards */
.products__col .product {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}

.products__col .product__content {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
}

.products__col .product__info {
  flex: 1 !important;
}

/* ============================================
   PAGINATION STYLING
   ============================================ */

.pag {
  margin-top: 48px !important;
  text-align: center !important;
}

.pag__link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  margin: 0 4px !important;
  border-radius: 4px !important;
  font-weight: 600 !important;
  color: var(--fly-text-muted) !important;
  transition: all 0.2s ease !important;
}

.pag__link:hover {
  background: var(--fly-cream-dark) !important;
  color: var(--fly-charcoal) !important;
}

.pag__link--current {
  background: var(--fly-gold) !important;
  color: var(--fly-white) !important;
}

.pag__link--disabled {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

/* Staggered animation for product cards */
.products__col:nth-child(1) .product { animation-delay: 0.1s; }
.products__col:nth-child(2) .product { animation-delay: 0.2s; }
.products__col:nth-child(3) .product { animation-delay: 0.3s; }
.products__col:nth-child(4) .product { animation-delay: 0.4s; }
.products__col:nth-child(5) .product { animation-delay: 0.5s; }
.products__col:nth-child(6) .product { animation-delay: 0.6s; }

/* ============================================
   MOBILE RESPONSIVE - LOGIN
   ============================================ */

@media (max-width: 768px) {
  .auth__content {
    padding: 32px 24px;
    margin: 20px;
    max-width: 100%;
  }

  h1.auth__title,
  .auth__title {
    font-size: 1.5rem !important;
  }

  .auth__field,
  .auth__content .form-control {
    padding: 14px 16px !important;
  }

  .auth__content .form-btn {
    padding: 16px 24px !important;
  }

  /* Mobile header needs proper stacking context */
  .header {
    position: relative !important;
    z-index: 1000 !important;
  }

  /* Mobile menu dropdown styling */
  .header__content--mobile-open,
  .header.is-open .header__content--mobile {
    background: white !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
  }

  /* Fix mobile menu z-index so it doesn't overlap login */
  .header__content--mobile .header__menu,
  .header .mobile-menu,
  .header__menu--mobile {
    z-index: 9999 !important;
    background: white !important;
    position: relative;
  }

  /* Ensure login section stays below mobile menu */
  main,
  .section {
    position: relative;
    z-index: 1;
  }
}

@media (max-width: 480px) {
  .auth__content {
    padding: 28px 20px;
    margin: 16px;
  }
}

/* ============================================
   MOBILE RESPONSIVE - LIBRARY
   ============================================ */

@media (max-width: 768px) {
  .products__title {
    font-size: 28px !important;
  }

  .products__header {
    margin-bottom: 24px !important;
    padding-bottom: 16px !important;
  }

  .product__content {
    padding: 20px !important;
  }

  .product__title {
    font-size: 18px !important;
  }

  .product__button .btn,
  .products .btn {
    padding: 12px 20px !important;
    font-size: 12px !important;
  }

  .resume-course {
    padding: 20px !important;
  }

  .products__list {
    gap: 16px !important;
  }
}

@media (max-width: 480px) {
  .products__title {
    font-size: 24px !important;
  }

  .product__title {
    font-size: 16px !important;
  }

  .product__body {
    font-size: 14px !important;
  }
}

/* ============================================
   MOBILE LOGO CENTERING
   ============================================ */

@media (max-width: 767px) {
  /* Hide the mobile spacer */
  .header__content--mobile .header__spacer {
    display: none !important;
  }

  /* Hide the desktop menus on mobile to simplify layout */
  .header__block--menu {
    display: none !important;
  }

  /* Target the container inside desktop header - this is what shows on mobile */
  .header__content--desktop .header__container,
  .header__content--desktop .container {
    justify-content: center !important;
  }

  /* Reset logo margins for centering */
  .header__block--logo {
    margin: 0 !important;
    flex: 0 0 auto !important;
  }

  /* Keep hamburger absolutely positioned on right */
  .hamburger {
    position: absolute !important;
    right: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 100 !important;
    margin: 0 !important;
  }

  /* Make header container position relative for hamburger */
  .header__content--desktop .header__container,
  .header__content--desktop .container {
    position: relative !important;
  }
}

/* ============================================
   LOGIN PAGE SPACING FIX
   ============================================ */

/* Desktop spacing is controlled via padding_desktop in settings_data.json */
/* Mobile needs CSS override since the default 40px is baked into section_styles */
@media (max-width: 767px) {
  .section .sizer {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
  }
}

/* ============================================
   OVERRIDE TAYLOR THEME DEFAULTS
   ============================================ */

/* Remove Taylor's underline styling for login */
.auth__content a:hover {
  text-decoration: underline !important;
}

/* Ensure proper button styling */
.auth__content .btn--outline {
  background: transparent !important;
  color: var(--fly-gold) !important;
  border: 1px solid var(--fly-gold) !important;
}

.auth__content .btn--outline:hover {
  background: var(--fly-gold) !important;
  color: white !important;
}

/* Form control overrides from Taylor theme */
.auth__content .form-control {
  border-radius: 2px !important;
  border-left-width: 1px !important;
  border-top-width: 1px !important;
  border-right-width: 1px !important;
  background-color: white !important;
  border-color: var(--fly-cream-dark) !important;
}

/* ============================================
   GLOBAL LINK STYLING
   ============================================ */

.products a:not(.btn) {
  color: var(--fly-charcoal) !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

.products a:not(.btn):hover {
  color: var(--fly-gold) !important;
}
