/* Importing Open Sans from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
  /* Accent Colors */
  --primary-color: #FFC509;
  --primary-hover: #e6b108;

  /* Backgrounds */
  --bg-color: #1C1C1E;
  --bg-secondary: #2C2C2E;
  --bg-hover: #3A3A3C;

  /* Text Colors */
  --text-color: #E5E5E7;
  --text-muted: #A0A0A3;
  --text-dark: #202020;

  /* Badges */
  --genre-badge: #3A3A3C;

  /* Borders / Lines */
  --border-color: #3A3A3A;

  /* Delete Button */
  --delete-btn: #E53935;
  --delete-btn-hover: #C62828;

  /* Status Badges */
  --status-notwatched-bg: #3A3A3C;
  --status-notwatched-text: #E5E5E7;
  --status-ongoing-bg: #2962FF;
  --status-ongoing-text: #FFFFFF;
  --status-finished-bg: #43A047;
  --status-finished-text: #FFFFFF;
}


body{
    font-family: "Open Sans", sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
}

li{
    list-style: none;
}

h1, h2, h3{
    font-family: "Poppins", sans-serif;
}

.input-form{
    position: relative;
    max-width: 450px;
    width: 90%;
    height: 40px;
    display: flex;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
}

.user-input{
    background-color: var(--bg-secondary);
    color: var(--text-color);
    width: 100%;
    height: 100%;
    border-radius: 50px;
    border: none;
    padding-left: 20px;
}

.user-input:focus{
    outline: none;
}

.search-btn{
    position: absolute;
    top: 13px;
    right: 16px;
    color: var(--text-muted);
}

.search-shows-wrapper{
    width: 950px;
    max-height: 380px;
    margin-top: 20px;
    overflow-y: scroll;
}

.search-shows-wrapper::-webkit-scrollbar{
    display: none;
}

.watch-list-container{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.show-list,
.watch-list-wrapper{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 50px;
}

.tv-list, .watch-list{
    background-color: var(--bg-secondary);
    border-radius: 10px;
    height: 200px;
    width: 400px;
    display: flex;
    padding: 0px 30px;
    margin-left: -40px;
    align-items: center;
    justify-content: space-between;
}

.tv-list.watchlist-added{
    width: 600px;
}

.search-shows-wrapper .content-div{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 250px;
    max-height: 200px;
}

.watch-list-wrapper .content-div{
    display: flex;
    align-items: center;
    width: 420px;
    max-height: 200px;
}

.action-btn-div{
    width: 200px;
    display: flex;
    justify-content: end;
    margin-right: 20px;
}

.tv-img{
    height: 180px;
    width: 120px;
    border-radius: 3px;
}

.text-wrapper{
    width: 220px;
}

.text-wrapper h3{
    max-width: 200px;
}

.genre-wrapper{
    display: flex;
    flex-wrap: wrap;
}

.tv-genre{
    background-color: var(--genre-badge);
    color: var(--text-color);
    font-size: 0.7em;
    width: 85px;
    height: 22px;
    border-radius: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 5px;
}

.tv-genre:nth-child(n+3){
    margin-top: -7px;
}

.status-badge{
    background-color: var(--status-notwatched-bg);
    color: var(--status-notwatched-text);
    font-size: 0.7em;
    width: 95px;
    height: 22px;
    border-radius: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 5px;
}

.add-btn{
    cursor: pointer;
    color: var(--primary-color);
    text-align: center;
    transition: 0.3s ease-in-out;
}


.add-btn:hover{
    color: var(--text-color);
}

.show-added-tick{
    color: var(--text-muted);
    text-align: center;
}

.my-watchlist{
    display: none;
}

.no-show-added{
    display: block;
    color: var(--text-muted);
    font-size: smaller;
    margin-top: 200px;
}

.delete-btn{
    color: var(--delete-btn);
    transition: 0.3s ease-in-out;
    cursor: pointer;
    margin-left: 20px;
    margin-right: -10px;
}

.delete-btn:hover{
    color: var(--delete-btn-hover);
}

.edit-btn{
    color: var(--text-color);
    transition: 0.3s ease-in-out;
    cursor: pointer;
}

.edit-btn:hover{
    color: var(--text-muted);
}

.modal{
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
}

.modal-content{
    background-color: var(--bg-secondary);
    color: var(--text-color);
    margin: 30% auto;
    padding: 20px;
    border-radius: 7px;
    width: 80%;
    height: 160px;
}

.modal-content p{
    font-weight: bold;
}

.close{
    color: var(--text-color);
    font-size: 28px;
    float: right;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

.close:hover{
    color: var(--text-muted);
}

.confirm-btn{
    background-color: var(--primary-color);
    color: var(--text-dark);
    border: none;
    width: 80px;
    height: 30px;
    border-radius: 5px;
    float: right;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

.confirm-btn:hover{
    background: var(--primary-hover);
}

.splash {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  z-index: 9999;
  transition: opacity 1s ease, visibility 1s ease;
}

.splash.hidden {
  opacity: 0;
  visibility: hidden;
}

.logo {
  animation: logoSlide 1.6s ease-in-out infinite alternate;
}

/* Logo breathing up-down movement */
@keyframes logoSlide {
  from {
    opacity: 0.7;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(-10px);
  }
}

.splash.hidden .logo {
  animation: fadeUp 1s forwards;
}

@keyframes fadeUp {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-50px);
  }
}

body > *:not(.splash) {
  opacity: 0;
  transition: opacity 1s ease;
}

body.loaded > *:not(.splash) {
  opacity: 1;
}

/* Max width 992px (Small Laptop) */
@media screen and (max-width: 992px){
    .search-shows-wrapper{
        width: 500px;
    }

    .logo {
        width: 400px;
        animation: logoSlide 1.6s ease-in-out infinite alternate;
    }
}

/* Max width 768px (Tablet & Mobile) */
@media screen and (max-width: 768px){
    .search-shows-wrapper{
        width: 330px;
    }

    .show-list{
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: center;
        gap: 0px;
    }

    .watch-list-wrapper{
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: center;
        gap: 0px;
    }

    .tv-list,
    .tv-list.watchlist-added{
        background-color: var(--bg-secondary);
        border-radius: 10px;
        width: 250px;
        display: flex;
        flex-direction: column;
        padding: 5px 30px;
        margin-bottom: 10px;
        margin-left: -40px;
        align-items: center;
        justify-content: space-between;
    }

    .tv-list{
        height: 330px;
    }

    .tv-list.watchlist-added{
        height: 370px;
    }

    .search-shows-wrapper .content-div,
    .watch-list-wrapper .content-div{
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 250px;
        max-height: 200px;
    }

    .action-btn-div{
        width: 0px;
        display: flex;
        justify-content: center;
        margin-right: 25px;
    }   

    .tv-img{
        height: 180px;
        border-radius: 3px;
        margin-top: 10px;
    }

    .text-wrapper{
        width: 200px;
    }

    .text-wrapper h3{
        max-width: 180px;
    }

    .watch-list-container .text-wrapper h3{
        margin-bottom: -10px;
    }

    .logo {
        width: 250px;
        animation: logoSlide 1.6s ease-in-out infinite alternate;
    }

}