/* --------------------------------------------------
   Base Layout
-------------------------------------------------- */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: black;
    color: white;
    font-size: 30px; /* root text size */
}

.icon-btn {

    top: 0px;
    left: 0px;
    width: 100px;
    height: 100px;
    font-size: 5rem;
    background: #222;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: right;
    justify-content: right;
}

#updateStatus {
  white-space: nowrap;
  overflow:hidden;
}

/* --------------------------------------------------
   CSS GRID LAYOUT
-------------------------------------------------- */

#podcastList {
    display: grid;
    height: 30vh;
    overflow-y: scroll;
    scrollbar-width: none; /* Firefox */
}

#podcastList::-webkit-scrollbar {
    display: none; /* Chrome, Edge, Safari */
}

/* --------------------------------------------------
   Podcast Card
-------------------------------------------------- */

.podcast {
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Square responsive images */
.podcast img {
    width: 100%;
    aspect-ratio: 1 / 1;   /* perfect square */
    object-fit: cover;     /* fill square without distortion */
    border-radius: 6px;
}

/* --------------------------------------------------
   Screen Info
-------------------------------------------------- */

#screenInfo {
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: inline-block;
}

/* --------------------------------------------------
   MOBILE — up to 1000px
-------------------------------------------------- */

@media (max-width: 1000px) {

    body {
        margin: 10px;
    }

    #refreshBtn {
        width: 100%;
    }

    #podcastList {
        grid-template-columns: repeat(auto-fit, minmax(19vw, 1fr));
    }
}

/* --------------------------------------------------
   TABLET — 1000px to 1200px
-------------------------------------------------- */

@media (min-width: 1000px) and (max-width: 1200px) {

    #podcastList {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* --------------------------------------------------
   DESKTOP — 1200px+
-------------------------------------------------- */

@media (min-width: 1200px) {

    #podcastList {
        grid-template-columns: repeat(auto-fit, minmax(20vw, 1fr));
    }
}
