/* ================================
   FONT DEFINITIES
   ================================ */

@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('/fonts/playfair-display-800.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('/fonts/playfair-display-800italic.woff2') format('woff2');
  font-weight: 800;
  font-style: italic;
}


/* ================================
   VLAGGEN
   ================================ */
.language-selector {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 1000;
}
.language-selector a {
  margin-left: 8px;
  opacity: 0.35;
  transition: opacity 0.3s ease;
  text-decoration: none !important;
}
.language-selector a:hover {
  opacity: 1;
}
.language-selector .active {
  opacity: 1;
}
.flag-icon {
  font-size: 1.5rem;
}


/* ================================
   BASISSTIJL
   ================================ */

:root {
  --primary-yellow: #f5c400;
  --accent-red: #d11d1d;
  --dark: #212529;
  --bg-light: #f9f9f9;
  --font-body: 'Inter', sans-serif;
  --font-titles: 'Playfair Display', serif;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--dark);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

a {
  color: #b40000
}

/* ================================
   TYPOGRAFIE
   ================================ */

h1, h2, h3, h4, h5, h6, .hero-title {
  font-family: var(--font-titles);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 1rem;
}

h3 .small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  color: #555;
  margin-top: 0.5rem;
}




/* ================================
   HERO SECTIE
   ================================ */

.hero-section {
  background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
  border-radius: 1rem;
}

.hero-logo {
  max-height: 220px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.1));
}

.tiny_hero {
  max-height: 150px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.1));
}

.border-warning {
  border-color: var(--primary-yellow) !important;
}
/* ================================
   LAYOUT EN COMPONENTEN
   ================================ */

.container {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.card {
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border: none;
}

.icon-large {
  font-size: 48px;
  color: var(--primary-yellow);
  background-color: var(--dark);
  padding: 20px;
  border-radius: 50%;
  display: inline-block;
  margin-bottom: 10px;
}

section:hover {
  background-color: #fff8e1;
  border-radius: 1rem;
  transition: all 0.3s ease;
}

article.blog-preview, 
article.mastodon-post{
  background-color: #fff8e1;
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.mastodon-feed h3
 {
  text-align: center;
}

/* Remove invisible elements in Mastodon posts */
.mastodon-post .invisible {
  display: none !important;
}

/* Add ellipsis after .ellipsis elements */
.mastodon-post .ellipsis::after {
  content: "…";
}


/* ================================
   FOOTER
   ================================ */

footer {
  background-color: #eee;
  color: #444;
}

/* ================================
   IMAGE FLOAT
   ================================ */
.float-left {
  float: left;
  margin: 0 15px 15px 0;
}

.float-right {
  float: right;
  margin: 0 0 15px 15px;
}

/* ================================
   TABLES
   ================================ */
table
  {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
  }

thead {
  border-bottom: 3px solid var(--primary-yellow);
}

th, td {
  padding: 0.75rem;
  text-align: center;
  border-bottom: 1px dashed #ddd;  
}

th:first-child, td:first-child {
  text-align: left;
  font-weight: 800;
}

table {
  border-collapse: collapse;
}

/* Highlight row on hover */
tr:hover {
  background-color: #ffffcc;
}

/* Highlight column on hover - generate for each column */
table:has(tr > *:nth-child(2):hover) tr > *:nth-child(2),
table:has(tr > *:nth-child(3):hover) tr > *:nth-child(3),
table:has(tr > *:nth-child(4):hover) tr > *:nth-child(4),
table:has(tr > *:nth-child(5):hover) tr > *:nth-child(5),
table:has(tr > *:nth-child(6):hover) tr > *:nth-child(6),
table:has(tr > *:nth-child(7):hover) tr > *:nth-child(7),
table:has(tr > *:nth-child(8):hover) tr > *:nth-child(8),
table:has(tr > *:nth-child(9):hover) tr > *:nth-child(9),
table:has(tr > *:nth-child(10):hover) tr > *:nth-child(10) {
  background-color: #ffffcc;
}

td:hover {
  background-color: var(--primary-yellow) ! important;
}

table a {
  text-decoration: none;
}

table a:hover {
  font-weight: bold;
  text-decoration: none;
}

/* ================================
   PARTY PAGES
   ================================ */
.party-logo {
  max-height: 150px;
  margin-bottom: 1rem;
}

.region-logo {
  max-height: 150px;
  margin-bottom: 1rem;
} 


/* ================================
   RESPONSIVE (optioneel later)
   ================================ */

/* media queries kunnen later toegevoegd worden voor nog mooiere schaalbaarheid */

