@charset "utf-8";

/* Final Project - TVCharts
*/

body {
	padding: 0;
	margin: 0;
	font-family: "Baloo Bhai 2", sans-serif;
    color: #DACBB6;
	background: #1A1A1A;
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
}

main {
    flex: 1;           
}


.main-home {
  margin: 70px 0;
  
}

.divider {
    width: 750px;
    height: 4px;
    background: #5E7381;
    margin: 30px auto; 
    border-radius: 2px;
    align-items: center;
    justify-content: center;
}


/*images
*/

.col img {
  max-width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.col img:hover {
  transform: scale(1.05);
  filter: brightness(0.6);
}

.center-wrapper {
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;  
  align-items: center;   
  padding: 100px 0;
  animation: floatOnce 0.5s ease-out forwards;
  position: relative;
  z-index: 1; 

}

.center-wrapper img {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
}


@keyframes floatOnce {
   0% {
    transform: translateY(20px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}


/*About Page
*/

.about-content {
  position: relative;
  z-index: 10;

    width: 80%;
    max-width: 800px;
  display: flex;
  flex-direction: column;
  max-width: 800px;
  margin: 0 auto;

  font-size: 1.3em;
  color: #DACBB6;
  font-family: "Baloo Bhai 2", sans-serif;
  
    
    gap: 20px;
    padding: 20px;
    text-align: left;
}

.about-title {
    font-size: 2.2em;
    margin: 10px 0 5px 0;
    font-family: "Anton", sans-serif;
    color: #5E7381;
    text-align: left;
}

.faq {
  margin: 10px 0 10px 0;
  max-width: 800px;
  width: 100%;
}

.faq-question {
  border-radius: 10px;
  padding: 10px 20px;
  color: #EAC8A6;
  background-color: #5E7381;
  align-items: left;
  transition: transform 0.3s ease;

  display: flex;
  align-items: center;
  justify-content: left;
}

.faq-question:hover {
  color: #5E7381;
  background-color: #EAC8A6;
  transform: scale(1.05);
}


.faq p{
    margin: 0;
}

.faq-answer {
    display: none; 
    background-color: #EAC8A6;
    color: #5E7381;
    padding: 20px;
    border-radius: 15px;
    margin-top: 10px;
}

.faq-answer.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.text-button {
    display: flex;         /* Puts items side-by-side */
    align-items: center;   /* Keeps text and button vertically aligned in the middle */
    gap: 20px;             /* Adds space between the text and the button */
    margin-bottom: 20px;
    font-family: "Antonio", sans-serif;   
}

.text-button p {
    margin: 0;             /* Removes default paragraph margins that might break alignment */
}

.button-btn {
    padding: 10px 20px;
    background-color: #5E7381;
    color: #EAC8A6;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.2em;
    text-decoration: none; 
    
}

.about-content a:link {
    color: #EAC8A6 !important; 
}

.about-content a:visited {
    color: #283137 !important; 
}



/* Hover effect */


/* Login page
*/

.login-content {
  position: relative;
  font-size: 1.65em;
  color: #5E7381;
  font-family: "Antonio", sans-serif;
  display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 50px;
    width: 500px;
    text-align: center;
}


.login-btn {
  margin-top: 10px;
  padding: 15px 15px;
  background-color: #5E7381;
  color: #EAC8A6;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  width: 250px;
}

.login-btn:hover {
  background-color: #EAC8A6;
  color: #5E7381;
}

.button-area {
  display: flex;
  flex-direction: column;
  align-items: center; 
}
/*Forms
*/

.auth-form {
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;

  margin-top: 10px;
  width: 100%;
  text-align: left;
  font-size: 0.7em;

  display: none;
  place-items: center;
}

/* When shown */
.auth-form.show { 
  opacity: 1;
  transform: translateY(0);
  display: block;
}

.auth-form .mb-3 {
  margin-bottom: 0.2rem;
}

.form-box {
  background-color: #5E7381;
  padding: 25px;
  border-radius: 15px;

  width: 100%;
  max-width: 400px;
  margin: 20px auto;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
}

/* Form text */
.form-box label {
  color: #1A1A1A;
  display: block;
  margin-bottom: 8px;
}

/* Inputs */
.form-box input {
  background-color: #DACBB6;
}



/*Navigation
*/

/* Navbar background */
.custom-navbar {
  background-color: #DACBB6 !important; /* beige */
  padding: 10px 30px;
  font-family: "Climate Crisis", sans-serif;
  font-size: 1.1em;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

/* Logo sizing */
.navbar-brand img {
  height: 70px;
  padding-bottom: 5px;
}

/* Search bar container */
form.d-flex {
  margin: 0 130px;
}

/* Search input */
form.d-flex input {
  border-radius: 30px;
  padding: 10px 20px;
  background-color: #5E7381;
  color: #1A1A1A;
  border: none;
}

form.d-flex input::placeholder {
  color: #1A1A1A;
}

/* Search button */
form.d-flex button {
  border-radius: 30px;
  background-color: #5E7381;
  color: #1A1A1A;
  border: none;
}

/* Navigation links styled as pills */
.navbar-nav .nav-link {
  
  margin-left: 10px;
  margin-right: 10px;
  padding: 10px 20px;
  border-radius: 20px;
  color: #1A1A1A !important;
  font-weight: 300;
}

/* Hover effect */
.navbar-nav .nav-link:hover {
  color: #DACBB6 !important;
  background-color: rgba(94, 115, 129, 1);
}


/* Series Page
*/

/* Series Page Container */
.series-details {
    padding: 60px 0;
    color: #EAC8A6; 
    font-size: 1.3em;
    margin: 0 auto;
}

/* The Meta Data (Year/Time) */
.meta-data {
    font-family: "Baloo Bhai 2", sans-serif;
    font-size: 1.3em;
    letter-spacing: 1px;
    font-weight: 400;
}

/* Genre Pill Styling */
.genre-pill {
    background-color: #5E7381;
    color: #EAC8A6;
    padding: 10px 20px;
    border-radius: 20px;
    font-family: "Antonio", sans-serif;
    font-size: 1.2em;
    text-transform: capitalize;
    transition: transform 0.3s ease;
}

.genre-pill:hover {
    color: #5E7381;
    background-color: #EAC8A6;
}

/* Links within the info pane */
.info-pane a {
    color: #EAC8A6;
    text-decoration: underline;
}

.info-pane a:hover {
    color: #5E7381;
}

.info-pane a:visited {
    color: #5E7381
}

.series-title {
    color:#5E7381;
    font-size: 1.5em;
}

.img-poster {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    height: 600px;
    width: auto;
    margin: 20px 20px;
    transition: transform 0.3s ease;
}

.img-poster:hover {
    filter: brightness(0.6);
    transform: scale(1.05);
}

.poster-title {
    font-size: 1.9em;
    margin-top: 10px;
    color: #EAC8A6;
    text-align: center;
    font-weight: 800;
}

/* Review action buttons
*/
.stat-box {
    font-size:1.2em;
    text-align: center;
    margin-top: 25px;
    margin-bottom: 10px;
}


.stat-box p {
    margin: 5px 0;
}

.high-rated {
    color: #658761;
    font-weight: bold;
    font-size: 1.5em;
}

.low-rated {
    color: #ac5045;
    font-weight: bold;
    font-size: 1.5em;
}

.action-btn {
    width: 70%;
    margin-bottom: 15px;
    background-color: #5E7381; 
    color: #EAC8A6;
    border-radius: 10px;
    border: none;
    padding: 10px 20px;
    font-family: "Antonio", sans-serif;
    transition: transform 0.3s ease;
    font-size: 1.5em;
    text-decoration: none !important; 
    display: inline-block;     
    text-align: center;
    line-height: normal;
}


.action-btn:visited {
    text-decoration: none;
    color: #EAC8A6;
}


.action-btn:hover {
  color: #5E7381;
  background-color: #EAC8A6;
  transform: scale(1.05);
}

.action-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
    max-width: 300px; /* Prevents buttons from becoming too wide */
}


/* Episode Ratings Grid
*/
.rating-container { 
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    width: fit-content;

}

.rating-section {
    justify-content: center;
    margin-bottom: 100px;
    padding: 50px 0;
}

.rating-section.row {
    max-width: 1100px;
    width: 100%;
    column-gap: 200px;
}
.rating-row {
    display: flex;          
    align-items: center;    
    width: auto;
    margin-bottom: 20px;
}

.rating-row.header-row {
    color: #EAC8A6;
    font-weight: bold;
    font-size: 1.3em;
    
}

.label-column {
    width: 120px; 
    text-align: right;
    padding-right: 20px;
    font-family: "Baloo Bhai 2", sans-serif;
    color: #EAC8A6;
    font-size: 1.6em;
}

.score-column {
    width: 90px; /* Width of each rating column */
    display: flex;
    justify-content: center;

    font-size: 1.5em;
    font-weight: bold;
}


.score-column:first-of-type::before {
    display: none;
}

.header-row {
    border-bottom: 3px solid #5E7381; /* Horizontal line under Season nums */
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.score-box {
    display: flex;
    align-items: center;    /* Centers text inside the box vertically */
    justify-content: center; /* Centers text inside the box horizontally */
    width: 65px;
    height: 55px;
    border-radius: 10px;
    font-family: "Antonio", sans-serif;
    
}

.score-box.high { background-color: #658761; color: #DACBB6; }
.score-box.middle { background-color: #DFA05D; color: #DACBB6; } 
.score-box.low { background-color: #ac5045; color: #DACBB6; } 

.score-box.empty { 
    border: 3px solid #DACBB6; 
    color: #DACBB6; 
    background-color: transparent;
}

.ep-num {
    color: #DACBB6;
    border-right: 2px solid #5E7381;
}

.score-box:hover {
    background-color: transparent;
    border: 3px solid #DACBB6;
    transform: scale(1.05);
}

.ep-details{
    display: block; 
    color: #1A1A1A;
    padding: 20px;
    border-radius: 10px;
    margin: 10px 10px;
}

.ep-details.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.rating-wrapper {
  position: relative;
  display: inline-block;
}

.ep-title {
    font-size: 1.5em;
    margin-bottom: 8px;
    color: #5E7381;
    font-family: "Anton", sans-serif;
}

.ep-title a{
    color: #5E7381;
    text-decoration: underline;
}

.ep-title a:hover{
    color: rgba(94, 115, 129, 0.65);
}

.ep-title a:visited{
    color: #7a96a8;
}

.ep-date {
    font-weight: bold;
    margin-bottom: 8px;
    color: #5E7381;
    font-size: 1.3em;
    font-family: "Baloo Bhai 2", sans-serif;
}


.rating-popup {
  position: absolute;
  top: 110%;
  left: 0;
  background: #DACBB6;
  border: none;
  padding: 12px;
  border-radius: 8px;
  z-index: 100;
  opacity: 0;
  transform: translateY(-6px);
  transition: 0.15s ease;
  width: 500px;
  text-align: center;
  color: #1A1A1A;
  font-family: "Baloo Bhai 2", sans-serif;
  font-size: 1.1em;
}

.rating-popup p {
  margin: 0 auto;
}

.rating-popup:not(.hidden) {
  opacity: 1;
  transform: translateY(0);
}

.hidden {
  display: none;
}


.ep-details {
    display: block; 
    color: #1A1A1A;
    padding: 20px;
    border-radius: 10px;
    margin: 10px 10px;
}

.ep-details.show {
    display: block;
    animation: fadeIn 0.3s ease;
}


/*Genre
*/

.genre-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;  
  align-items: center;   
  padding: 50px 40px;
  animation: floatOnce 0.5s ease-out forwards;
  position: relative;
  z-index: 1;
  gap: 30px;
  background-color: #333333;
  border: none;
  border-radius: 15px;
  max-width: 1100px;   
  margin: 40px auto; 
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);

}

@media (min-width: 1400px) {
  .genre-wrapper {
    max-width: 1200px;
  }
}



.genre-title {
    font-size: 3em;
    font-family: "Anton", sans-serif;
    color: #5E7381;
    text-align: center;
}

.genre-row {
  display: flex;
  justify-content: flex-start;
   padding-left: 50px;
   padding-bottom: 20px;
}


/* Footer
*/

.site-footer {
  background-color: #DACBB6;            
  width: 100%; 
  text-align: center;
  padding: 10px 0;
}

.site-footer p {
    color: #1A1A1A;
    line-height: 5px; 
    margin: 0;  
    font-size: 1em;  
    font-family: "Baloo Bhai 2", sans-serif !important;       
}

.site-footer a {
    color: #5E7381;
    text-decoration: underline;
}

.site-footer a:hover {
    color: rgba(94, 115, 129, 0.65);
}

