*,
*::before,
*::after {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    
}

body {
    background-color: black;
}

/* header */

header {
    height: 10vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: black;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 10px;
}

.left-nav, .right-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.left-nav {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 0 0 50%;
}



.right-nav {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 0 0 50%;
    justify-content: flex-end;
}

.right-nav a {
    text-decoration: none;
}

header a, header input, header button {
    margin: 0 10px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: stretch;
    }

    .left-nav, .right-nav {
        justify-content: center;
        width: 100%;
        flex-wrap: wrap;
    }

    header input, header button {
        width: 100%;
        margin-top: 5px;
    }

    .psdis, .log-in {
        display: none; /* hide extra links on small screens */
    }
}


.logo {
    height: 35px;
    width: 35px;
    border-radius: 50%;
}

header input {
    flex: 1;               /* takes all space between icons */
    min-width: 100px;      /* don’t shrink too small */
    height: 5vh;
    border-radius: 20px;
    border: 0;
    padding: 0 15px;
    color: white;
    background-color: black;
}

header input:focus {
    outline: 2px solid white; /* Spotify green */
}



.psdis {
    color: gray;
}

header button {
    background-color: white;
    color: black;
    border: 0;
    border-radius: 20px;
    height: 5vh;
    padding: 0 15px;
    cursor: pointer;
}

