/*
 * Titty Bingo Homepage Styles
 *
 * Home page-specific layout and component styling extracted from the
 * provided design assets. Global header/footer and navigation rules
 * live in app.css.
 */

.tb-main-home {
  padding: 0;
  max-width: none;
  margin-top: -3vw;
}

.tb-home {
  font-family: 'Barlow Condensed', sans-serif;
  color: var(--black);
  background-color: #000;
  line-height: 1.4;
  overflow-x: hidden;
}

.tb-home-body {
  background-color: #000;
}

/* Video slider */
.video-slider {
  background-color: #555;
  position: relative;
  z-index: 1;
  margin-top: -3vw;
  --video-slider-height: 40vw;
}

.video-slider .slides {
  position: relative;
  width: 100%;
  height: var(--video-slider-height);
  overflow: hidden;
}

@media (max-width: 768px) {
  .video-slider .slides {
    height: 80vw;
  }
}

.video-slider .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.video-slider .slide.active {
  opacity: 1;
  z-index: 2;
}

.video-slider .slide .slide-video {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.video-slider .slide .slide-video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 56.25vw;
  min-width: 177.78vh;
  min-height: 100%;
  border: 0;
  pointer-events: none;
}

.video-slider .video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--white);
  text-shadow: 2px 2px 0 var(--black);
  pointer-events: auto;
  padding: 1rem;
}

.video-slider .video-overlay h2 {
  font-family: 'Titty Bingo', cursive;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: normal;
  text-transform: none;
  text-align: center;
}

.video-slider .video-nav {
  position: absolute;
  bottom: 7vw;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
  pointer-events: auto;
  z-index: 60;
}

.video-slider .video-nav li {
  list-style: none;
}

.video-slider .video-nav .nav-btn {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  border: 2px solid currentColor;
  background-color: currentColor;
  cursor: pointer;
  display: inline-block;
  transition: transform 0.3s ease;
}

.video-slider .video-nav li:nth-child(5n+1) .nav-btn {
  color: #f0588a;
}
.video-slider .video-nav li:nth-child(5n+2) .nav-btn {
  color: #b2e0e4;
}
.video-slider .video-nav li:nth-child(5n+3) .nav-btn {
  color: #fbdae5;
}
.video-slider .video-nav li:nth-child(5n+4) .nav-btn {
  color: #91c955;
}
.video-slider .video-nav li:nth-child(5n+5) .nav-btn {
  color: #f9a24c;
}

.video-slider .video-nav .nav-btn.active {
  transform: scale(1.3);
}

.video-slider .play-btn {
  margin-top: 0.5rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.6);
  border: 2px solid var(--white);
  color: var(--white);
  cursor: pointer;
  pointer-events: auto;
}

.video-slider .play-btn i {
  font-size: 1.4rem;
}

/* Product section */
.product-section {
  text-align: center;
  padding-block: 0;
  position: relative;
}

.product-section h2 {
  font-family: 'Titty Bingo', cursive;
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--black);
  text-transform: none;
  font-weight: normal;
  text-align: center;
}

.product-slides {
  position: relative;
}

.product-slide {
  position: relative;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  text-decoration: none;
  padding: 0 3rem;
}

.product-slide.active {
  display: flex;
  opacity: 1;
  z-index: 1;
}

.product-slide[data-slide-theme="blue"] {
  background-color: #b2e0e4;
}

.product-slide[data-slide-theme="blue"] .product-content img {
  width: 260px;
  max-width: 260px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.product-slide[data-slide-theme="pink"] {
  background-color: #fbdae5;
}

.product-slide[data-slide-theme="hotpink"] {
  background-color: #f0588a;
}

.product-slide--image img {
  width: min(520px, 90vw);
  height: auto;
  object-fit: contain;
}

.product-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  z-index: 2;
}

.product-nav i {
  font-size: 1rem;
}

.product-nav-prev {
  left: 10px;
}

.product-nav-next {
  right: 10px;
}

