﻿/* styles.css */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

.banner {
    width: 100%;
    height: 400px;
    background: url('images/historiabanneri.jpg') no-repeat center center;
    background-size: cover;
}

header {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
}

header h1 {
    margin: 0;
}

header p {
    margin: 10px 0;
}

/* Section-tyylit */
section {
    background-color: #e0e0e0;
    padding: 20px;
    margin: 20px auto;
    border-radius: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: 1px solid black;
    text-align: left;
}

/* Esittelysivun section-tyyli */
.esittely-section {
    border: 1px solid black;
    background-color: #333; /* Musta tausta kuten podcast-korteissa */
color: #fff; /* Valkoinen teksti */
    padding: 20px;
    margin: 20px auto;
    border-radius: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    line-height: 1.6;
}
   .esittely-section p {
    text-align: left;
    hyphens: manual;
    word-break: break-word;
margin-bottom: 1.7em; /* Lisää tilaa kappaleiden väliin */

}



/* Hover-väri esittelylinkeille */
.esittely-section a:hover {
    background-color: #1e90ff;
    color: white;
}

/* Pienet näytöt: mobiilisti mukavampi fonttikoko ja sisennys */
@media screen and (max-width: 480px) {
    .esittely-section {
        font-size: 16px;
        line-height: 1.4;
        padding: 15px;
    }
}






/* Yleinen tyyli otsikolle */
.category-banner h2 {
    text-align: center;
    padding: 0 10px;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6); /* Parempi luettavuus kuvien päällä */
}

/* Skaalaus ja korkeuden säätö mobiilissa */
@media screen and (max-width: 768px) {
  .category-banner h2 {
    font-size: 7vw;
  }

  .category-banner {
    height: 250px;
    margin-bottom: 15px;
  }

  .esittely-section p {
    text-align: left;
  }
}




esittely-section a:hover {
    background-color: #1e90ff; /* Sininen hover-väri */
    color: white;
}

.podcast-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
    box-sizing: border-box;
}

/* Tabletti: 2 palstaa */
@media screen and (max-width: 1024px) {
    .podcast-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobiili: 1 palsta - KORJATTU BREAKPOINT */
@media screen and (max-width: 768px) {
    .podcast-grid {
        grid-template-columns: 1fr;
        padding: 10px; /* Vähennetty paddingeja mobiilissa */
        gap: 15px; /* Pienempi väli kortien välillä */
    }
    
    /* Varmistetaan että kortit käyttävät koko leveyden */
    .podcast-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Pienempi padding mobiilissa */
    section {
        margin: 10px;
        padding: 15px;
    }
}

/* Erittäin pienet näytöt */
@media screen and (max-width: 480px) {
    .podcast-grid {
        padding: 5px;
        gap: 10px;
    }
    
    section {
        margin: 5px;
        padding: 10px;
    }
}

.podcast-card {
    background-color: #fff;
    border: 1px solid black;
    padding: 15px;
    border-radius: 30px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
    text-align: left;
    width: 100%; /* Varmistetaan täysi leveys */
    box-sizing: border-box; /* Sisällyttää padding ja border leveyteen */
}

.podcast-card:hover {
    background-color: #3a6ea5;
    color: #fff;
}

.podcast-card h3 {
    margin-top: 0;
}

.podcast-card a {
    text-decoration: none;
    color: #0066cc;
    font-weight: bold;
}

.podcast-card a:hover {
    text-decoration: underline;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #333;
    color: #fff;
}







section p {
    text-align: left;
    hyphens: auto;
    word-wrap: break-word;
}

.podcast-card p {
    text-align: left;
}

@media screen and (max-width: 768px) {
    section p {
        text-align: left;
    }
}


.feedback-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  background-color: #000;
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
}

.feedback-container h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 20px;
}

.feedback-container form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}

.feedback-container form label {
  font-weight: bold;
}

.feedback-container form input,
.feedback-container form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #222;
  color: #fff;
  box-sizing: border-box;
  font-size: 1rem;
}

.feedback-container form input[type="submit"] {
  background-color: #1e90ff;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 10px;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.feedback-container form input[type="submit"]:hover {
  background-color: #63b8ff;
}
.feedback-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  background-color: #000;
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
}

.feedback-container h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 20px;
}

.feedback-container form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}

.feedback-container form label {
  font-weight: bold;
}

