/* Landing Page Styles - BEM Convention */

/* Landing Page Block */
.landing-page {
  min-height: 100vh;
  color: #343a40;
  overflow-x: hidden;
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  width: 100%;
}

.landing-page::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../../assets/backgrounds/landing-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.3;
  z-index: -1;
}

/* Override layout when landing page is active */
body.landing-page-active {
  overflow-y: auto;
  overflow-x: hidden;
}

body.landing-page-active #view-container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  display: block;
}

/* Landing Hero Block */
.landing-hero {
  min-height: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  padding: 2rem 2rem;
}

/* First section - A Tool for Creating Piano Exercises - gray tinted */
.landing-hero:first-of-type {
  background: rgba(248, 249, 250, 0.4);
}

/* What is Sight-Reading - no background */
.landing-hero.why-section:nth-of-type(3) {
  background: #ffffff;
}

/* Why This Tool Exists - semi-transparent with fade at top and bottom */
.landing-hero:nth-of-type(4) {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.7) 15%, rgba(255, 255, 255, 0.7) 85%, rgba(255, 255, 255, 1) 100%);
}

/* How Musicians Use It - no background */
.landing-hero.why-section:nth-of-type(5) {
  background: #ffffff;
}

/* Availability - semi-transparent with fade at top and bottom */
.landing-hero:nth-of-type(6) {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.7) 15%, rgba(255, 255, 255, 0.7) 85%, rgba(255, 255, 255, 1) 100%);
}

/* Landing Hero Elements */
.landing-hero__content {
  max-width: 800px;
  position: relative;
  z-index: 1;
}

/* Landing Title Block */
.landing-title {
  font-size: 2.3rem;
  font-weight: 700;
  color: #343a40;
  margin-bottom: 0;
  text-align: center;
  font-family: 'Crimson Text', 'Georgia', serif;
}

.landing-title--brand {
  font-family: 'Permanent Marker', cursive;
  font-weight: 400;
}

.landing-title--animated {
  display: inline-block;
  opacity: 0;
}

/* Landing Subtitle Block */
.landing-subtitle {
  font-size: 1.2rem;
  color: #2f2d2d;
  margin-bottom: 1.5rem;
  margin-top: 3rem;
  text-align: center;
  line-height: 1.6;
  font-family: 'Crimson Text', 'Georgia', serif;
}

.landing-subtitle--left {
  text-align: left;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Landing List Block */
.landing-list {
  font-size: 1.2rem;
  color: #2f2d2d;
  font-weight: 400;
  text-align: left;
  max-width: 600px;
  margin: 1rem auto 2.5rem auto;
  font-family: 'Crimson Text', 'Georgia', serif;
  list-style-position: outside;
  padding-left: 1.5rem;
}

.landing-list li {
  margin-bottom: 0;
}

/* Trial CTA Block */
.trial-cta {
  margin-top: 2rem;
}

.trial-subtext {
  margin-top: 0.75rem;
  font-size: 1.1rem;
  color: #6c757d;
  text-align: center;
  font-family: 'Crimson Text', 'Georgia', serif;
  font-style: italic;
  line-height: 1.4;
  font-weight: 400;
}

/* Landing Features Block */
.landing-features {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.landing-features__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: white;
  border-radius: 8px;
  border: 1px solid #dee2e6;
  color: #343a40;
  font-size: 1.1rem;
  font-family: 'Crimson Text', 'Georgia', serif;
  transition: all 0.3s ease;
}

.landing-features__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(52,58,64,0.1);
  border-color: #343a40;
}

.landing-features__icon {
  font-size: 1.5rem;
}

/* Landing Actions Block */
.landing-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Button Styles */
.btn-primary {
  border: none;
  border-radius: 0.4rem;
  padding: 1.4rem 3rem;
  font-size: 1.3rem;
  font-weight: 600;
  background: #2f2d2d;
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-family: 'Crimson Text', 'Georgia', serif;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(47,45,45,0.2);
  outline: none;
}

/* Collapsible Content - BEM Naming */
.landing-expandable {
  position: relative;
}

.landing-expandable::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 140px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.7) 30%, rgba(255, 255, 255, 0.95) 60%, rgb(255, 255, 255) 100%);
  pointer-events: none;
  transition: opacity 0.4s ease;
}

/* Fade for gray background sections */
.why-section .landing-expandable::after {
  background: linear-gradient(to bottom, rgba(248, 249, 250, 0) 0%, rgba(248, 249, 250, 0.7) 30%, rgba(248, 249, 250, 0.95) 60%, rgb(248, 249, 250) 100%);
}

.landing-expandable--expanded::after {
  opacity: 0;
}

