* {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
   color: whitesmoke;
}
.width-100 {
   width: 100%;
   text-align: center;
}
body {
   background-color: #101d24;
   font-family: "Poppins", sans-serif;
   min-height: 100vh;
   width: 100%;
   display: flex;
}
/*! ---------- Sidebar Styles ----------  */
#sidebar {
   width: 5.25rem;
   height: 100vh;
   background-color: hsl(196, 70%, 10%);
   padding: 0rem 0.5rem;
   display: flex;
   flex-direction: column;
   gap: 1rem;
   overflow: hidden;
   transition: width 0.4s ease-in-out;
   position: sticky;
   top: 0;
}
#sidebar:hover {
   width: 15rem;
}
#logo {
   display: flex;
   align-items: center;
   gap: 1.25rem;
   margin: 0.5rem 0;
   padding: 0.25rem 0rem;
   overflow: hidden;
   flex-shrink: 0;
}
#logo h1 {
   font-size: 1rem;
   font-weight: 400;
   color: #ffffff;
}
#sidebar ul {
   list-style: none;
   cursor: pointer;
   display: flex;
   flex-direction: column;
   gap: 1.25rem;
   margin-top: 1rem;
}

#sidebar button.sidebar-btn {
   all: unset;
   text-align: left;
   font-size: 1rem;
   background-color: hsl(196, 70%, 15%);
   display: flex;
   align-items: center;
   gap: 1.25rem;
   border-radius: 0.5rem;
   overflow: hidden;
   cursor: pointer;
   width: 100%;
   padding: 0.25rem 0;
}
#sidebar button.sidebar-btn p {
   white-space: nowrap;
   font-size: 1rem;
}
#sidebar lord-icon {
   flex-shrink: 0;
   padding-left: 0.5rem;
}
#sidebar button.sidebar-btn:hover,
#sidebar button.sidebar-btn.active {
   background-color: hsl(196, 70%, 20%);
}
#sidebar button:disabled {
   opacity: 0.5;
   cursor: not-allowed;
}
/*! ---------- Main Content Styles (Header + Main hero section) ----------  */
#content {
   width: 100%;
   display: flex;
   flex-direction: column;
   transition: 0.4s ease-in-out;
}
header {
   width: 100%;
   height: fit-content;
   background: linear-gradient(to bottom, hsl(196, 70%, 15%), hsla(196, 71%, 15%, 0.75));
   display: flex;
   justify-content: space-between;
   align-items: center;
   padding: 0.5rem 3rem;
   position: sticky;
   top: 0;
   z-index: 10;
}
/*! ---------- Left side of header --> Search Bar Styles ----------  */
#search {
   display: flex;
   overflow: hidden;
   align-items: center;
   gap: 1.5rem;
   background-color: hsl(196, 70%, 20%);
   padding: 0.5rem 1rem;
   border-radius: 0.5rem;
   width: 3.5rem;
   transition: width 0.4s ease-in-out;
}
#search:hover,
#search:focus-within,
#search:focus {
   width: 25rem;
}
#search button {
   background-color: transparent;
   border: none;
   outline: none;
   cursor: pointer;
}
#search input {
   background-color: transparent;
   border: none;
   outline: none;
   color: #ffffff;
   font-size: 1rem;
   width: 100%;
}
#search input::placeholder {
   color: #cccccc;
}
/*! ---------- Right side of header --> User Profile Styles ----------  */
#user-profile {
   background-color: hsl(196, 70%, 20%);
   padding: 0.25rem 0.5rem;
   border-radius: 50%;
}

/*! ---------- Everything under the header ----------  */

main {
   padding: 1rem;
   display: flex;
   flex-wrap: wrap;
   gap: 1rem;
   justify-content: center;
}
main h2 {
   margin: 2rem 0;
   font-weight: 400;
   display: flex;
   gap: 1rem;
   align-items: center;
   justify-content: center;
   text-align: center;
}
main h3 {
   text-align: center;
   font-weight: 400;
   font-size: 1.2rem;
   margin-bottom: 1rem;
   width: 100%;
}
.dashboard-intro {
   display: flex;
   flex-wrap: wrap;
   gap: 1rem;
   justify-content: center;
   margin-top: 1rem;
}

.dashboard-card {
   background-color: hsl(196, 70%, 15%);
   border-radius: 0.5rem;
   box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
   padding: 1rem;
   width: 11rem;
   text-align: center;
   transition: transform 0.2s ease;
}

.dashboard-card:hover {
   transform: scale(1.05);
}

.dashboard-card .icon {
   font-size: 2rem;
   margin-bottom: 0.5rem;
}

.dashboard-card p {
   font-size: 0.85rem;
   color: #ccc;
}
.dashboard-card lord-icon {
   margin-bottom: 1rem;
}

/*! ---------- Show Card Styles     START ----------  */

.show-card {
   display: flex;
   flex-direction: column;
   background-color: hsl(196, 70%, 15%);
   border-radius: 0.5rem;
   box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
   overflow: hidden;
   width: 14rem;
   transition: transform 0.2s ease;
   cursor: pointer;
   flex-shrink: 0;
   margin-bottom: 1rem;
}

.show-card:hover {
   transform: scale(1.03);
}
.show-card img {
   width: 100%;
   height: auto;
   display: block;
   flex-grow: 0;
}
.card-details {
   padding: 1rem;
   display: flex;
   flex-direction: column;
   justify-content: space-between;
   gap: 0.5rem;
   flex-grow: 1;
}

.card-details h2 {
   font-size: 1rem;
   font-weight: 500;
   color: #e4e4e4;
   margin-bottom: 0.5rem;
   display: inline;
}

.card-details p {
   font-size: 0.8rem;
   color: #ccc;
   display: flex;
   justify-content: flex-start;
   gap: 0.25rem;
}
.card-header {
   flex-grow: 1;
}

.card-buttons {
   margin-top: 1rem;
   display: flex;
   flex-direction: column;
   flex-wrap: wrap;
   gap: 0.5rem;
}

.card-buttons button {
   padding: 0.4rem 0.8rem;
   border: none;
   border-radius: 4px;
   cursor: pointer;
   font-size: 1rem;
}

.watch-later-btn {
   background-color: #b91d41;
   color: #ffffff;
}
.watch-later-btn-added {
   background-color: #1ed760;
   color: #ffffff;
}
.fav-btn-yes {
   background-color: #1ed760;
   color: #ffffff;
}
.fav-btn-no {
   background-color: #b91d41;
   color: #ffffff;
}
/*! ---------- Show card Styles    END ----------  */