.feedback-container form input,
.feedback-container form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #222;
  color: #fff;
  box-sizing: border-box;
  font-size: 1rem;
}

.feedback-container form input[type="submit"] {
  background-color: #1e90ff;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 10px;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.feedback-container form input[type="submit"]:hover {
  background-color: #63b8ff;
}


.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.footer-link,
.share-link {
  color: #1e90ff;
  text-decoration: none;
  font-size: 1.5rem;
  padding: 6px 12px;
  margin: 5px;
  border-radius: 5px;
  display: inline-block;
  transition: color 0.3s ease;
}

.footer-link:hover,
.share-link:hover {
  color: #63b8ff; /* vaaleampi sininen */
}

.share-title {
  font-size: 1rem;
  font-weight: bold;
  color: #FFF;
  margin: 0 10px 5px 0;
  display: inline-block;
}


html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-size: 16px;
}

footer h3 {
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 0.5rem;
}

/* Uudistettu etusivu */
.podcast-page {
  --ink: #17212b;
  --muted: #5d6873;
  --paper: #f4f1ea;
  --surface: #ffffff;
  --navy: #102b3f;
  --navy-light: #173f5c;
  --copper: #bd642f;
  --copper-dark: #93471f;
  --line: #ded8ce;
  background:
    radial-gradient(circle at top left, rgba(189, 100, 47, 0.12), transparent 30rem),
    var(--paper) !important;
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
}

.podcast-page .main-wrapper {
  max-width: 1240px !important;
  background: transparent !important;
  box-shadow: none !important;
}

.podcast-page .site-header {
  position: sticky;
  top: 0;
  z-index: 1100;
  padding: 0;
  background: transparent;
}

.podcast-page .sticky-nav {
  position: relative !important;
  margin: 0 !important;
  background: rgba(16, 43, 63, 0.97) !important;
  border: 0 !important;
  box-shadow: 0 10px 30px rgba(15, 31, 43, 0.18) !important;
  backdrop-filter: blur(12px);
}

.podcast-page .nav-container {
  min-height: 72px;
  height: auto !important;
  padding: 10px clamp(18px, 4vw, 52px) !important;
  gap: 24px;
  justify-content: flex-end !important;
}

.podcast-page .nav-logo {
  color: #fff !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 2vw, 1.35rem) !important;
  letter-spacing: 0.01em;
}

.podcast-page .nav-logo::before {
  content: "" !important;
}

.podcast-page .nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-left: auto;
}

.podcast-page .nav-links > a,
.podcast-page .topic-menu summary {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  color: #fff !important;
  font-size: 0.94rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.podcast-page .nav-links > a:hover,
.podcast-page .nav-links > a.active,
.podcast-page .topic-menu summary:hover,
.podcast-page .topic-menu[open] summary {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.13) !important;
  box-shadow: none !important;
  transform: none !important;
}

.podcast-page .topic-menu {
  position: relative;
}

.podcast-page .topic-menu summary {
  list-style: none;
}

.podcast-page .topic-menu summary::-webkit-details-marker {
  display: none;
}

.podcast-page .topic-menu summary::after {
  content: "  ▾";
  color: #e8b18d;
}

.podcast-page .topic-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  min-width: 230px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: var(--navy);
  box-shadow: 0 18px 45px rgba(5, 20, 31, 0.28);
}

.podcast-page .topic-menu-panel a {
  padding: 10px 12px;
  border-radius: 7px;
  color: #fff !important;
  font-size: 0.93rem;
  text-decoration: none;
}

.podcast-page .topic-menu-panel a:hover,
.podcast-page .topic-menu-panel a.active {
  background: rgba(255, 255, 255, 0.12) !important;
  transform: none !important;
}

.podcast-page .banner {
  display: grid;
  min-height: 430px !important;
  height: auto !important;
  padding: clamp(64px, 10vw, 110px) clamp(22px, 7vw, 80px) !important;
  background:
    linear-gradient(105deg, rgba(10, 30, 44, 0.96), rgba(16, 43, 63, 0.76)),
    url("images/historiabanneri.jpg") center/cover no-repeat !important;
  text-align: left !important;
}

.podcast-page .banner-title-overlay {
  width: min(760px, 100%);
  margin: auto 0 !important;
}

