/* Custom CSS for Founder's Talk Page - The CSR Universe */
/* Scoped under .ft-page to prevent any conflicts with global styles */

.ft-page {
  font-family: 'Inter', -apple-system, sans-serif;
  color: #0f172a;
}

/* Headings Editorial Font */
.ft-editorial-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

/* Custom Scrollbar for Dropdowns and Dialogs */
.ft-custom-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.ft-custom-scrollbar::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 99px;
}
.ft-custom-scrollbar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 99px;
}
.ft-custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Hero Carousel Overlay and Adjustments */
.ft-hero-overlay {
  background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.4) 60%, rgba(15, 23, 42, 0.2) 100%);
}

.ft-hero-carousel .owl-nav button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.ft-hero-carousel .owl-nav button:hover {
  background: rgba(255, 255, 255, 0.3) !important;
  scale: 1.05;
}

.ft-hero-carousel .owl-nav .owl-prev {
  left: 24px;
}

.ft-hero-carousel .owl-nav .owl-next {
  right: 24px;
}

.ft-hero-carousel .owl-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.ft-hero-carousel .owl-dot span {
  width: 8px !important;
  height: 8px !important;
  background: rgba(255, 255, 255, 0.4) !important;
  margin: 0 !important;
  transition: all 0.3s ease !important;
  border-radius: 99px !important;
}

.ft-hero-carousel .owl-dot.active span {
  width: 24px !important;
  background: #10b981 !important; /* Emerald-500 equivalent */
}

/* Liquid Glass Mobile Bottom Nav */
@media (max-width: 767px) {
  .ft-mobile-nav {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    height: 64px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.02);
    border-radius: 32px;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 16px;
    transition: all 0.3s ease;
  }
}
@media (min-width: 768px) {
  .ft-mobile-nav {
    display: none !important;
  }
}

.ft-mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 11px;
  font-weight: 500;
  gap: 4px;
  text-decoration: none !important;
  transition: color 0.2s ease;
  width: 60px;
}

.ft-mobile-nav-item i {
  font-size: 18px;
}

.ft-mobile-nav-item.active {
  color: #047857; /* Emerald-700 */
}

/* Glass Mobile Bottom Menu Sheet */
.ft-mobile-menu-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100000;
  padding: 24px;
}

.ft-mobile-menu-sheet.open {
  transform: translateY(0);
}

.ft-mobile-sheet-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.3);
  backdrop-filter: blur(4px);
  z-index: 99998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.ft-mobile-sheet-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* Episode Premium Card Styles */
.ft-episode-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.ft-episode-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

/* Custom Premium Modal */
.ft-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.ft-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.ft-modal-box {
  background: #ffffff;
  border-radius: 20px;
  max-width: 800px;
  width: 90%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ft-modal-overlay.open .ft-modal-box {
  transform: scale(1);
}

/* Custom Success Alert dialog container */
.ft-dialog-box {
  max-width: 440px;
  background: #ffffff;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  text-align: center;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ft-modal-overlay.open .ft-dialog-box {
  transform: scale(1);
}

/* Country Flag Search Dropdown */
.ft-country-dropdown {
  max-height: 280px;
  overflow-y: auto;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  background: #ffffff;
}

.ft-country-item {
  transition: background 0.15s ease;
  cursor: pointer;
}

.ft-country-item:hover, .ft-country-item.highlighted {
  background: #f1f5f9;
}

/* Custom Form Styles */
.ft-input-field {
  transition: all 0.2s ease;
}
.ft-input-field:focus {
  border-color: #059669 !important; /* Emerald-600 */
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15) !important;
}

.ft-error-message {
  font-size: 12px;
  color: #ef4444;
  margin-top: 4px;
}

/* Skeleton Loaders */
.ft-skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: ft-shimmer 1.5s infinite;
  border-radius: 8px;
}

@keyframes ft-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Toast Notification Styles */
.ft-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ft-toast {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ft-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Reduced Motion Settings */
@media (prefers-reduced-motion: reduce) {
  .ft-episode-card, .ft-modal-box, .ft-modal-overlay, .ft-mobile-menu-sheet, .ft-hero-carousel .owl-dot span, .ft-hero-carousel .owl-nav button {
    transition: none !important;
    transform: none !important;
    animation: none !important;
  }
  .ft-skeleton {
    animation: none !important;
    background: #e2e8f0 !important;
  }
}

/* Backup video sizing rules for overlay box */
.ft-modal-box iframe, .ft-modal-box video {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  border-radius: 12px;
  display: block;
}

/* Premium 3D Flipping Logo in Header */
.ft-logo-flip-container {
  perspective: 1000px;
  width: 240px;
  height: 56px;
  display: block;
  text-decoration: none !important;
}

.ft-logo-flip-card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.ft-logo-flip-front, .ft-logo-flip-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  background: transparent;
}

.ft-logo-flip-front {
  transform: rotateY(0deg);
  z-index: 2;
}

.ft-logo-flip-back {
  transform: rotateY(180deg);
}

/* Horizontal flip (spinning coin/circle type) on toggle */
.ft-logo-flip-container.flipped .ft-logo-flip-card {
  transform: rotateY(180deg);
}

/* Hide global mobile bottom navigation menu on this custom page */
.mobile-bottom-nav {
  display: none !important;
}
