/**
 * Theme Name: Podcast Tvé Město
 */

:root {
   --background-color: #CDCED0;
}

/* Poppins Regular */
@font-face {
   font-family: 'Poppins';
   src: url('fonts/Poppins-Regular.ttf') format('truetype');
   font-weight: 400;
   font-style: normal;
   font-display: swap;
}

/* Poppins Italic */
@font-face {
   font-family: 'Poppins';
   src: url('fonts/Poppins-Italic.ttf') format('truetype');
   font-weight: 400;
   font-style: italic;
   font-display: swap;
}

/* Poppins Bold */
@font-face {
   font-family: 'Poppins';
   src: url('fonts/Poppins-Bold.ttf') format('truetype');
   font-weight: 700;
   font-style: normal;
   font-display: swap;
}

/* Poppins Bold Italic */
@font-face {
   font-family: 'Poppins';
   src: url('fonts/Poppins-BoldItalic.ttf') format('truetype');
   font-weight: 700;
   font-style: italic;
   font-display: swap;
}


:root {
   --heading-font-size: clamp(1rem, 0.7391rem + 1.3043vw, 1.75rem);
   --logo-size: clamp(2.5rem, 1.8478rem + 3.2609vw, 4.375rem);
   --dropdown-font-size: clamp(0.75rem, 0.6196rem + 0.6522vw, 1.125rem);
}


html,
body {
   position: relative;
   padding: 0;
   margin: 0;
   min-height: 100vh;
}

body {
   padding-bottom: 30px;
}

body::before {
   content: "";
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: var(--background-image);
   background-position: 0 100px;
   background-size: 100% auto;
   background-repeat: repeat-y;
   z-index: -2;
}

body::after {
   content: "";
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background-color: black;
   opacity: 0.25;
   z-index: -1;
}

header {
   font-family: 'Poppins', sans-serif;
   background: white;

   h1 {
      margin: 0;
      font-size: var(--heading-font-size);
   }
}

.site-logo {
   display: inline-block;
   width: var(--logo-size);
   height: auto;
}

.site-header-layout {
   position: relative;
   display: flex;
   flex-direction: row;
   align-items: center;
   gap: 10px;
   padding: 10px;
}

.site-title {
   position: absolute;
   left: 50%;
   top: 50%;
   transform: translateX(-50%) translateY(-50%);
   text-align: center;
}

.site-category-city {
   width: 180px;
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 10px;
   padding: 20px;
   background-color: white;
   border-radius: 12px;
   box-shadow: 1px 1px 5px 2px rgba(0, 0, 0, 0.25);

   img {
      transform: scale(0.65);
   }
}

.category-logo-container {
   display: flex;
   flex-direction: row;
   align-items: center;
   justify-content: center;

   max-width: 250px;
   width: 80%;
   aspect-ratio: 3 / 4;
   overflow: hidden;
   background-color: white;

   img {
      width: 100%;
      height: auto;
      object-fit: contain;
   }
}

.category-name-button {
   color: black;
   background-color: transparent;
   border: 2px solid darkgray;
   border-radius: 8px;
   padding: 8px 24px;
   font-family: 'Poppins', sans-serif;
   font-size: 16px;
   cursor: pointer;
}

.category-name-button:hover {
   background-color: rgba(128, 128, 128, 0.25);
}

.category-grid {   
   display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-items: center;
    justify-content: center;
    padding: 2rem;
    gap: 2rem;
}

.site-podcast-date-select {
   max-width: 420px;
   margin: 0 auto;
   margin-top: 30px;
   display: flex;
   flex-direction: row;
   align-items: center;
   justify-content: space-between;
   gap: 10px;
   padding: 10px 10px;
   background-color: white;
   font-family: 'Poppins', sans-serif;
   font-weight: bold;
   font-size: 20px;
   border: 1px solid lightgray;
   border-radius: 12px;   
   box-sizing: border-box;
}

@media screen and (max-width: 420px) {
   .site-podcast-date-select {
      border-radius: 0px;
   }
}

.site-podcast {
   max-width: 600px;
   margin: 0 auto;
   margin-top: 30px;
   background-color: white;
   font-family: 'Poppins', sans-serif;
   font-weight: bold;
   font-size: 16px;
   padding: 16px 20px; 
   border: 1px solid lightgray;
   box-sizing: border-box;
   border-radius: 12px;   
}

@media screen and (max-width: 600px) {
   .site-podcast {
      border-radius: 0px;
   }
}


.site-podcast h1 {
   font-family: 'Poppins', sans-serif;
   font-weight: bold;
   font-size: 22px;
   text-align: center;
   margin: 0;
   margin-bottom: 16px;
}

.site-podcast .site-podcast-meta {
   display: grid;
   grid-template-columns: 1fr 1fr;
   align-items: center;
}

@media (max-width: 500px) {
   .site-podcast .site-podcast-meta {
      display: flex;
      flex-direction: column-reverse;
      align-items: center;
      gap: 10px;
   }
}

.site-podcast .site-podcast-date {
   display: flex;
   flex-direction: column;
}
.site-podcast .site-podcast-content {
   display: none;
   font-weight: initial;
  
}

.site-podcast-content p:first-child {
   margin-top: 0;
}

.site-podcast-content p:last-child {
   margin-bottom: 0;
}

.site-city-select {
   margin-top: -16px;
   background-color: white;
   display: flex; 
   justify-content: center;   
   padding-bottom: 16px;
   font-size: var(--dropdown-font-size);
}

.site-podcast-link {
   color: black;
   font-weight: bold;
   text-decoration: underline;
   align-self: flex-start;
}

.site-podcast-link:hover {
   text-decoration: underline;
}