/* ===================================
   Srdcom Doma - Moderný minimalistický dizajn
   Čisté CSS, žiadny JavaScript
   =================================== */

/* --- Reset a základné nastavenia --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.7;
  color: #2d3436;
  background-color: #ffffff;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #e74c3c;
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: #c0392b;
}

/* --- Kontajner --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Navigácia --- */
.nav {
  background: #ffffff;
  border-bottom: 1px solid #f0f0f0;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.nav-logo img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
  flex-wrap: wrap;
}

.nav-links a {
  color: #555;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.nav-links a:hover {
  color: #e74c3c;
}

/* --- Hero sekcia --- */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  color: #2d3436;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.2rem;
  color: #555;
  margin: 0 auto;
}

/* --- Sekcie --- */
.section {
  padding: 72px 0;
}

.section--alt {
  background-color: #fafafa;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #2d3436;
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}

.section-title--center {
  text-align: center;
}

/* --- Aktuálne správy --- */
.news-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.news-item {
  background: #ffffff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 28px 32px;
  transition: box-shadow 0.3s;
}

.news-item:hover {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.news-date {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #e74c3c;
  background: #fff5f5;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.news-item p {
  color: #444;
  line-height: 1.8;
}

/* --- Akordeon (aktuality) --- */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.accordion-item {
  background: #ffffff;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.accordion-item:hover {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.accordion-item--featured {
  border-left: 4px solid #e74c3c;
}

.accordion-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 32px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.accordion-header::-webkit-details-marker {
  display: none;
}

.accordion-header::after {
  content: '+';
  flex-shrink: 0;
  margin-left: auto;
  font-size: 1.5rem;
  font-weight: 300;
  color: #aaa;
  line-height: 1;
  transition: transform 0.3s;
}

.accordion-item[open] > .accordion-header::after {
  content: '\2212';
}

.accordion-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #2d3436;
  line-height: 1.5;
}

.accordion-body {
  padding: 0 32px 28px;
  color: #444;
  line-height: 1.8;
}

.accordion-body p {
  margin-bottom: 16px;
}

.news-subtitle {
  font-size: 0.9rem;
  color: #888;
  font-style: italic;
  margin-bottom: 16px;
}

.news-cta {
  background: #fff5f5;
  padding: 16px 20px;
  border-radius: 8px;
  border-left: 3px solid #e74c3c;
}

.news-shorturl {
  font-size: 0.9rem;
  color: #777;
}

.news-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #2d3436;
  margin: 28px 0 16px;
}

.news-arguments,
.news-demands {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.news-arguments li,
.news-demands li {
  padding-left: 20px;
  position: relative;
}

.news-arguments li::before,
.news-demands li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: #e74c3c;
  border-radius: 50%;
}

.news-signature {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.news-signature p {
  font-size: 0.95rem;
  line-height: 1.7;
}

.news-social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.news-social a {
  display: inline-block;
  padding: 6px 16px;
  background: #f8f8f8;
  border-radius: 20px;
  font-size: 0.85rem;
  color: #555;
  border: 1px solid #eee;
  transition: background 0.2s, color 0.2s;
}

.news-social a:hover {
  background: #e74c3c;
  color: #fff;
  border-color: #e74c3c;
}

/* --- Ako voliť --- */
.vote-section {
  text-align: center;
  padding: 80px 0;
  background: #2d3436;
  color: #ffffff;
}

.vote-section .section-title {
  color: #ffffff;
}

.vote-section p {
  font-size: 1.15rem;
  max-width: 650px;
  margin: 0 auto 32px;
  color: #ccc;
  line-height: 1.8;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  background: #e74c3c;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  letter-spacing: 0.03em;
  transition: background 0.3s, transform 0.2s;
}

.btn:hover {
  background: #c0392b;
  color: #ffffff;
  transform: translateY(-2px);
}

/* --- Poslanie --- */
.mission-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.mission-text {
  font-size: 1.05rem;
  color: #444;
}

.mission-text p {
  margin-bottom: 20px;
  line-height: 1.85;
}

.mission-image {
  min-width: 0;
}

.mission-image img {
  border-radius: 16px;
}

.chart-container {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px 20px 16px;
  border: 1px solid #eee;
}

.chart-header {
  text-align: center;
  margin-bottom: 12px;
}

.chart-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2d3436;
  margin: 0 0 4px;
}

.chart-subtitle {
  font-size: 0.9rem;
  color: #777;
  margin: 0;
}

/* --- Štatistiky --- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
  padding: 48px 0;
}

.stat-item {
  padding: 32px 16px;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: #e74c3c;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.95rem;
  color: #777;
}

/* --- Infografiky --- */
.infographics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.infographic-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #eee;
  transition: transform 0.3s, box-shadow 0.3s;
}