.product-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.product-slider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(320px, 90vw);
}

.product-slides {
  position: relative;
  width: 100%;
  margin-top: 0;
}

.product-slide {
  position: relative;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  text-decoration: none;
}

.product-slide.active {
  display: flex;
  opacity: 1;
  z-index: 1;
}

.product-slide img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: none;
}

.product-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: rgba(0, 0, 0, 0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  z-index: 2;
}

.product-nav i {
  font-size: 1rem;
}

.product-nav-prev {
  left: 10px;
}

.product-nav-next {
  right: 10px;
}

.product-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  max-width: 220px;
}

.color-options {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.color-options label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1rem;
  font-family: 'Barlow Condensed', sans-serif;
  color: var(--black);
}

.color-options input[type="radio"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--black);
  border-radius: 50%;
  cursor: pointer;
}

.color-options input#white:checked {
  background-color: var(--white);
}

.color-options input#black-color:checked {
  background-color: var(--black);
}

.color-options input#white {
  background-color: var(--white);
}

.color-options input#black-color {
  background-color: var(--black);
}

.size-select {
  width: 100%;
  padding: 0.4rem 0.8rem;
  font-size: 1rem;
  background-color: var(--white);
  border: 2px solid var(--black);
  border-radius: 9999px;
  cursor: pointer;
}

.size-select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.add-to-cart {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background-color: var(--white);
  color: var(--black);
  border: 2px solid var(--black);
  border-radius: 9999px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
}

.add-to-cart:hover {
  background-color: var(--black);
  color: var(--white);
}

/* News & studio section */
.news-section {
  background-color: var(--white);
  padding-block: 3rem 3rem;
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
}

.latest-news,
.studio-notes {
  flex: 1 1 320px;
  max-width: 768px;
}

.latest-news h3,
.studio-notes h3 {
  font-family: 'Titty Bingo', cursive;
  font-size: 3.2rem;
  margin-bottom: 1.5rem;
  text-transform: none;
  font-weight: normal;
  text-align: center;
}

.latest-news h3 {
  color: var(--pink);
  font-size: 3.4rem;
  font-weight: normal;
  text-align: center;
}

.studio-notes h3 {
  color: var(--light-green);
}

.news-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.news-item img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.news-item h4 {
  margin-top: 0;
  font-size: 3vw;
  margin-bottom: 0.4rem;
  font-family: 'Titty Bingo', cursive;
  color: var(--black);
  text-transform: none;
  font-weight: normal;
}

.news-item .date {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 0.4rem;
}

.news-item p {
  font-size: 1.2rem;
  color: #333;
}

.studio-notes p {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #444;
}

.studio-notes img {
  width: 100%;
  max-width: none;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .product-content {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
  }

  .product-slider {
    flex: 0 1 75%;
    width: 75%;
  }

  .product-info {
    order: 3;
    flex: 0 0 50%;
    max-width: 50%;
    width: 100%;
    margin: 4vw !important;
    margin-top: 1.5rem;
  }

  .news-section {
    flex-direction: column;
    gap: 2rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (min-width: 769px)  {
  .latest-news,
  .studio-notes {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Video modal */
.video-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.video-modal.active {
  display: flex;
}

.video-modal .modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 1;
}

.video-modal .modal-content {
  position: relative;
  width: 90%;
  max-width: 1200px;
  background-color: #000;
  padding: 1rem;
  z-index: 2;
}






@media (max-width: 768px) {
  .video-modal .modal-content {
    width: 100%;
    max-width: none;
    margin: 0;
  }
	
	.news-section {margin-top:-3vw;}	
	.product-section {padding-bottom: 3vw; margin-top:-3vw !important;}
	
	.news-item h4 {font-size:8vw;}
	
	.latest-news h3, .studio-notes h3 {margin-top:0;}
}

.video-modal .modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  z-index: 1;
  line-height: 1;
}

#modal-player {
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  position: relative;
}

#modal-player iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
