@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

:root {
  --bg-color: #f2f2f2;
  --primary-color: #efbb23;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  list-style: none;
  border: none;
}

html,
body {
  min-height: 10vh;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--bg-color);
  font-size: 14px;
}

.wrapper {
  margin: 0 auto;
  max-width: 960px;
  width: 100%;
}

/* ### HEADER */
header {
  padding: 20px 0;
  background: linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.6) 0%,
      rgba(0, 212, 255, 0) 75%
    ),
    url('./assets/capa-madmax2.jpg') top/cover no-repeat fixed;
  height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

header .wrapper .menu {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  align-items: center;
}

.menu nav ul {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: center;
  column-gap: 48px;
}

header .wrapper .menu nav a {
  color: white;
  text-transform: uppercase;
  transition: all 0.2s ease-in-out;
}

header .wrapper .menu nav a:hover {
  color: var(--primary-color);
}

.menu .user {
  color: white;
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 50px;
}

.menu .user img {
  border-radius: 100%;
  height: 100%;
  margin-right: 8px;
}

header .movie-details {
  color: white;
  font-size: 2.5em;
}

.movie-details h1 {
  text-transform: uppercase;
}

.movie-genres {
  font-size: 12px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.movie-genres ul {
  display: grid;
  grid-template: 1fr / repeat(3, auto);
  justify-content: start;
  column-gap: 16px;
}

.movie-genres li {
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.movie-genres li:hover {
  color: var(--primary-color);
}

.movie-details a.btn-watch-trailer {
  background-color: var(--primary-color);
  font-size: 1rem;
  padding: 16px 40px;
  border-radius: 35px;
  color: #333;
  display: inline-block;
}

.movie-details a.btn-watch-trailer:hover {
  background-color: #daa60d;
}

.movie-details .movie-date {
  margin: 16px 0;
  font-size: 14px;
  line-height: 32px;
}

.movie-details .movie-date > p:last-child {
  color: #bc9a1d;
}

/* ### CONTEUDO */
section.movie-list-wrapper {
  margin-top: 16px;
}

.movie-list-wrapper .menu-movie-list a {
  text-transform: uppercase;
  color: #e4bb23;
  font-weight: bold;
}

.movie-list-wrapper .menu-movie-list nav ul {
  display: grid;
  grid-template: 30px / repeat(5, auto);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  justify-content: space-evenly;
  padding: 4px 104px 0;
}

.movie-list-wrapper .menu-movie-list li {
  cursor: pointer;
}

.movie-list-wrapper .menu-movie-list li:hover {
  border-bottom: 1px solid #e4bb23;
}

/* ### CARDS ### */
.movie-card-container {
  padding: 24px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.movie-card {
  display: flex;
  flex-direction: column;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin: 8px 0;
}

.movie-poster {
  width: 230px;
  height: 340px;
  background-position: center;
  background-size: cover;
}

.movie-trailer {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.2s ease-in-out;
  background-color: rgba(0, 0, 0, 0.5);
  text-align: center;
}

.movie-trailer h2 {
  text-transform: uppercase;
  font-size: 1.5rem;
  color: #e4bb23;
  margin-bottom: 8px;
}

.movie-trailer i {
  color: white;
  font-size: 3rem;
  cursor: pointer;
}

.movie-card:hover .movie-trailer {
  opacity: 1;
}

.movie-trailer i:hover {
  color: #e4bb23;
}

.movie-card-details {
  padding: 16px;
}

.movie-card-details h3 {
  text-transform: uppercase;
  font-size: 1em;
  font-weight: bold;
  margin-bottom: 4px;
}

.movie-card-details p {
  font-size: 0.8rem;
  color: #e4bb23;
  margin-bottom: 8px;
}

.movie-score {
  font-weight: bold;
  font-size: 1.5em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.movie-score i {
  color: #ccc;
  cursor: pointer;
}

.movie-score i:hover {
  color: #f56040;
}

/* ### FOOTER ### */
footer {
  background-color: white;
}

footer .footer-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.footer-wrapper nav ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.footer-wrapper a {
  color: #bababa;
  transition: all 0.2s ease-in-out;
}

.footer-wrapper a.icon-twitter:hover {
  color: #00a1dd;
}

.footer-wrapper a.icon-facebook:hover {
  color: #4267b2;
}

.footer-wrapper a.icon-instagram:hover {
  color: #f56040;
}

.footer-wrapper i {
  font-size: 2em;
}
