/* Sauna-arviointisivujen tyylitiedosto */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}



body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #f5f5f5;
  line-height: 1.6;
  color: #333;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

/* HEADER STYLES */
.header {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  color: #ffd700;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  margin-bottom: 2rem;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.header h1 {
  color: #ffd700;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.header h2 {
  color: #ffd700;
  opacity: 0.9;
  font-size: 1.5rem;
  opacity: 0.9;
  margin-bottom: 1rem;
}

.nav-link {
  color: white;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* CONTENT STYLES */
.content {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.hero-image-container {
  margin-bottom: 2rem;
  text-align: center;
}

.hero-image {
  width: 100%;
  max-width: 800px;
height: 400px !important;  /* lisää !important */
   object-fit: cover;
  object-position: center;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.3s ease;
background-color: #f5f5f5; /* Lisätään tausta tyhjille alueille */
}

.hero-image:hover {
  transform: scale(1.02);
}

.description {
  margin-bottom: 2rem;
}

.description p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

.description p:last-child {
  margin-bottom: 0;
}

/* GALLERY STYLES */
.gallery-section {
  margin: 2rem 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.gallery-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gallery-image:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* RATING AND CARDS */
.rating-card {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  color: #ffd700;
  font-size: 1.5rem;
  font-weight: bold;
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  margin: 2rem 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.card {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  border-left: 4px solid #667eea;
}

/* BADGES */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2rem 0;
}

.badge {
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.link-button {
  display: inline-block;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  color: #ffd700;
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: 25px;
  font-weight: 600;
  margin: 0.5rem 0.5rem 0.5rem 0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.link-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  background: rgba(0, 0, 0, 1);
}

/* FOOTER AND SHARING LINKS */
.footer {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  margin-top: 2rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
 background-color: black;  /* Lisää tämä */
  padding: 1.0rem;           /* Lisää tämä */
  border-radius: 8px;      /* Lisää tämä (valinnainen) */
 max-width: 800px;    /* Lisää tämä */
  margin: 2rem auto;   /* Lisää tämä - keskittää ja rajoittaa leveyttä */
}


.footer-link {
  color: #66B2FF !important;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.footer-link:hover {
 color: #B0E0E6 !important;
}

.footer-links h3 {
  color: white;
  margin-bottom: 0.1rem;
  width: 100%;
  text-align: center;
  font-size: 1.0rem;
  font-weight: 600;
}

/* MODAL STYLES */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}

.modal-content {
  display: block;
  margin: 50px auto;
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close:hover {
  color: #ff6b6b;
}

/* RESPONSIVE DESIGN */

/* Tablet styles */
@media (max-width: 1024px) {
  .container {
    padding: 1.5rem;
  }
  
  .hero-image {
    height: 300px;
  }
  
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile styles */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }
  
  .content {
    padding: 1.5rem;
  }
  
  .header {
    padding: 1.5rem;
  }
  
  .header h1 {
    font-size: 2rem;
  }
  
  .hero-image {
    height: 250px;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .description {
    font-size: 1rem;
  }
  
  .rating-card {
    font-size: 1.1rem;
    padding: 1rem;
  }
  
  .link-button {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }

  .modal-content {
    margin: 20px auto;
    max-width: 95%;
    max-height: 90vh;
  }
  
  .close {
    top: 10px;
    right: 20px;
    font-size: 30px;
  }
}

/* Small mobile styles */
@media (max-width: 480px) {
  .header h1 {
    font-size: 1.5rem;
  }
  
  .header h2 {
    font-size: 1.2rem;
  }
  
  .hero-image {
height: auto; /* Muutettu 250px -> auto */
    max-height: 250px; /* Lisätään maksimikorkeus */
   
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-image {
    height: 200px;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .link-button {
    width: 100%;
    margin-right: 0;
    margin-bottom: 0.5rem;
    text-align: center;
  }
  
  .badges {
    justify-content: center;
  }
  
  .badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}

/* Print styles */
@media print {
  body {
    background: white;
    color: black;
  }
  
  .container {
    box-shadow: none;
    background: white;
  }
  
  .header {
    background: #333;
    color: white;
  }
  
  .link-button {
    display: none;
  }
  
  .nav-link {
    display: none;
  }

  .footer-links {
    display: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .card {
    border: 3px solid #000;
  }
  
  .badge {
    border: 2px solid #000;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Dark mode support (jos halutaan lisätä tulevaisuudessa) */
@media (prefers-color-scheme: dark) {
  /* Voidaan lisätä dark mode tyylit myöhemmin */
}


/* VINTAGE THEME - 90-luvun/2000-luvun alun tunnelma */
.vintage-theme {
  background-color: #f0e6d2; /* lämmin vaaleanruskea tausta */
  color: #3e2723; /* tummanruskea teksti */
}

.vintage-theme .container {
  background-color: #f5ede0; /* hieman lämpimämpi kermainen tausta */
}

.vintage-theme .header {
  background: linear-gradient(135deg, #8d6e63, #a1887f);
  color: #f4f1e8;
}

.vintage-theme .header h1,
.vintage-theme .header h2 {
  color: #f4f1e8;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.vintage-theme .content {
  background: #faf6f0; /* lämmin valkoinen, hieman ruskehtava sävy */
  border: 2px solid #d7ccc8;
}

.vintage-theme .nav-link {
  background: rgba(141, 110, 99, 0.2);
  color: #f4f1e8;
}

.vintage-theme .link-button {
  background: linear-gradient(135deg, #8d6e63, #6d4c41);
  color: #f4f1e8;
}

.vintage-theme .footer-links h3 {
  color: #5d4037;
}

/* PS-tekstin tyylit */
.ps-text-bottom {
  margin-top: 20px !important;
  padding: 15px !important;
  font-size: 14px !important;
  color: #666 !important;
  text-align: center !important;
  background-color: #f9f9f9 !important;
  border-radius: 8px !important;
  border-left: 4px solid #4CAF50 !important;
  max-width: 800px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  font-weight: bold !important;
}

/* Artikkelitekstin sisällä olevat kuvat - lisää väliä alle */
.description .gallery-image {
  width: 100%;
  height: auto; /* anna selaimen laskea korkeus */
object-position: center;
  border-radius: 8px;
  margin: 1rem 0 2rem 0;  /* ylä 1rem, oikea 0, ala 2rem, vasen 0 */
  }

.image-hint-text {
  font-size: 12px;
  color: #666;
  text-align: right;
  margin: 0.3rem 0 1rem 0;
  font-style: italic;
  max-width: 100%;       /* ei mene yli kuvan leveydestä */
  overflow-x: hidden;    /* varmuudeksi estää sivuskrollin */
}


@media (max-width: 600px) {
  .image-hint-text {
    text-align: center;  /* mobiilissa keskitetään */
  }
}

h1, h2, h3, h4, h5, h6 {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  word-break: keep-all;     /* ei jaa sanoja oudosti */
  overflow-wrap: break-word; /* rivittää vain tarvittaessa */
}

.hero-image-container .image-overlay-text {
  white-space: normal !important;
  word-break: break-word !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
  max-width: 90% !important;
}

.image-hint {
  white-space: normal !important;
  word-break: break-word !important;
  text-align: center !important;
  max-width: 90% !important;
  left: 50% !important;
  transform: translateX(-50%) !important; /* keskittää vaakasuunnassa */
}


/* Overlay-teksti normaalisti */
.image-hint {
  font-size: 12px;
  padding: 6px 12px;
  line-height: 1.3;
}

/* Pystykännyssä (näytön leveys max 480px) */
@media (max-width: 480px) {
  .image-hint {
    font-size: 9px !important;   /* pienempi fontti */
    padding: 3px 8px !important; /* pienemmät reunukset */
    line-height: 1.2 !important; /* tiiviimpi riviväli */
    max-width: 90% !important;   /* ettei veny turhaan */
  }
}


