/* General */
* { box-sizing: border-box; }

:root {
  --purple-light-1: #FEE8DA;
  --purple-light-2: #FEE8DA;
  --purple-medium-1: #D92929;
  --purple-medium-2: #e12b2b;
  --purple-medium-3: #BF0413;
  --purple-dark-1: #911717;
  --purple-dark-2: #0D0D0D;

  --yellow: #EECC75;
  --green: #CAD297;
  --aqua: #B7EAC5;
  --lightBlue: #A2EEE5;
  --darkBlue: #8EA2EA;
  --red: #F09D9D;

  --font-family-titles: 'Dosis', sans-serif;
  --font-family-text: 'Red Hat Display', sans-serif;
  --font-weight-title1: 800;
  --font-weight-title2: 700;
  --font-weight-text1: 400;
  --font-weight-text2: 500;
}

html {
  background-color: var(--purple-dark-2);
}

body {
    /* background: linear-gradient(25deg, rgba(0,0,0,1) 0%, rgba(255,0,0,1) 100%); */

    background-color: var(--purple-dark-2);
    color: var(--purple-light-1);
    font-family: var(--font-family-text);
    font-weight: var(--font-weight-text1);
    font-size: 16px;
    margin: 4px 0 0 0;
    padding: 0;
}

h1, h2, h3 {
  margin: 0;
  padding: 0;
}

h1, h2 {
  font-size: 24px;
  color: var(--purple-light-1);
  font-family: var(--font-family-titles);
  font-weight: var(--font-weight-title1);
  margin: 0;
  padding: 0;
}

h2 {
  font-size: 18px;
  color: var(--purple-medium-1);
  font-weight: var(--font-weight-title2);
}

h3 {
  color: var(--purple-light-1);
  font-weight: var(--font-weight-text2);
  font-size: 16px;
}

input {
  background-color: var(--purple-light-2);
  color: var(--purple-medium-2);
  border: none;
  font-size: 18px;
  padding-left: 16px;
}

input::placeholder {
  color: var(--purple-medium-1);
  font-family: var(--font-family-text);
}

button {
  background-color: var(--purple-medium-3);
  border: none;
  color: var(--purple-light-2);
  font-weight: var(--font-weight-text2);
  font-size: 14px;
  cursor: pointer;
}


/* Shared */
.header-container, .trendingPreview-header, .categoriesPreview-container, .liked-header {
  padding: 0 24px;
}

.trendingPreview-container, .categoriesPreview-container, .liked-container, footer {
  margin-top: 48px;
}

.trendingPreview-header, .categoriesPreview-title, .liked-header {
  margin-bottom: 24px;
}

.movie-container {
  cursor: pointer;
  position: relative;
}

.movie-container--loading{
  background: var(--purple-light-2);
  border-radius: 8px;
  height: 225px;
  min-height: 225px;
  max-height: 225px;
  width: 150px;
  max-width: 150px;
  min-width: 150px;
  margin-bottom: 15px;
  animation: loading-skeleton infinite 1.5s;
}

.movie-container--loading:nth-child(2) {
  animation-delay: .2s;
}

.movie-container--loading:nth-child(3) {
  animation-delay: .4s;
}
.movie-img {
  border-radius: 8px;
  min-height: 200px;
}

.movie-btn{
  position: absolute;
  top: 5px;
  right: 10px;
  height: 30px;
  width: 30px;
  border-radius: 30px;
  padding: 0;
  margin: 0;
}

.movie-btn::before {
  content: '🤍';
}
.movie-btn--liked{
  background-color: var(--purple-light-2);
  box-shadow: 0px 0px 10px 2px var(--purple-dark-1);
}
.movie-btn--liked::before{
  content: ' 💖 ';
}
.genericList-container--loading{
  background: var(--purple-light-2);
  border-radius: 8px;
  height: 536px;
  min-height: 536px;
  max-height: 536px;
  width: 357px;
  max-width: 357px;
  min-width: 357px;
  margin-bottom: 15px;
  animation: loading-skeleton infinite 1.5s;
}

.movie-detail--loading{
  background: var(--purple-light-2);
  border-radius: 8px;
  height: 536px;
  min-height: 536px;
  max-height: 536px;
  width: 357px;
  max-width: 357px;
  min-width: 357px;
  margin-bottom: 15px;
  animation: loading-skeleton infinite 1.5s;
}

.genericList-container--loading:nth-child(2) {
  animation-delay: .2s;
}

.genericList-container--loading:nth-child(3) {
  animation-delay: .4s;
}
.genericList-container--loading:nth-child(4) {
  animation-delay: .6s;
}
.categoriesPreview-list, .categories-list{
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  /* display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  flex-wrap: wrap; */
}

.category-container--loading{
  background: var(--purple-light-2);
  border-radius: 8px;
  height: 25px;
  min-height: 25px;
  max-height: 25px;
  width: 150px;
  max-width: 150px;
  min-width: 150px;
  margin-bottom: 15px;
  animation: loading-skeleton infinite 1.5s;
}

.category-container--loading:nth-child(2) {
  animation-delay: .2s;
}
/* Header */
.header-container {
  padding-top: 20px;
}

.header-container--long {

  background-size: cover !important;
  height: 480px;
  position: fixed;
  top: 0;
  width: 100%;
}

.header-container--categoryView {
  background: linear-gradient(180deg, rgba(238, 204, 117, 0.5) 0%, rgba(238, 204, 117, 0) 72.92%);
} 

