/* ============================================================
   FORCED LABOUR OSTPREUSSEN – style.css
   Wzorowany na forttrzecipomiechowek.org
   ============================================================ */

:root {
    --red:        #cb1d1d;
    --red-dark:   #a01616;
    --red-light:  #f5e0e0;
    --paper:      #f7f5f0;
    --paper-dark: #ece9e2;
    --dark:       #1a1a1a;
    --mid:        #444444;
    --muted:      #777777;
    --border:     #d2d2d2;
    --white:      #ffffff;
    --nav-bg:     #1c1c1c;
    --nav-hover:  #cb1d1d;
    --shadow:     rgba(0,0,0,0.10);
    --font-body:  'Open Sans', sans-serif;
    --font-serif: 'Merriweather', Georgia, serif;
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--dark);
    background-color: var(--paper);
}

a {
    color: var(--red);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover { color: var(--red-dark); }

ul { list-style: none; }

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

/* ---- HEADER ---- */
#site-header {
    background: var(--white);
    border-bottom: 3px solid var(--red);
    box-shadow: 0 2px 8px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 200;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 18px;
}

.site-logo-placeholder {
    width: 64px;
    height: 64px;
    background: var(--red);
    border-radius: 4px;
    flex-shrink: 0;
    position: relative;
}
.site-logo-placeholder::after {
    content: 'FLO';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
}

.site-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
}
.site-title span { color: var(--red); }

.site-subtitle {
    font-size: 0.78rem;
    color: var(--muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 2px;
    font-weight: 300;
}

.header-lang {
    display: flex;
    gap: 6px;
}
.lang-btn {
    padding: 4px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid var(--border);
    color: var(--muted);
    border-radius: 3px;
    letter-spacing: 1px;
    transition: all 0.2s;
}
.lang-btn:hover, .lang-btn.active {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}

/* ---- NAVIGATION ---- */
#main-nav {
    background: var(--nav-bg);
    position: sticky;
    top: 104px; /* under header */
    z-index: 190;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: stretch;
}

.nav-list {
    display: flex;
    gap: 0;
}

.nav-list li a {
    display: block;
    padding: 16px 22px;
    color: #e0e0e0;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: background 0.2s, color 0.2s;
    border-bottom: 3px solid transparent;
}
.nav-list li a:hover,
.nav-list li a.active {
    color: var(--white);
    background: rgba(255,255,255,0.05);
    border-bottom-color: var(--red);
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 14px 0;
    margin-left: auto;
}
.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: 0.2s;
}

/* ---- MAIN CONTENT SECTIONS ---- */
#main-content { min-height: 60vh; }

.content-section { display: none; }
.content-section.active { display: block; }

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px 64px;
}

.section-header {
    margin-bottom: 36px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border);
}

.section-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--red);
    margin-bottom: 8px;
}

.section-desc {
    color: var(--mid);
    font-size: 0.95rem;
    max-width: 700px;
}