/*font*/
.font {
  font-family: "Alan Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

/* main */

main {
    display: flex;
    height: calc(100vh - 10vh - 10vh); /* subtract header+footer heights */
    margin-top: 10vh;   /* push below header */
    margin-bottom: 10vh; /* avoid footer overlap */
    overflow: hidden; /* prevents whole main from scrolling */
}

/* later try to make this resizie like spotify */
.left-main {
    width: 400px;       /* Spotify-style fixed width */
    flex: 0 0 400px;    /* fix the flex-basis */
    flex-shrink: 0;     /* 🚫 don't shrink on small screens */
    display: flex;
    flex-direction: column;
    background-color: black;
    overflow: hidden; /* stops left from scrolling */
}

.left-main-top {
    background-color: black;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    position: relative;
}

.left-main-bottom {
    background-color: black;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    border-top: 1px solid #222;
    flex: 1;
}

/* legt main bottom */

.left-main-bottom-top, .left-main-bottom-middle, .left-main-bottom-bottom {
    display: flex;
    gap: 10px;
    flex: wrap;
}

.left-main-bottom a {
    text-decoration: none;
    color: gray;
    font-size: 12px;
}

.left-main-bottom button {
    height: 5vh;
    width: 100px;
    border-radius: 20px;
    border: 1px solid white;
    color: white;
    background-color: black;
    cursor: pointer;
    margin: 20px 20px 20px 0;
}

.left-main-bottom-bottom a{
  color: white;
}

.left-main-bottom-bottom a:hover{
  text-decoration: underline;
}

/* left main top */

.library-plus p {
    color: white;
    font-size: 18px;
}

.library-plus {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: black;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    
}

/* play pod */

.play-pod {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 40px 10px;
    overflow-y: auto;
}

.playlist, .podcast {
    flex: 0 0 25%;   /* each will take 25% of .play-pod height */
    min-height: 120px; /* prevents collapsing on smaller screens */
    border-radius: 10px;
    background-color: gray;
    padding: 10px;
}

.playlist p,.podcast p {
    padding: 2px;
}

.play-pod button {
    cursor: pointer;
}

.left-main1-text {
    color: white;
    font-size: 15px;
}

.left-main2-text {
    color: white;
    font-size: 12px;
}

.playlist button, .podcast button {
    background-color: white;
    color: black;
    font-weight: bold;
    border: 0;
    border-radius: 20px;
    height: 30px;
    text-align: center;
    padding: 0 10px 0 10px ;
    margin-top: 20px;
}

/* scroll bar */

/* For Chrome, Edge, Safari */
.left-main-top::-webkit-scrollbar,
.play-pod::-webkit-scrollbar, 
.right-main::-webkit-scrollbar {
  width: 10px;              /* thin scrollbar */
}

.left-main-top::-webkit-scrollbar-track,
.play-pod::-webkit-scrollbar-track, 
.right-main::-webkit-scrollbar-track  {
  background: transparent;   /* no background */
}

.left-main-top::-webkit-scrollbar-thumb,
.play-pod::-webkit-scrollbar-thumb,
.right-main::-webkit-scrollbar-thumb {
  background-color: #4a4a4a;  /* dark gray like Spotify */
  border-radius: 20px;        /* rounded edges */
  border: 2px solid transparent; /* creates padding effect */
  background-clip: content-box;
}

.left-main-top::-webkit-scrollbar-thumb:hover,
.play-pod::-webkit-scrollbar-thumb:hover,
.right-main::-webkit-scrollbar-thumb:hover {
  background-color: #7a7a7a;  /* lighter on hover */
}

/* For Firefox */
.left-main-top,
.play-pod {
  scrollbar-width: auto;           /* makes it thinner */
  scrollbar-color: #4a4a4a black;  /* thumb color | track color */
}

/* right main */

.right-main {
    flex: 1;
    padding: 10px;
    overflow-y: auto; /* to make only right side scrolls */
    display: block;
    overflow-x:hidden; /* I am hidding the horizontal scroll bar */
    background-color: #111;
    border-radius: 10px;
    margin: 5px;
    
}


.trending, .pop-art, .pop-al-si, .pop-radio, .featured-charts {
    height: 300px;
    width: 100%;
    margin: 10px 0;
}

.top {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
}

.top a{
    text-decoration: none;
    color: white;
    font-weight: 500;
}

.top a:hover {
    text-decoration: underline;
}

.topic {
    font-size: 17px;
}

.show-all {
    font-size: 14px;
}

/* About */

hr {
    background-color: gray;
    border: none;
    height: 1px;
    border-radius: 1px;
}

.about {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 50px 10px;
}

@media (max-width: 768px) {
    .about {
        flex-direction: column;
        gap: 20px;
    } 
}

.ab {
    display: flex;
    flex-direction: column;

}

.ab p {
    color: white;
    font-weight: 500;
    padding: 5px;
}

.ab a {
    text-decoration: none;
    color: gray;
    padding: 5px;
}

.ab a:hover {
    color: white;
    text-decoration: underline;
}

.social-logos {
    padding: 5px;
}

a i {
  font-size: 24px;
  color: white;
  margin: 0 20px 0 0;
  cursor: pointer;
}

a i:hover {
  color: gray; /* like Spotify green hover */
}


/* company-name */

.company-name {
    
    color: gray;
    padding: 30px 15px;
}

/* the main classifications on the right main */

.trending-bottom, 
.pop-art-bottom, 
.pop-al-si-bottom,
.pop-radio-bottom,
.featued-charts-bottom {
    display: flex;
    flex-direction: row;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 15px;
    height: calc(100% - 40px);
    scrollbar-width: none;
}

.pop-art-bottom::-webkit-scrollbar,
.pop-art-bottom::-webkit-scrollbar,
.pop-al-si-bottom::-webkit-scrollbar,
.pop-radio-bottom::-webkit-scrollbar,
.featued-charts-bottom::-webkit-scrollbar {
    display: none;
}


.trending-bottom a,
.pop-art-bottom a,
.pop-al-si-bottom a,
.pop-radio-bottom a,
.featued-charts-bottom a
{
    flex: 0 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border-radius: 10px;
    padding: 10px;
    box-sizing: border-box;
    background-color: black;
}

.trending-bottom a:hover,
.pop-art-bottom a:hover,
.pop-al-si-bottom a:hover,
.pop-radio-bottom a:hover,
.featued-charts-bottom a:hover {
    background-color: #222;
    text-decoration: underline;
    color: white;
}

.trending-bottom a img,
.pop-art-bottom a img,
.pop-al-si-bottom a img,
.pop-radio-bottom a img,
.featued-charts-bottom a img {
    flex: 0 0 auto;
    max-height: 70%;
    width: auto;
    border-radius: 5px;
    object-fit: cover;
    width: 100%;
    display: block;

}

.trending-bottom a,
.pop-art-bottom a,
.pop-al-si-bottom a,
.pop-radio-bottom a,
.featued-charts-bottom a {
    text-decoration: none;
}

.trending-bottom a p,
.pop-art-bottom a p,
.pop-al-si-bottom a p,
.pop-radio-bottom a p,
.featued-charts-bottom a p {
    margin-top: 5px;
    color: white;
}

.pop-art-bottom a img {
    border-radius: 50%;
}

/* green play button */


.card {
  position: relative;   /* important for positioning the button */
  display: inline-block;
  width: 160px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.play-btn {
    position: absolute;
    bottom: 80px;
    right: 20px;
    height: 50px;
    width: 50px;
    border-radius: 50%;
    background-color: #1DB954;
    border: none;
    color: black;
    padding-left: 5px; /* Added this to put the black play button at the center */
    font-size: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.9);
    transition:  all 0.2s ease-in-out;
    cursor: pointer;
}

.card:hover .play-btn {
    opacity: 1;
    transform: scale(1);
}

/* footer */

footer {
    height: 10vh;
    width: 100%;
    background-color: purple;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 1000;
    padding: 10px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

footer a {
    text-decoration: none;
    color: white;
    font-size: 15px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: center;
    min-width: 0;
    padding: 10px;
    overflow-wrap: break-word;  /* ✅ breaks long text instead of overflowing */
    word-break: break-word;     /* ✅ fallback */
}

@media (max-width: 768px) {
  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .footer-right {
    align-self: center; /* ✅ keep button centered below text */
  }
}


.footer-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-right button {
    height: 40px;
    width: 150px;
    border: 0;
    border-radius: 20px;
    cursor: pointer;
    padding: 0 10px ;
    text-align: center;
    margin-bottom: 10px;
}