.infographic-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.infographic-card img {
  width: 100%;
}

.infographics--two {
  grid-template-columns: repeat(2, 1fr);
}

/* --- Videá --- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.video-card {
  background: #ffffff;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.video-wrapper {
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: #000;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.video-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #2d3436;
  padding: 10px 10px 2px;
}

.video-desc {
  font-size: 0.7rem;
  color: #777;
  padding: 0 10px 10px;
  line-height: 1.4;
}

/* --- Galéria podporovateľov --- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* --- Sociálne siete --- */
.social-section {
  text-align: center;
  padding: 72px 0;
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #ffffff;
  border-radius: 50px;
  color: #2d3436;
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid #eee;
  transition: transform 0.2s, box-shadow 0.3s;
}

.social-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  color: #e74c3c;
}

/* --- Päta --- */
.footer {
  background: #2d3436;
  color: #aaa;
  padding: 40px 0;
  text-align: center;
  font-size: 0.9rem;
}

.footer-contact {
  margin-bottom: 20px;
  line-height: 1.6;
}

.footer-contact a {
  color: #ccc;
}

.footer-contact a:hover {
  color: #ffffff;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.footer-links a {
  color: #ccc;
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: #ffffff;
}

/* --- Podstránky --- */
.page-content {
  padding-top: 48px;
}

.page-content h1 {
  margin-bottom: 40px;
}

.contact-card {
  background: #ffffff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 36px 40px;
  margin-bottom: 40px;
}

.contact-card h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #2d3436;
  margin-bottom: 8px;
}

.contact-card > p {
  color: #666;
  margin-bottom: 28px;
}

.contact-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.contact-item h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #999;
  margin-bottom: 4px;
}

.contact-item p {
  color: #444;
  line-height: 1.6;
}

.newsletter-signup {
  margin-top: 32px;
  padding: 32px;
  background: #f8f9fa;
  border-radius: 12px;
}

.newsletter-signup h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #2d3436;
  margin-bottom: 8px;
}

.newsletter-signup p {
  color: #666;
  margin-bottom: 20px;
}

.subscribe-fields {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.subscribe-fields input,
.subscribe-fields select {
  flex: 1;
  min-width: 180px;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.3s;
}

.subscribe-fields input:focus,
.subscribe-fields select:focus {
  outline: none;
  border-color: #e74c3c;
}

.btn--subscribe {
  display: inline-block;
  padding: 12px 32px;
  background: #e74c3c;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.btn--subscribe:hover {
  background: #c0392b;
}

.btn--subscribe:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.subscribe-message {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.95rem;
}

.subscribe-message--ok {
  background: #d4edda;
  color: #155724;
}

.subscribe-message--err {
  background: #f8d7da;
  color: #721c24;
}

.donate-section {
  margin-top: 32px;
}

.donate-section h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #2d3436;
  margin-bottom: 20px;
}

.donate-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.donate-card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

.donate-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #2d3436;
  margin-bottom: 8px;
}

.donate-account {
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: #444;
  word-break: break-all;
  margin-bottom: 16px;
}

.donate-qr {
  display: flex;
  justify-content: center;
}

.donate-qr svg {
  width: 160px;
  height: 160px;
}

.contact-social {
  margin-top: 24px;
}

.contact-social h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #2d3436;
  margin-bottom: 8px;
}

.contact-social p {
  color: #666;
}

.legal-content {
  max-width: 800px;
}

.legal-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #2d3436;
  margin: 32px 0 12px;
}

.legal-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #444;
  margin: 20px 0 8px;
}

.legal-content p {
  color: #444;
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-content ul {
  list-style: none;
  margin-bottom: 16px;
}

.legal-content ul li {
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
  color: #444;
  line-height: 1.7;
}

.legal-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: #e74c3c;
  border-radius: 50%;
}

.cookies-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 0.95rem;
}

.cookies-table th,
.cookies-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
}

.cookies-table th {
  background: #fafafa;
  font-weight: 600;
  color: #2d3436;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.cookies-table td {
  color: #444;
}

/* --- Responzívny dizajn --- */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .mission-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .nav .container {
    flex-direction: column;
    text-align: center;
  }

  .nav-links {
    justify-content: center;
  }

  .video-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .infographics {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding: 48px 0;
  }

  .vote-section {
    padding: 56px 0;
  }

  .section-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.6rem;
  }

  .nav-links {
    gap: 16px;
    font-size: 0.85rem;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .social-links {
    flex-direction: column;
    align-items: center;
  }
}
