/* 
    Document   : plebiscyt
    Created on : 2015-01-09, 22:32:18
    Author     : angelus
    Description:
        Purpose of the stylesheet follows.
*/

#wsp72012_all {
margin: 0px;
}
.wsp7_tytul {
font-size: 25px;
font-weight: bold;
color:  #0079b0;
text-align: center;
padding-top: 0px;
margin-bottom: 16px;
}
.wsp7_tekstgl {
font-size: 14px;
text-align: justify;
margin: 15px;
font-weight: bold;
} 
 .wsp7_tytul2 {
font-size: 25px;
font-weight: bold;
color:  #0079b0;
text-align: center;
margin-bottom: 16px; 
clear: both;
}
.wsp7_tekstgl2 {
font-size: 14px;
text-align: justify;
margin-top: 15px;
margin-bottom: 15px;
font-weight: bold;
}
.wsp7_foto {
float: left; 
width: 210px; 
margin-right: 10px;
}
.wsp7_foto2 {
border: 2px solid #e67818; 
margin-bottom: 20px;
}
.wsp7_kan {
clear:both;
margin-bottom: 20px;
}
.wsp7_tekst {
float: right;
width: 390px;
}
.wsp7_dane {
font-size: 30px;
font-weight: bold;
color: #0079b0;
margin-top: 25px;
}
.wsp7_klub {
font-size: 18px;
color: #0079b0;
}
.wsp7_opis {
font-size: 14px;
margin-top: 20px;
margin-bottom: 20px;
}
.wsp7_sms {
font-size: 16px;
font-weight: bold;
color: #0079b0;
}
.podsumowanie {
font-size: 13px;
color: black;
text-align: justify;
margin: 15px;
}
/* modern.css */

/* Menu – subtelne, delikatne */
.top-menu {
  background: #f7f7f7;
  border-bottom: 1px solid #ddd;
  padding: 8px 0;
  text-align: center;
  margin-bottom: 20px;
}
.top-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.top-menu ul li {
  display: inline-block;
  margin: 0 15px;
}
.top-menu ul li a {
  color: #707070;
  font-weight: 400;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}
.top-menu ul li a:hover {
  color: #e67818;
}

/* Nagłówki kategorii – większe czcionki */
.wsp7_tytul2 {
  font-size: 32px;
  font-weight: bold;
  color: #0079b0;
  margin: 40px 0 20px;
  text-align: center;
}

/* Separator między kategoriami – oryginalny separator pozostaje */
.big-separator {
  border: 0;
  width: 100%;
  height: 5px;
  margin: 30px 0;
  background-image: linear-gradient(to right, rgba(0,0,0,0), rgba(239,127,26,0.85), rgba(0,0,0,0));
}

/* Nowoczesne karty kandydatów */
.modern-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 30px;
  position: relative;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.modern-card:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  border-color: #e67818;
}

/* Wrapper dla obrazka – kwadratowy 300x300px, bez marginesów */
.modern-img-wrapper {
  width: 300px;
  height: 300px;
  overflow: hidden;
  margin: 0;
  padding: 0;
  background: transparent;
}
.modern-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: none;
}

/* Treść karty – układ flex, aby tekst nie nachodził na obrazek */
.modern-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  min-height: 300px;
}
.modern-card-title {
  font-size: 26px;
  color: #0079b0;
  margin-top: 0;
  margin-bottom: 10px;
  font-weight: bold;
}
.modern-card-subtitle {
  font-size: 16px;
  color: #0079b0;
  margin-bottom: 15px;
}
.modern-card-text {
  font-size: 14px;
  color: #555;
  margin-bottom: 15px;
  border-left: 5px solid #e67818;
  padding-left: 10px;
  text-align: justify-all;
  /* Aby pomarańczowa belka była tylko długości tekstu, zawijamy tekst w span */
}

.modern-card-vote {
  font-size: 20px;
  color: #e67818;
  font-weight: bold;
  text-align: center;
  word-wrap: break-word;
}

/* Przycisk "Czytaj pełny opis" – pojawia się tylko, gdy opis jest skracany */
.read-more {
  display: inline-block;
  padding: 8px 16px;
  background-color: #e67818;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  margin-top: 5px;
  margin-bottom: 15px;
  align-self: flex-start;
  font-size: 14px;
  margin-left: auto;
  margin-right: auto;
}
.read-more:hover,
.read-more:focus {
  background-color: #cf670f;
  color: #fff;
}

