/**
 * RESPONSIVE REFACTOR - PROTOTYPE CSS
 *
 * This CSS demonstrates the unified responsive approach:
 * - Mobile navigation visible ≤700px
 * - Desktop navigation visible >700px
 * - Shared sidebar for both
 *
 * Breakpoint: 700px (matches current mobile-redirect.js threshold)
 */

/* ========================================= */
/* VARIABLES - Easy tweaking */
/* ========================================= */

:root {
  --instructor-bg-position-x: 78%; /* Adjust this to move instructor image left/right (0% = far left, 100% = far right) */
}

/* ========================================= */
/* STAR RATINGS */
/* ========================================= */

svg.star-126 {
  fill: #e0e0e0; /* Default star color */
}

svg.star-126.checked {
  fill: #FD9A27; /* Orange fill for checked stars */
}

/* ========================================= */
/* BLOG LAYOUT - Centered Reading Column */
/* ========================================= */

/* Ensure centered content is full-width on mobile */
@media (max-width: 700px) {
  .fix-8-12.toCenter {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* On desktop, ensure proper centering and max-width for readability */
@media (min-width: 701px) {
  .fix-8-12.toCenter {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Left-align all text content within centered blog column */
.fix-8-12.toCenter h1,
.fix-8-12.toCenter h2,
.fix-8-12.toCenter h3,
.fix-8-12.toCenter h4,
.fix-8-12.toCenter h5,
.fix-8-12.toCenter h6,
.fix-8-12.toCenter p,
.fix-8-12.toCenter ul,
.fix-8-12.toCenter ol,
.fix-8-12.toCenter div {
  text-align: left !important;
}

/* ========================================= */
/* DESKTOP NAVIGATION (default/hidden on mobile) */
/* ========================================= */

/* Hide desktop nav on mobile */
@media (max-width: 700px) {
  .panel.top.nav-desktop,
  nav.panel.top.nav-desktop {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    height: 0 !important;
    overflow: hidden !important;
  }
}

/* Show desktop nav on larger screens */
@media (min-width: 701px) {
  .panel.top.nav-desktop,
  nav.panel.top.nav-desktop {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transition: transform 0.3s ease !important;
  }
}

/* ========================================= */
/* MOBILE NAVIGATION (hidden on desktop) */
/* ========================================= */

/* Show mobile nav on mobile */
@media (max-width: 700px) {
  .panel.top.nav-mobile,
  nav.panel.top.nav-mobile,
  nav.panel.top.black.nav-mobile {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: #2a2a2e !important; /* Dark navbar background */
    transition: transform 0.3s ease !important;
  }
}

/* Hide mobile nav on desktop */
@media (min-width: 701px) {
  .panel.top.nav-mobile,
  nav.panel.top.nav-mobile,
  nav.panel.top.black.nav-mobile {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    height: 0 !important;
    overflow: hidden !important;
  }
}

/* ========================================= */
/* MOBILE-SPECIFIC STYLES */
/* ========================================= */

@media (max-width: 700px) {
  /* Mobile nav panel - match original */
  .nav-mobile.panel.top {
    padding: 11px 8px !important;
    min-height: auto !important;
  }

  .nav-mobile .sections.mobile {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    min-height: auto !important;
  }

  .nav-mobile .sections.mobile .left {
    padding-left: 22px !important;
    padding-right: 0 !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
  }

  .nav-mobile .sections.mobile .right {
    padding-right: 0 !important;
    padding-left: 0 !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
  }

  .nav-mobile .logo {
    width: 76px !important;
    height: 76px !important;
    display: block !important;
  }

  /* Make logo colors match original dark navbar */
  .nav-mobile .logo circle {
    fill: #000 !important;
    stroke: #FD9A27 !important;
  }

  .nav-mobile .logo path {
    fill: #fff !important;
  }

  /* Action buttons (share & hamburger) */
  .nav-mobile .button.actionButton {
    width: 42px !important;
    height: 42px !important;
    padding: 0 !important;
    background: rgba(0, 0, 0, 0.3) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Spacing between buttons */
  .nav-mobile .button.actionButton:not(:last-child) {
    margin-right: 0px !important;
  }

  /* Last button spacing from edge */
  .nav-mobile .button.actionButton:last-child {
    margin-right: 22px !important;
  }

  .nav-mobile .button.actionButton svg {
    width: 18px !important;
    height: 18px !important;
    display: block !important;
    margin: auto !important;
    transform: translateY(-1px) !important;
  }

  /* Mobile slides: white background like original (except specific black slides) */
  .slide:not(.blackSlide):not(.GraySlide):not([data-name="personal-instruction"]):not([data-name="progress-tracking"]) {
    background: #fff !important;
    color: #111 !important;
  }

  /* Specific slides with black backgrounds on mobile */
  .slide[data-name="personal-instruction"],
  .slide[data-name="progress-tracking"] {
    background: #111 !important;
    color: #fff !important;
  }

  /* Hide desktop background videos/images on mobile, but NOT on mobile-only slides */
  .slide.desktop-only .background {
    display: none !important;
  }

  /* For slides that exist on both mobile and desktop, hide ken burns/video backgrounds */
  .slide.kenBurns .background,
  .slide.video:not(.mobile-only) .background video {
    display: none !important;
  }

  /* Adjust slide content for mobile */
  .slide .fix-6-12,
  .slide .col-6-12 {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Stack flex items vertically on mobile */
  .slide .flex {
    flex-direction: column !important;
  }

  /* Add spacing after instructor image on mobile */
  .slide[data-name="pilates-online-instructor"] img {
    margin-bottom: 30px !important;
  }

  /* Padding adjustments for mobile */
  .slide .container .wrap {
    padding: 60px calc(8% + 15px) !important;
  }

  /* Hide page navigation dots on mobile */
  nav.side {
    display: none !important;
  }

  /* Disable Slides framework animations ONLY on first mobile slide to prevent text hiding */
  .slide[data-name="welcome-to-pilates-online-mobile"] [class*="ae-"],
  .slide[data-name="welcome-to-pilates-online-mobile"] .fromLeft,
  .slide[data-name="welcome-to-pilates-online-mobile"] .fromRight,
  .slide[data-name="welcome-to-pilates-online-mobile"] .fromCenter,
  .slide[data-name="welcome-to-pilates-online-mobile"] .fromTop,
  .slide[data-name="welcome-to-pilates-online-mobile"] .fromBottom {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
    visibility: visible !important;
  }

  /* Ensure welcome slide content is visible - override all Slides framework states */
  .slides.animated .slide[data-name="welcome-to-pilates-online-mobile"] [class*="ae-"],
  .slides.loaded .slide[data-name="welcome-to-pilates-online-mobile"] [class*="ae-"],
  .slides > .slide[data-name="welcome-to-pilates-online-mobile"] [class*="ae-"] {
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* Force immediate visibility for mobile welcome slide content only */
  .slide[data-name="welcome-to-pilates-online-mobile"] h1,
  .slide[data-name="welcome-to-pilates-online-mobile"] p,
  .slide[data-name="welcome-to-pilates-online-mobile"] .videoThumbnail {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  /* Personal Instruction slide - text after image on mobile */
  .slide[data-name="personal-instruction"] .flex.reverse {
    flex-direction: column-reverse !important;
  }

  /* Pricing slide: white heading, white cards with dark text */
  .slide[data-name="pricing"] > .content > .container > .wrap > .fix-9-12 > h1 {
    color: #fff !important;
  }

  .slide[data-name="pricing"] .col-4-12 {
    background: #fff !important;
    border-radius: 12px !important;
    padding: 30px 20px !important;
  }

}

/* ========================================= */
/* FREE TRIAL - Two Column Layout */
/* ========================================= */

/* Add opacity overlay to background image */
.slide[data-name="pilates-online-free-trial"] .background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

/* Left align copy */
.slide[data-name="pilates-online-free-trial"] h1,
.slide[data-name="pilates-online-free-trial"] p {
  text-align: left;
}

/* Mobile: stack vertically */
@media (max-width: 700px) {
  .slide[data-name="pilates-online-free-trial"] .flex {
    flex-direction: column;
  }

  .slide[data-name="pilates-online-free-trial"] .col-6-12 {
    width: 100%;
  }
}

/* Desktop: side by side */
@media (min-width: 701px) {
  .slide[data-name="pilates-online-free-trial"] .flex {
    align-items: center;
  }

  .slide[data-name="pilates-online-free-trial"] .col-6-12:first-child {
    padding-right: 30px;
  }
}

/* ========================================= */
/* PRICING */
/* ========================================= */

/* Pricing - shared styles for both mobile and desktop */
.slide[data-name="pricing"] .col-4-12 {
  background: #fff;
  border-radius: 12px;
  padding: 30px 20px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  -webkit-box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Add spacing before description text in pricing boxes */
.slide[data-name="pricing"] .col-4-12 ul.p li.opacity-8 {
  margin-top: 1em;
}

/* Mobile pricing - spacing for shadow */
@media (max-width: 700px) {
  .slide[data-name="pricing"] .col-4-12 {
    margin-bottom: 40px !important; /* Extra margin for shadow rendering */
  }

  .slide[data-name="pricing"] .col-4-12:last-child {
    margin-bottom: 0 !important;
  }
}

/* Tablet pricing - add visible gaps between cards */
@media (min-width: 701px) and (max-width: 1023px) {
  /* Tablet: stack boxes vertically with spacing for shadow */
  .slide[data-name="pricing"] .col-4-12 {
    width: 100% !important;
    max-width: 400px !important;
    margin: 0 auto 40px auto !important; /* Extra margin for shadow rendering */
    display: block !important;
  }

  .slide[data-name="pricing"] .col-4-12:last-child {
    margin-bottom: 0 !important;
  }
}

@media (min-width: 1024px) {
  /* Desktop: three equal-width columns with gaps for shadow */
  .slide[data-name="pricing"] .col-4-12 {
    width: calc(33.333% - 13.333px) !important; /* Equal width for all boxes */
    margin: 40px 10px !important; /* Vertical space for shadow, horizontal gaps */
  }

  .slide[data-name="pricing"] .col-4-12:first-child {
    margin-left: 0 !important;
  }

  .slide[data-name="pricing"] .col-4-12:last-child {
    margin-right: 0 !important;
  }
}

/* ========================================= */
/* HANDY ARTICLES - Orange hover color */
/* ========================================= */

/* Override the box-131 blue overlay to orange */
.slide[data-name="handy-articles"] .box-131:after {
  background: #FD9A27 !important;
}

/* ========================================= */
/* FRAMEWORK EXTENSION - BLACK SLIDES */
/* ========================================= */

.slide.blackSlide {
  color: #fff !important;
  background: #111 !important;
}

.slide.GraySlide {
  color: #fff !important;
  background: #2a2a2e !important;
}

.slide.GraySlide h1,
.slide.GraySlide h2,
.slide.GraySlide h3,
.slide.GraySlide h4,
.slide.GraySlide p,
.slide.GraySlide span,
.slide.GraySlide li {
  color: #fff !important;
}

/* ========================================= */
/* DESKTOP-SPECIFIC STYLES */
/* ========================================= */

@media (min-width: 701px) {
  /* Desktop logo sizing - responsive scaling */
  .nav-desktop .left svg {
    width: 100px !important;
    height: 100px !important;
  }
}

/* Medium desktops (1024-1439px) - medium logo */
@media (min-width: 1024px) and (max-width: 1439px) {
  .nav-desktop .left svg {
    width: 110px !important;
    height: 110px !important;
  }
}

/* Large desktops (1440+) - full size logo */
@media (min-width: 1440px) {
  .nav-desktop .left svg {
    width: 136px !important;
    height: 136px !important;
  }
}

/* ========================================= */
/* SHARED/RESPONSIVE STYLES */
/* ========================================= */

/* Navigation scroll-hide behavior */
.nav-hidden {
  transform: translateY(-100%) !important;
}

/* Responsive slide visibility */
/* Desktop-only slides and elements: hidden on mobile */
@media (max-width: 700px) {
  .slide.desktop-only,
  .desktop-only {
    display: none !important;
  }
}

/* Mobile-only slides: hidden on desktop */
@media (min-width: 701px) {
  .slide.mobile-only {
    display: none !important;
  }
}

/* Share dropdown - Telegram styling */
.social-telegram {
  background: #0088cc !important;
  color: #fff !important;
}

.social-telegram svg {
  fill: #fff !important;
}

.dropdown.share li.social-telegram {
  display: block !important;
  cursor: pointer !important;
}

.dropdown.share li.social-telegram svg {
  display: inline-block !important;
  width: 44px !important;
  height: 44px !important;
}

/* Sidebar logo - responsive sizing */
@media (max-width: 700px) {
  .sidebar .logo svg {
    width: 80px !important;
    height: 80px !important;
  }
}

@media (min-width: 701px) {
  .sidebar .logo svg {
    width: 100px !important;
    height: 100px !important;
  }
}

/* Instructor slide-107 background image fix */
@media (min-width: 1024px) {
  .slide.slide-107 .wrap[style*="background-image"] {
    width: 50% !important; /* Fixed photo on right, 50% width on desktop only */
    background-position: var(--instructor-bg-position-x) center !important; /* Use variable for easy adjustment */
    background-attachment: scroll !important; /* Override 'fixed' for stable initial render - no parallax but no visual shift */
  }
}


/* ========================================= */
/* FOOTER LOGO CENTERING */
/* ========================================= */

/* Center the logo within its column on desktop */
@media (min-width: 701px) {
  .customFooter .logo {
    display: block;
    margin: 0 auto;
  }
}

/* ========================================= */
/* LANGUAGE & COUNTRY SELECTORS */
/* ========================================= */

/* Wrapper for custom flag display */
.language-selector,
.country-selector {
  position: relative;
}

.language-select,
.country-select {
  width: 100%;
  padding: 14px 16px;
  padding-left: 54px; /* Space for circular flag */
  font-size: 15px;
  line-height: 1.5;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
  color: #111;
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path fill="%23111111" d="M1.41 0L6 4.58 10.59 0 12 1.42l-6 6-6-6z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  padding-right: 36px;
}

/* Circular flag icon positioned absolutely */
.flag-icon {
  position: absolute;
  left: 12px;
  bottom: 10px; /* Vertically centered within select box */
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.flag-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.language-select option,
.country-select option {
  padding: 8px 12px;
  line-height: 1.6;
}

.language-select:hover,
.country-select:hover {
  border-color: rgba(0, 0, 0, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.language-select:focus,
.country-select:focus {
  outline: none;
  border-color: #FD9A27;
  box-shadow: 0 0 0 3px rgba(253, 154, 39, 0.1);
}

/* Mobile adjustments for selectors */
@media (max-width: 700px) {
  .language-select,
  .country-select {
    font-size: 14px;
    padding: 12px 14px;
    padding-left: 50px; /* Adjust for smaller flag */
    padding-right: 32px;
  }

  .flag-icon {
    width: 28px;
    height: 28px;
    left: 10px;
    bottom: 10px; /* Vertically centered within mobile select box */
  }
}

/* ========================================= */
/* BREAKPOINT REFERENCE */
/* ========================================= */

/*
Current Breakpoints (from variables.scss):
- $phone: 436px
- $phablet: 768px
- $tablet: 1024px
- $desktop: 1240px

Prototype uses: 700px (matches mobile-redirect.js)

Future refinements can add intermediate breakpoints:
- 436px for extra-small phones
- 768px for phablets
- 1024px for tablets
- 1240px for large desktops
*/
