/* RESET I PODSTAWY */
* { box-sizing: border-box; }
html { scrollbar-gutter: stable; height: 100%; }
body {
    background-color: #121212;
    color: #e0e0e0;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
a { text-decoration: none; color: inherit; transition: 0.2s; }

/* KONTENER */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* NAGŁÓWEK - STICKY */
.main-header {
    background: #000;
    padding: 20px 0;
    border-bottom: 1px solid #2a2a2a;
    margin-bottom: 30px;
    position: sticky;
    top: 0;
    z-index: 1000; 
}

.header-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.logo-main-wrapper { display: flex; flex-direction: column; }
.logo-link { display: flex; align-items: center; gap: 18px; }
.logo-img { height: 55px; width: auto; }
.logo-text-wrapper h1 { color: #ff751f; font-size: 1.7rem; font-weight: 800; margin: 0; letter-spacing: -1px; line-height: 1.1; }
.tagline { color: #666; font-size: 0.75rem; text-transform: uppercase; margin: 2px 0 0 0; font-weight: 600; }

.top-list-mini {
    font-size: 0.65rem;
    color: #ff751f;
    text-transform: uppercase;
    font-weight: 700;
    margin-top: 5px;
    padding-left: 73px;
    letter-spacing: 1px;
    opacity: 0.7;
}

/* AKCJE NAGŁÓWKA */
.header-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.search-form { display: flex; width: 260px; }
.search-form input { background: #1a1a1a; border: 1px solid #333; color: #fff; padding: 8px; border-radius: 6px 0 0 6px; flex-grow: 1; outline: none; }
.search-form button { background: #ff751f; color: #fff; border: none; padding: 0 15px; border-radius: 0 6px 6px 0; cursor: pointer; font-weight: bold; }

/* SEKCJA POWITALNA (HERO) */
.welcome-hero {
    max-width: 800px; 
    margin: 0 auto 60px auto;
    text-align: left;
    /* KRESKA ZAWSZE PO LEWEJ */
    border-left: 4px solid #ff751f;
    padding-left: 30px;
}

.hero-title {
    margin-top: 0;
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 25px;
    color: #fff;
}

.hero-desc {
    /* POPRAWKA: Rozmiar standardowy (1rem) zamiast powiększonego (1.1rem) */
    font-size: 1rem;
    
    /* POPRAWKA: Kolor dziedziczony z body, żeby był identyczny jak reszta */
    color: inherit;
    
    margin-bottom: 20px;
    line-height: 1.6;
    font-weight: 400;
    
    /* JUSTOWANIE TEKSTU */
    text-align: justify;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

.hero-desc strong { color: #fff; font-weight: 600; }

.text-link { color: #ff751f; font-weight: 600; transition: color 0.3s; }
.text-link:hover { color: #ff944d; text-decoration: none; }

/* Cytat w Hero */
.hero-quote-wrapper {
    margin-top: 40px;
    padding-left: 0;
    border-left: none;
    text-align: left; 
}
.quote-content { 
    font-size: 1.05rem; 
    color: #aaa;
    font-style: italic; 
    line-height: 1.5; 
}
.quote-author { 
    margin-top: 10px; 
    font-size: 0.8rem; 
    color: #555; 
    font-weight: 600; 
    text-transform: uppercase; 
    text-align: right; 
    display: block; 
}

/* DIVIDER */
.elegant-divider { height: 1px; background: #1f1f1f; margin: 0 auto 50px auto; width: 100%; max-width: 150px; }
.section-divider-title { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 3px; color: #444; text-align: center; margin-bottom: 40px; font-weight: 700; }

/* WYNIKI WYSZUKIWANIA SPECJALNE */
.search-section-header {
    background: #222;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    color: #ff751f;
    margin-bottom: 15px;
    font-size: 0.9rem;
    text-transform: uppercase;
}
.calendar-search-results {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.calendar-search-item {
    background: #1a1a1a;
    padding: 15px 20px;
    border-radius: 10px;
    border: 1px solid #333;
    display: block;
    transition: 0.2s;
}
.calendar-search-item:hover {
    border-color: #ff751f;
    background: #222;
}
.search-date {
    color: #ff751f;
    font-weight: bold;
    margin-right: 10px;
}
.search-desc {
    color: #ccc;
    font-size: 0.95rem;
}

/* TREŚĆ WPISÓW I KARTY */
main { flex: 1; }

.main-content { max-width: 800px; margin: 0 auto; }

.story-card { 
    background: #1a1a1a; 
    padding: 25px; 
    border-radius: 14px; 
    border: 1px solid #252525; 
    margin-bottom: 30px; 
}

.story-card h2 { font-size: 1.6rem; margin: 10px 0; color: #fff; }
.badge {
    background: rgba(255, 117, 31, 0.1); color: #ff751f; padding: 5px 12px; border-radius: 6px; font-size: 0.7rem; font-weight: 700; border: 1px solid rgba(255, 117, 31, 0.2);
}
.read-more { color: #ff751f; font-weight: 700; margin-left: 5px; }

/* STYL POJEDYNCZEGO WPISU & LINKÓW WEWNĄTRZ */
.article-body {
    font-size: 1rem;
    line-height: 1.6;
    color: inherit;
    min-height: 200px;
}
.article-body a { 
    color: #ff751f; 
    font-weight: 700; 
    text-decoration: none; 
    transition: 0.3s; 
}
.article-body a:hover { 
    color: #ff944d; 
}

/* KALENDARIUM - STYL PORTALOWY */
.calendar-item {
    border-left: 4px solid #ff751f;
    padding: 5px 0 5px 25px;
    margin-bottom: 25px;
    transition: border-color 0.3s;
}
.calendar-item:hover { border-left-color: #fff; }

.calendar-text {
    font-size: 1rem;
    line-height: 1.6;
    color: inherit; 
}

/* PAGINACJA MINIMALISTYCZNA */
.pagination { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 15px; 
    margin: 30px 0; 
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.text-nav-btn {
    color: #ff751f;
    transition: 0.3s;
    background: transparent;
    border: none;
    padding: 10px;
}
.text-nav-btn:hover {
    color: #fff;
}

.pagination-sep {
    color: #333;
    font-weight: 400;
}

.page-info { color: #555; font-size: 0.8rem; margin: 0 10px; font-weight: 400; letter-spacing: 0;}

/* STOPKA */
.site-footer {
    background: #000; 
    padding: 30px 0; 
    border-top: 1px solid #222; 
    margin-top: 30px;
    width: 100%;
}
.footer-content { display: flex; flex-direction: column; align-items: center; text-align: center; }
.copyright { color: #888; font-size: 0.85rem; font-weight: 800; }

/* MOBILNOŚĆ */
@media (max-width: 900px) {
    .header-top { flex-direction: column; text-align: center; }
    
    .welcome-hero {
        padding-left: 20px;
        /* KRESKA ZOSTAJE PO LEWEJ, TAK JAK CHCIAŁEŚ */
        border-left: 4px solid #ff751f;
        border-top: none;
        padding-top: 0;
    }
    
    .hero-desc {
        text-align: justify; /* Justowanie zostaje też na mobile */
    }
    
    .story-card {
        padding: 20px;
    }
    
    .author-img { width: 140px; height: 140px; }
    .header-actions { width: 100%; align-items: center; }
    .top-list-mini { padding-left: 0; text-align: center; }
    
    .pagination { font-size: 0.75rem; gap: 5px; }
}