/* Sekcja głosowania */
.vote-section {
  background: linear-gradient(135deg, #f6f9fc 0%, #e2e8f0 100%);
  border: 2px solid #e67818;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  margin-top: 40px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.vote-section h2 {
  font-size: 28px;
  color: #0079b0;
  margin-bottom: 15px;
}
.vote-section p {
  font-size: 16px;
  color: #333;
  margin-bottom: 20px;
}
.vote-section .btn-vote {
  padding: 12px 30px;
  font-size: 18px;
  background-color: #e67818;
  border: none;
  color: #fff;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  cursor: pointer;
}
.vote-section .btn-vote:hover,
.vote-section .btn-vote:focus {
  background-color: #cf670f;
  outline: none;
}
/* Candidate Detail Page */
.candidate-detail {
  max-width: 900px;
  margin: 20px auto;
  padding: 20px;
}
.candidate-header {
  text-align: center;
  margin-bottom: 30px;
}
.candidate-name {
  font-size: 48px;
  font-weight: bold;
  color: #0079b0;
  margin-bottom: 10px;
}
.candidate-info {
  font-size: 20px;
  color: #e67818;
}
.candidate-content {
  display: flex;
  flex-wrap: wrap;
}
.candidate-photo {
  flex: 0 0 300px;
  margin-right: 8px;
}
.candidate-photo img {
  width: 100%;
  height: auto;
  display: block;
}
.candidate-description {
  flex: 1;
  font-size: 16px;
  color: #555;
  line-height: 1.6;
}
.candidate-sms {
  font-size: 20px;
  color: #e67818;
  font-weight: bold;
  margin-top: 20px;
  text-align: center;
}
/* Modern Candidate Detail Page */

.candidate-detail.modern-detail {
  max-width: 900px;
  margin: 30px auto;
  padding: 20px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  animation: fadeIn 1s ease;
}

.candidate-photo.modern-detail-photo {
  overflow: hidden; /* Zapobiega przesuwaniu sąsiednich elementów podczas efektu */
}

.candidate-photo.modern-detail-photo img {
  transition: transform 0.5s ease-in-out, filter 0.3s ease-in-out;
}

.candidate-photo.modern-detail-photo:hover img {
  transform: scale(1.05);
  filter: brightness(1.05);
}


.candidate-detail.modern-detail:hover {
  border-color: #e67818;
  box-shadow: 0 4px 12px rgba(230, 120, 24, 0.4);
  transition: border-color 0.7s ease-in-out, box-shadow 0.3s ease-in-out;
}


.candidate-header.modern-detail-header {
  text-align: center;
  margin-bottom: 30px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.candidate-name.modern-detail-name {
  font-size: 48px;
  font-weight: bold;
  color: #0079b0;
  margin: 0;
}

.candidate-info.modern-detail-info {
  font-size: 20px;
  color: #e67818;
  margin-top: 10px;
}

.candidate-content.modern-detail-content {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}

.candidate-photo.modern-detail-photo {
  flex: 0 0 300px;
  margin-right: 0px;
}

.candidate-photo.modern-detail-photo a {
  display: block;
}

.candidate-photo.modern-detail-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.candidate-description.modern-detail-description {
  flex: 1;
  font-size: 16px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 20px;
}

.candidate-sms.modern-detail-sms {
  font-size: 20px;
  color: #e67818;
  font-weight: bold;
  margin-top: 20px;
  text-align: center;
}
.candidate-sms-bar {
  background-color: #e67818;
  color: #fff;
  text-align: center;
  padding: 20px 0;
  font-size: 22px;
  font-weight: bold;
  width: calc(100% + 40px); /* pełna szerokość karty plus dwa razy padding (20px z każdej strony) */
  margin: 20px -20px -20px;     /* wyciągamy pasek na boki, aby przylegał do krawędzi karty */
  border-radius: 0 0 8px 8px;
}

  .candidate-share {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  background: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  margin: 20px auto;
  max-width: 500px;
  text-align: center;
}

.candidate-share span {
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

.share-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: white;
  font-size: 18px;
  transition: background 0.3s, transform 0.2s;
}

.share-icon.facebook { background: #1877F2; }
.share-icon.messenger { background: #0084FF; }
.share-icon.instagram { background: #E1306C; }
.share-icon.copy-link { background: #444; border: none; cursor: pointer; }

.share-icon:hover {
  opacity: 0.8;
  transform: scale(1.1);
}


/* --- Media Query dla urządzeń mobilnych --- */
@media only screen and (max-width: 767px) {
  .modern-card, .candidate-detail.modern-detail {
    padding: 10px;
    margin-bottom: 15px;
  }
  .modern-img-wrapper {
    width: 100%;
    height: auto;
    margin-top: -10px;
  }
  .modern-card-body {
    padding: 10px;
    min-height: 100px;
    
  }
  .modern-card-title {
      text-align: center;
  }
  .modern-card-subtitle {
      text-align: center;
  }
    .modern-card-text {
      margin-left: 10px;
      margin-right: 10px;
  }

 .candidate-description.modern-detail-description {
    color: #555;
    margin-bottom: 15px;
    border-left: 5px solid #e67818;
    padding-left: 0px;
    padding-right: 20px;
    margin-top: 10px;
}
.candidate-photo.modern-detail-photo {
   object-fit: cover;
    flex: 0 0 100%;
    margin-right: 0;
  }

  .candidate-photo.modern-detail-photo img {
    width: 100%;
    height: auto;
    border-radius: 4px;
  }
.candidate-sms-bar {
  padding: 20px 0;
  font-size: 18px;
  font-weight: bold;
  width: calc(100% + 20px); /* pełna szerokość karty plus dwa razy padding (20px z każdej strony) */
  margin: 10px -10px -10px;     /* wyciągamy pasek na boki, aby przylegał do krawędzi karty */
  border-radius: 0 0 8px 8px;
}
}
  /* Kontener dla kafelków – Flexbox */
  .event-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Wycentrujemy elementy */
    gap: 20px;
    margin-bottom: 30px;
  }
  /* Kafelek */
  .event-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    width: 45%;        /* Dwie karty w rzędzie na większych ekranach */
    min-width: 250px;  /* Gwarantowana minimalna szerokość */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  }
  .event-card:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    border-color: #e67818;
  }
  /* Ikony */
  .event-card i {
    color: #e67818;
    margin-bottom: 10px;
  }
  /* Tytuł */
  .event-card h3 {
    font-size: 18px;
    margin: 0;
    line-height: 1.3;
    padding: 0 10px;
  }
  /* Dla urządzeń mobilnych – szerokość 100% */
  @media (max-width: 767px) {
    .event-card {
      width: 100%;
    }
  }
  
  /* Blok z zasadami głosowania */
  .voting-rules {
    margin: 20px;
    text-align: center;
    font-size: 14px;
    color: #555;
    border-top: 1px solid #eee;
    padding-top: 15px;
  }