/* Specific sections - no fade due to gradient backgrounds */
.landing-expandable--intro::after,
.landing-expandable--why::after,
.landing-expandable--musicians::after {
  display: none;
}

/* Collapsible Content Element */
.landing-expandable__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
}

.landing-expandable__content--expanded {
  max-height: 3000px;
  transition: max-height 0.7s ease-in;
}

/* Collapsible List Items */
.landing-expandable__list-item--hidden {
  display: none;
}

.landing-expandable--expanded .landing-expandable__list-item--hidden {
  display: list-item;
}

/* Read More Button */
.read-more-btn {
  margin-top: 1.5rem;
  padding: 0.6rem 1.8rem;
  font-size: 1.1rem;
  font-family: 'Crimson Text', 'Georgia', serif;
  color: #fff;
  background: linear-gradient(135deg, #2f2d2d 0%, #4a4747 100%);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 15px rgba(47, 45, 45, 0.3);
}

.read-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(47, 45, 45, 0.4);
  background: linear-gradient(135deg, #4a4747 0%, #2f2d2d 100%);
}

.read-more-btn:active {
  transform: translateY(0);
}

/* Landing Section Block */
.landing-section {
  padding: 5rem 2rem;
  text-align: center;
  color: #343a40;
}

.landing-section__title {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #343a40;
}

/* How It Works Section */
.landing-how-it-works {
  padding-top: 2rem;
  padding-bottom: 3rem;
  margin-top: 0;
}

.landing-how-it-works__title {
  font-family: 'Crimson Text', 'Georgia', serif;
  margin-bottom: 2rem;
  margin-top: 1rem;
}

.landing-how-it-works__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

/* User Types Section */
.landing-user-types {
  background: #efefef;
  padding-top: 3rem;
  padding-bottom: 3rem;
  margin-top: 1.3rem;
}

.landing-user-types__title {
  font-family: 'Crimson Text', 'Georgia', serif;
  margin-bottom: 2rem;
  margin-top: 0.5rem;
}

.landing-user-types__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Examples Section Block */
.landing-examples {
  padding: 1.5rem 2rem 4rem 2rem;
  background: linear-gradient(to bottom, rgba(248, 249, 250, 0.4) 0%, rgba(255, 255, 255, 0.7) 30%, rgb(255, 255, 255) 100%);
}

.landing-examples__title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #343a40;
  font-family: 'Crimson Text', 'Georgia', serif;
}

/* Carousel Block */
.landing-carousel {
  position: relative;
  max-width: 68%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.landing-carousel__wrapper {
  flex: 1;
  overflow: hidden;
  border-radius: 10px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 500px;
  background: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.landing-carousel__track {
  display: flex;
  transition: transform 0.5s ease;
  height: 100%;
  width: 100%;
}

.landing-carousel__slide {
  min-width: 100%;
  max-width: 100%;
  width: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.landing-carousel__slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}

.landing-carousel__btn {
  background: #2f2d2d;
  color: white;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.landing-carousel__btn:hover {
  background: #343a40;
  transform: scale(1.1);
}

.landing-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 2rem;
}

.landing-carousel__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #dee2e6;
  cursor: pointer;
  transition: all 0.3s ease;
}

.landing-carousel__dot--active {
  background: #2f2d2d;
  transform: scale(1.3);
}

.landing-carousel__dot:hover {
  background: #6c757d;
}

/* Landing CTA Section */
.landing-cta {
  color: #343a40;
  padding: 2rem 2rem 3rem 2rem;
  background: #ffffff;
}

.landing-cta__title {
  font-size: 2.3rem;
  font-weight: 700;
  color: #343a40;
  margin-bottom: 1.5rem;
  font-family: 'Crimson Text', 'Georgia', serif;
}

.landing-cta__content {
  max-width: 800px;
  margin: 0 auto 3rem auto;
  text-align: left;
}

.landing-cta__content p {
  font-size: 1.2rem;
  color: #2f2d2d;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-family: 'Crimson Text', 'Georgia', serif;
}

/* Landing Footer Section */
.landing-footer-section {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.7) 15%, rgba(255, 255, 255, 0.7) 85%, rgba(255, 255, 255, 1) 100%);
  padding: 1.5rem 2rem;
  text-align: center;
}

.landing-footer-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.landing-footer-links a {
  color: #2f2d2d;
  font-family: 'Crimson Text', 'Georgia', serif;
  text-decoration: underline;
  font-size: 1.1rem;
  transition: opacity 0.2s ease;
  -webkit-user-select: none;
  user-select: none;
}

.landing-footer-links a:hover {
  opacity: 0.7;
}