.header-title {
  margin-bottom: 24px;
}
.header-title:hover {
  cursor: pointer;
}
.header-arrow {
  font-weight: var(--font-weight-text2);
  font-size: 36px;
  margin-bottom: 16px;
  cursor: pointer;
  display: inline-block;
}
.header-arrow--white {
  color: var(--purple-light-1);
}

.header-searchForm {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex-wrap: nowrap;
}

.header-searchForm input {
  height: 48px;
  width: 100%;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}
.header-searchForm button {
  width: 56px;
  height: 48px;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}


/* Trending */
.trendingPreview-header, .liked-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.trendingPreview-btn {
  border-radius: 8px;
  height: 32px;
  width: 120px;
}

.trendingPreview-movieList, .liked-movieList {
  overflow-x: scroll;
  overflow-y: hidden;
  white-space: nowrap;
  height: 241px;
  padding-left: 24px;
  padding-bottom: 16px;
}

.trendingPreview-movieList .movie-container, .liked-movieList .movie-container {
  display: inline-block;
  margin-right: 8px;
}

.trendingPreview-movieList .movie-container .movie-img, .liked-movieList .movie-container .movie-img {
  height: 225px;
  min-height: 225px;
  max-height: 225px;
  width: 150px;
  min-width: 150px;
  max-width: 150px;
}


/* Categories */
.header-title-languajes {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.category-container {
  width: 45%;
}

.category-title {
  margin-bottom: 8px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.category-title::before {
  content: '••••';
  color: transparent;
  /* TODO: cambiar color por ID de la categoría */
  background-color: var(--idColor);
  border-radius: 8px;
  margin-right: 8px;
  width: 8px;
  height: 8px;
}
#id28 { --idColor: var(--yellow); }
#id12 { --idColor: var(--red); }
#id16 { --idColor: var(--green); }
#id35 { --idColor: var(--lightBlue); }
#id80 { --idColor: var(--darkBlue); }
#id99 { --idColor: var(--purple-dark-1); }
#id18 { --idColor: var(--purple-medium-1); }
#id10751 { --idColor: var(--yellow); }
#id14 { --idColor: var(--red); }
#id36 { --idColor: var(--green); }
#id27 { --idColor: var(--lightBlue); }
#id10402 { --idColor: var(--darkBlue); }
#id9648 { --idColor: var(--purple-dark-1); }
#id10749 { --idColor: var(--purple-medium-1); }
#id878 { --idColor: var(--yellow); }
#id10770 { --idColor: var(--red); }
#id53 { --idColor: var(--green); }
#id10752 { --idColor: var(--lightBlue); }
#id37 { --idColor: var(--darkBlue); }


/* Generic List (search, trending & category) */
.genericList-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 32px 24px;
  gap: 12px;
}

.genericList-container .movie-container {
  display: inline-block;
  width: 47.5%;
}

.genericList-container .movie-img {
  width: 100%;
}


/* Movie Detail */
.movieDetail-container {
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  padding: 32px 24px;
  margin-top: 403px;
  z-index: 1;
  position: absolute;
  background-color: var(--purple-dark-2);
}

.movieDetail-title {
  display: inline-block;
  width: 80%;
  margin: 0 0 16px 0;
  padding: 0;
}

.movieDetail-score {
  display: inline-block;
  text-align: right;
  width: 18%;
  font-weight: var(--font-weight-title2);
}
.movieDetail-score::before {
  content: '★';
  color: var(--yellow);
  padding-right: 4px;
}

.movieDetail-description {
  margin: 0 0 24px 0;
}

.relatedMovies-container {
  margin-top: 24px;
  height: 216px;
}

.relatedMovies-title {
  margin-bottom: 16px;
}

.relatedMovies-scrollContainer {
  position: absolute;
  overflow-x: scroll;
  overflow-y: hidden;
  white-space: nowrap;
  width: calc(100vw - 24px);
  padding-bottom: 16px;
}

.relatedMovies-scrollContainer .movie-container {
  display: inline-block;
  margin-right: 8px;
}

.relatedMovies-scrollContainer .movie-img {
  width: 125px;
  min-width: 125px;
  max-width: 125px;
  height: 187.5px;
  min-height: 187.5px;
  max-height: 187.5px;
}
  

/* Footer */
footer {
    /* background-color: var(--purple-dark-1); */
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px -2px 5px var(--purple-light-2);  
}
li {
    list-style: none;
}
footer ul {
    display: flex;
    justify-content: space-between;
    padding:0;
    margin: 0;
    align-items: center;
    height: 60px;
}

.social-media li img {
    width: 40px;
    margin:0 10px;
    filter: invert(1);
}

.social-media li img:hover {
    cursor: pointer;
    filter: invert(50%);

}

/* Navigation */
.inactive {
  display: none;
}

/* Animations */
@keyframes loading-skeleton {
  0%, 100% {
    opacity: 100%;
  }
  50% {
    opacity: 0%;
  }
  
}

@media (min-width: 640px){
  body {
    max-width: 800px;
    margin: 0 auto;
  }
  .categoriesPreview-list, .categories-list{
    justify-items: center;
  }
}

.movieDetail-container, .header-container--long, .relatedMovies-scrollContainer {
  width: 100%;
  max-width: 800px;
}

.header-container--long {
  height: 700px;
}

.movieDetail-container {
  margin-top: 600px;
}