/* ---- HERO BANNER (Aktualności) ---- */
.hero-banner {
    background: linear-gradient(135deg, var(--dark) 0%, #3a1010 100%);
    border-left: 5px solid var(--red);
    padding: 48px 40px;
    margin-bottom: 48px;
    border-radius: 4px;
}

.hero-text h2 {
    font-family: var(--font-serif);
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 14px;
    line-height: 1.3;
}
.hero-text p {
    color: #ccc;
    font-size: 1rem;
    max-width: 620px;
    line-height: 1.7;
}

/* ---- NEWS GRID ---- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.news-card {
    background: var(--white);
    border-radius: 4px;
    box-shadow: 0 2px 10px var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}
.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.13);
}

.news-card.featured {
    grid-column: span 2;
    flex-direction: row;
}
.news-card.featured .news-card-img {
    width: 340px;
    flex-shrink: 0;
    min-height: 220px;
}

.news-card-img {
    height: 180px;
    background-color: var(--paper-dark);
}
.placeholder-img       { background-color: #c5b9a8; }
.placeholder-img.dark  { background-color: #7a6a5a; }
.placeholder-img.mid   { background-color: #a89880; }

.news-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.news-date {
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.news-card-title {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.4;
}

.news-card-excerpt {
    font-size: 0.9rem;
    color: var(--mid);
    flex: 1;
}

.btn-read-more {
    display: inline-block;
    margin-top: auto;
    color: var(--red);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
    align-self: flex-start;
}
.btn-read-more:hover { border-bottom-color: var(--red); color: var(--red); }

/* ---- BAZA PRACOWNIKÓW ---- */
.search-panel {
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 4px solid var(--red);
    border-radius: 4px;
    padding: 32px;
    margin-bottom: 36px;
}

.search-panel h3 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.search-form { display: flex; flex-direction: column; gap: 16px; }

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--mid);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.form-group input,
.form-group select {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 3px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--dark);
    background: var(--paper);
    transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--red);
    background: var(--white);
}

.btn-search {
    display: inline-block;
    padding: 12px 36px;
    background: var(--red);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    align-self: flex-start;
    transition: background 0.2s;
}
.btn-search:hover { background: var(--red-dark); }

.db-info { margin-bottom: 32px; }

.db-stat-row {
    display: flex;
    gap: 48px;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}

.db-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.db-stat-num {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--red);
}
.db-stat-label {
    font-size: 0.78rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.db-note {
    font-size: 0.82rem;
    color: var(--muted);
    font-style: italic;
}

.results-placeholder {
    background: var(--white);
    border: 1px dashed var(--border);
    border-radius: 4px;
    padding: 48px;
    text-align: center;
    color: var(--muted);
}

.workers-table-wrap {
    overflow-x: auto;
    border-radius: 4px;
    border: 1px solid var(--border);
}

.workers-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    background: var(--white);
}

.workers-table thead {
    background: var(--dark);
    color: #fff;
}

.workers-table thead th {
    padding: 10px 14px;
    text-align: left;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 0.82rem;
    white-space: nowrap;
}

.workers-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}

.workers-table tbody tr:last-child { border-bottom: none; }

.workers-table tbody tr:hover { background: #f0ece4; }

.workers-table td {
    padding: 9px 14px;
    vertical-align: top;
    line-height: 1.45;
}

.workers-table .warianty {
    font-size: 0.78rem;
    color: var(--muted);
    font-style: italic;
}

.workers-table .zrodlo-cell { color: var(--muted); max-width: 260px; }
.workers-table .zrodlo-cell small { font-size: 0.76rem; }

.workers-table .no-results {
    text-align: center;
    color: var(--muted);
    padding: 36px;
}

/* ---- MATERIAŁY I ŹRÓDŁA ---- */
.materials-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 40px;
}

.materials-sidebar h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
    font-weight: 700;
    margin-bottom: 12px;
}

.cat-list { display: flex; flex-direction: column; gap: 2px; }

.cat-list li a {
    display: block;
    padding: 8px 14px;
    font-size: 0.9rem;
    color: var(--mid);
    border-left: 3px solid transparent;
    border-radius: 0 3px 3px 0;
    transition: all 0.15s;
}
.cat-list li a:hover,
.cat-list li.cat-active a {
    color: var(--red);
    border-left-color: var(--red);
    background: var(--red-light);
}

.archive-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 24px;
    margin-bottom: 16px;
    transition: box-shadow 0.2s;
}
.archive-card:hover { box-shadow: 0 4px 14px var(--shadow); }