.podcast-page .hero-kicker {
  margin: 0 0 14px;
  color: #efb58e;
  font-size: 0.85rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.podcast-page .banner h1 {
  margin: 0 0 22px !important;
  color: #fff !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 6vw, 4.8rem) !important;
  font-weight: 700;
  line-height: 1.02;
  text-align: left !important;
  text-wrap: balance;
}

.podcast-page .banner-ingress {
  max-width: 680px !important;
  margin: 0 0 14px !important;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: clamp(1.05rem, 2vw, 1.25rem) !important;
  font-weight: 400 !important;
  line-height: 1.65;
  text-align: left !important;
}

.podcast-page .site-note {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
}

.podcast-page .hero-button {
  display: inline-flex;
  padding: 13px 20px;
  border-radius: 8px;
  background: var(--copper);
  color: #fff;
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.podcast-page .hero-button:hover {
  background: var(--copper-dark);
}

.podcast-page .stats-section {
  position: relative;
  z-index: 2;
  width: calc(100% - 40px);
  max-width: 920px;
  margin: -44px auto 54px !important;
  padding: 22px 28px !important;
  border: 1px solid var(--line);
  border-radius: 14px !important;
  background: var(--surface) !important;
  box-shadow: 0 16px 45px rgba(29, 38, 45, 0.12) !important;
}

.podcast-page .stats-heading {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.podcast-page .stats-grid {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 10px !important;
}

.podcast-page .stat-item {
  padding: 8px !important;
  background: transparent !important;
  border-right: 1px solid var(--line);
}

.podcast-page .stat-item:last-child {
  border-right: 0;
}

.podcast-page .stat-number {
  margin: 0 0 2px !important;
  color: var(--copper) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 2.8rem) !important;
}

.podcast-page main {
  padding-bottom: 40px;
}

.podcast-page main > section {
  margin: 0 20px 44px !important;
  padding: clamp(20px, 4vw, 36px) !important;
  border: 1px solid var(--line);
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.82) !important;
  box-shadow: 0 12px 34px rgba(31, 43, 51, 0.07) !important;
}

.podcast-page main > section::before {
  display: none !important;
}

.podcast-page .category-banner {
  height: 245px !important;
  margin-bottom: 30px !important;
  border-radius: 11px !important;
}

.podcast-page .banner-overlay {
  background: linear-gradient(90deg, rgba(9, 29, 43, 0.80), rgba(9, 29, 43, 0.30)) !important;
  justify-content: flex-start !important;
}

.podcast-page .varhaishistoria-banner {
  background-position: center 18% !important;
}

.podcast-page .itsenaisyys-banner {
  background-position: center 12% !important;
}

.podcast-page .category-banner h2 {
  max-width: 760px;
  color: #fff !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.4rem) !important;
  text-align: left !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45) !important;
}

.podcast-page .podcast-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 22px !important;
  padding: 0 !important;
}

.podcast-page .podcast-card {
  min-height: 100% !important;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid #e2ddd4 !important;
  border-radius: 12px !important;
  background: var(--surface) !important;
  box-shadow: 0 6px 22px rgba(31, 43, 51, 0.08) !important;
}

.podcast-page .podcast-card:hover {
  background: var(--surface) !important;
  transform: translateY(-4px) !important;
  box-shadow: 0 14px 34px rgba(31, 43, 51, 0.13) !important;
}

.podcast-page .podcast-image {
  height: 185px !important;
  border-radius: 0 !important;
}

.podcast-page .podcast-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.podcast-page .podcast-card h3 {
  color: var(--ink) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem !important;
  line-height: 1.25;
}

.podcast-page .podcast-card p {
  color: var(--muted) !important;
  font-size: 0.98rem !important;
  line-height: 1.58 !important;
}

.podcast-page .podcast-card .parts {
  color: var(--copper) !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.1em;
}

.podcast-page .podcast-card a,
.podcast-page .podcast-card a:visited {
  align-self: flex-start;
  margin-top: auto !important;
  padding: 11px 15px !important;
  border-radius: 7px !important;
  background: var(--navy) !important;
  color: #fff !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
}

.podcast-page .podcast-card a:hover {
  background: var(--navy-light) !important;
  box-shadow: none !important;
}

.podcast-page .podcast-card a::after {
  content: "›" !important;
}

.podcast-page footer {
  padding: 0 !important;
  background: var(--navy) !important;
}

.podcast-page .footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px clamp(22px, 5vw, 60px) 24px;
}