.archive-icon {
    width: 52px;
    height: 52px;
    background: var(--red);
    color: var(--white);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.archive-body h4 {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 6px;
}
.archive-body p {
    font-size: 0.88rem;
    color: var(--mid);
    margin-bottom: 10px;
}
.link-arrow {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.link-arrow::after { content: ' →'; }

/* ---- ARTYKUŁY ---- */
.articles-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.filter-btn {
    padding: 8px 20px;
    border: 1px solid var(--border);
    background: var(--white);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--mid);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}

.articles-list { display: flex; flex-direction: column; gap: 24px; }

.article-item {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.article-item:hover { box-shadow: 0 4px 16px var(--shadow); }

.article-img { min-height: 160px; }

.article-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.article-tag {
    display: inline-block;
    padding: 3px 10px;
    background: var(--red-light);
    color: var(--red);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 2px;
    align-self: flex-start;
}

.article-body h3 {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.4;
}

.article-meta {
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.article-excerpt {
    font-size: 0.88rem;
    color: var(--mid);
    flex: 1;
}

/* ---- O PROJEKCIE ---- */
.about-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
}

.about-block {
    margin-bottom: 36px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}
.about-block:last-child { border-bottom: none; }

.about-block h3 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--red);
    margin-bottom: 12px;
}

.about-block p {
    font-size: 0.95rem;
    color: var(--mid);
    line-height: 1.8;
    margin-bottom: 10px;
}

.about-list {
    list-style: disc;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.about-list li {
    font-size: 0.92rem;
    color: var(--mid);
    line-height: 1.6;
}

.about-sidebar { display: flex; flex-direction: column; gap: 20px; }

.about-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 3px solid var(--red);
    border-radius: 4px;
    padding: 22px;
}
.about-card h4 {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}
.about-card p {
    font-size: 0.85rem;
    color: var(--mid);
    line-height: 1.7;
}

.partner-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.partner-list li {
    font-size: 0.88rem;
    color: var(--mid);
    padding-left: 12px;
    border-left: 2px solid var(--red);
}

.funding-note {
    font-size: 0.82rem;
    color: var(--muted);
    font-style: italic;
}

/* ---- FOOTER ---- */
#site-footer {
    background: var(--dark);
    color: #bbb;
    margin-top: 80px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding: 48px 0 36px;
    border-bottom: 1px solid #333;
}

.footer-col h4 {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    color: var(--white);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--red);
    display: inline-block;
}

.footer-col p {
    font-size: 0.85rem;
    line-height: 1.7;
}

.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a {
    font-size: 0.85rem;
    color: #bbb;
    transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--white); }

.footer-col a {
    color: #bbb;
    font-size: 0.85rem;
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 0.78rem;
    color: #666;
}
.footer-bottom a {
    color: #888;
    transition: color 0.2s;
}
.footer-bottom a:hover { color: var(--white); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
    .news-card.featured {
        flex-direction: column;
        grid-column: span 1;
    }
    .news-card.featured .news-card-img { width: 100%; }

    .article-item {
        grid-template-columns: 1fr;
    }
    .article-img { min-height: 180px; }

    .about-layout {
        grid-template-columns: 1fr;
    }
    .about-sidebar { order: -1; }

    .materials-layout { grid-template-columns: 1fr; }
    .materials-sidebar { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
    .cat-list { flex-direction: row; flex-wrap: wrap; }

    .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 660px) {
    .news-grid { grid-template-columns: 1fr; }
    .news-card.featured { grid-column: span 1; }
    .header-inner { flex-wrap: wrap; }

    .nav-hamburger { display: flex; }

    .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
        padding-bottom: 8px;
    }
    .nav-list.open { display: flex; }

    .nav-list li a {
        padding: 12px 16px;
        border-bottom: none;
        border-left: 3px solid transparent;
    }
    .nav-list li a.active,
    .nav-list li a:hover {
        border-left-color: var(--red);
        border-bottom: none;
    }

    .footer-top { grid-template-columns: 1fr; gap: 28px; }
    .db-stat-row { gap: 24px; }
    .hero-banner { padding: 28px 20px; }
    .hero-text h2 { font-size: 1.4rem; }
}

/* ---- UTILITIES ---- */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