.podcast-page .footer-intro {
  max-width: 620px;
  margin-bottom: 32px;
  text-align: left;
}

.podcast-page .footer-kicker {
  margin: 0 0 8px;
  color: #e8b18d;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.podcast-page .footer-intro h2 {
  margin: 0 0 12px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.podcast-page .footer-intro > p:last-child {
  margin: 0;
  color: #bdcbd5;
  font-size: 1rem;
  line-height: 1.6;
}

.podcast-page .footer-navigation {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.podcast-page .footer-link {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  min-height: 94px;
  margin: 0 !important;
  padding: 18px !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: #fff !important;
  font-size: 1rem !important;
  text-align: left;
}

.podcast-page .footer-link span {
  font-weight: 750;
}

.podcast-page .footer-link small {
  margin-top: 6px;
  color: #aebfcb;
  font-size: 0.82rem;
}

.podcast-page .footer-link:hover {
  border-color: rgba(232, 177, 141, 0.55);
  background: rgba(255, 255, 255, 0.11) !important;
  transform: translateY(-2px);
}

.podcast-page .footer-share {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
  color: #aebfcb;
  font-size: 0.85rem;
  font-weight: 700;
}

.podcast-page .share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.podcast-page .share-link {
  margin: 0 !important;
  padding: 7px 11px !important;
  border-radius: 6px !important;
  background: transparent !important;
  color: #dce9f2 !important;
  font-size: 0.84rem !important;
}

.podcast-page .share-link:hover {
  background: rgba(255, 255, 255, 0.1) !important;
}

.podcast-page .footer-copyright {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: #8297a6;
  font-size: 0.78rem;
}

.podcast-page .footer-copyright p {
  margin: 0;
}

.podcast-page .scroll-controls {
  position: fixed;
  right: 30px;
  bottom: 28px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.podcast-page .scroll-button {
  position: static !important;
  width: 48px !important;
  height: 48px !important;
  border: 0;
  border-radius: 50%;
  background: var(--copper) !important;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(31, 43, 51, 0.2);
  transition: transform 0.2s ease, background 0.2s ease;
  animation: none !important;
}

.podcast-page .scroll-button:hover {
  background: var(--copper-dark) !important;
  transform: translateY(-2px);
}

.podcast-page .back-to-top {
  opacity: 0;
  visibility: hidden;
}

.podcast-page .back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 900px) {
  .podcast-page .podcast-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 680px) {
  .podcast-page .nav-toggle {
    display: block !important;
    color: #fff;
  }

  .podcast-page .nav-links {
    position: absolute;
    top: 100%;
    left: 12px;
    right: 12px;
    display: none;
    align-items: stretch;
    padding: 12px;
    border-radius: 0 0 12px 12px;
    background: var(--navy);
    box-shadow: 0 18px 35px rgba(5, 20, 31, 0.25);
  }

  .podcast-page .nav-links.active {
    display: grid !important;
  }

  .podcast-page .nav-links > a,
  .podcast-page .topic-menu summary {
    padding: 12px !important;
    text-align: left !important;
  }

  .podcast-page .topic-menu-panel {
    position: static;
    min-width: 0;
    margin-top: 4px;
    padding: 4px 0 0 14px;
    border: 0;
    box-shadow: none;
  }

  .podcast-page .banner {
    min-height: 390px !important;
    padding: 62px 22px 86px !important;
  }

  .podcast-page .stats-section {
    width: calc(100% - 24px);
    margin-top: -52px !important;
    padding: 18px 10px !important;
  }

  .podcast-page .stat-label {
    font-size: 0.78rem !important;
  }

  .podcast-page main > section {
    margin: 0 10px 28px !important;
    padding: 14px !important;
  }

  .podcast-page .category-banner {
    height: 185px !important;
  }

  .podcast-page .podcast-grid {
    grid-template-columns: 1fr !important;
  }

  .podcast-page .podcast-image {
    height: 205px !important;
  }

  .podcast-page .footer-navigation {
    grid-template-columns: 1fr;
  }

  .podcast-page .footer-share,
  .podcast-page .footer-copyright {
    align-items: flex-start;
    flex-direction: column;
  }

  .podcast-page .scroll-controls {
    right: 18px;
    bottom: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .podcast-page *,
  .podcast-page *::before,
  .podcast-page *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


