/* ==========================================================================
   dla-czlonkow.css
   Style widoków sekcji "Tylko dla członków" (dlaCzlonkowController).
   Korzysta z tokenów zdefiniowanych w :root przez lesnik.css:
   --forest-dark, --forest, --forest-light, --gold, --gold-soft, --cream,
   --text, --card. Fonty: 'Cinzel' (nagłówki/etykiety), 'Cormorant Garamond'
   (tekst). Plik jest samodzielny — nie nadpisuje reguł .content-card,
   tylko je uzupełnia.
   ========================================================================== */

.czl-back-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-family: 'Cinzel', serif;
    font-size: .85rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--gold-soft);
    text-decoration: none;
    margin-bottom: 1.25rem;
}

.czl-back-link:hover {
    color: var(--gold);
}

.czl-page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: 1.5rem;
}

.czl-page-header h2 {
    margin: 0;
}

.czl-page-subtitle {
    font-family: 'Cormorant Garamond', serif;
    color: var(--gold-soft);
    font-size: 1.05rem;
}

/* ---- siatka dokumentów (protokoły, przepisy, plany polowań) ---- */
.czl-doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.czl-doc-card {
    display: flex;
    align-items: center;
    gap: .9rem;
    background: var(--card);
    border: 1px solid rgba(212, 177, 93, .25);
    border-radius: 10px;
    padding: 1rem 1.2rem;
    text-decoration: none;
    color: var(--text);
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.czl-doc-card:hover {
    transform: translateY(-3px);
    border-color: var(--gold);
    box-shadow: 0 10px 22px rgba(0,0,0,.35);
    color: var(--text);
}

.czl-doc-icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--gold), var(--gold-soft));
    color: var(--forest-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: .7rem;
    letter-spacing: .03em;
}

.czl-doc-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.08rem;
    line-height: 1.35;
}

.czl-empty {
    font-family: 'Cormorant Garamond', serif;
    color: var(--gold-soft);
    font-style: italic;
    padding: 1.5rem 0;
}

/* ---- siatka lat (wybór roku dla protokołów / walnych) ---- */
.czl-year-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: .85rem;
}

.czl-year-card {
    display: block;
    text-align: center;
    padding: 1.1rem .5rem;
    background: var(--card);
    border: 1px solid rgba(212, 177, 93, .25);
    border-radius: 10px;
    text-decoration: none;
    color: var(--gold-soft);
    font-family: 'Cinzel', serif;
    letter-spacing: .04em;
    transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

.czl-year-card:hover {
    border-color: var(--gold);
    background: var(--forest-light);
    transform: translateY(-2px);
    color: var(--gold);
}

.czl-year-card .czl-year-sub {
    display: block;
    margin-top: .3rem;
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: normal;
    font-size: .85rem;
    color: var(--text);
}

/* ---- lista uchwał (walne zgromadzenia, obowiązujące uchwały) ---- */
.czl-resolution-list {
    display: flex;
    flex-direction: column;
    gap: .7rem;
}

.czl-resolution-card {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    align-items: center;
    gap: 1rem;
    background: var(--card);
    border: 1px solid rgba(212, 177, 93, .2);
    border-radius: 10px;
    padding: .85rem 1.1rem;
}

.czl-resolution-nr {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-weight: 700;
    white-space: nowrap;
}

.czl-resolution-date {
    color: var(--gold-soft);
    font-size: .9rem;
    white-space: nowrap;
}

.czl-resolution-sprawa {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
}

.czl-resolution-link {
    justify-self: end;
}

@media (max-width: 680px) {
    .czl-resolution-card {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .czl-resolution-link {
        justify-self: start;
    }
}

/* ---- sekcja załączników (drugorzędne dokumenty do protokołu WZ) ---- */
.czl-attachments {
    margin-top: 1.75rem;
}

.czl-attachments h3 {
    margin-bottom: .75rem;
}

/* ---- siatka aktualności (komunikaty) ---- */
.czl-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.czl-news-card {
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid rgba(212, 177, 93, .22);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.czl-news-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
    box-shadow: 0 12px 26px rgba(0,0,0,.4);
    color: var(--text);
}

.czl-news-thumb {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
}

.czl-news-body {
    padding: 1rem 1.15rem 1.25rem;
}

.czl-news-title {
    font-family: 'Cinzel', serif;
    font-size: 1.05rem;
    color: var(--gold-soft);
    margin: 0 0 .5rem;
    letter-spacing: .02em;
}

.czl-news-excerpt {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    line-height: 1.4;
    color: var(--text);
    opacity: .9;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---- szczegóły komunikatu ---- */
.czl-article-header {
    margin-bottom: 1rem;
}

.czl-article-date {
    text-align: right;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    color: var(--gold-soft);
    font-size: .9rem;
    margin-top: 1.5rem;
}

.czl-article-image {
    float: left;
    max-width: 320px;
    width: 100%;
    border-radius: 10px;
    margin: 0 1.25rem 1rem 0;
}

/* ---- archiwum komunikatów (statyczna treść historyczna) ---- */
.czl-archive-card {
    background: var(--card);
    border: 1px solid rgba(212, 177, 93, .2);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
}

.czl-archive-date {
    display: block;
    text-align: right;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: .85rem;
    color: var(--gold-soft);
    margin-top: .85rem;
}

/* ---- mapy obwodów łowieckich ---- */
.czl-map-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}

.czl-map-card {
    background: var(--card);
    border: 1px solid rgba(212, 177, 93, .22);
    border-radius: 12px;
    overflow: hidden;
}

.czl-map-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
    margin: 0;
}

.czl-map-card-body {
    padding: 1rem 1.15rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.czl-map-card-title {
    font-family: 'Cinzel', serif;
    color: var(--gold-soft);
    font-size: 1rem;
}

/* ---- karty informacyjne (finanse, sekcje w budowie) ---- */
.czl-info-card {
    background: var(--card);
    border: 1px solid rgba(212, 177, 93, .25);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.czl-account-number {
    display: inline-block;
    margin: .75rem 0 1.25rem;
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    letter-spacing: .08em;
    color: var(--gold);
}

.czl-placeholder {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--gold-soft);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
}

.czl-placeholder img {
    max-width: 220px;
    opacity: .85;
    margin-bottom: 1rem;
}

/* ---- stronicowanie (X.PagedList.Mvc.Core) ---- */
.czl-pagination {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.czl-pagination ul {
    display: flex;
    list-style: none;
    gap: .35rem;
    margin: 0;
    padding: 0;
}

.czl-pagination li a,
.czl-pagination li span {
    display: inline-block;
    padding: .45rem .85rem;
    border-radius: 6px;
    border: 1px solid rgba(212, 177, 93, .3);
    color: var(--gold-soft);
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: .85rem;
}

.czl-pagination li.active span,
.czl-pagination li a:hover {
    background: var(--gold);
    color: var(--forest-dark);
    border-color: var(--gold);
}

.czl-pagination li.disabled span {
    opacity: .4;
}

.czl-page-info {
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    color: var(--gold-soft);
    font-size: .9rem;
    margin-top: .5rem;
}

.content-card p > a.read-more-btn {
    display: inline-block;
    font-size: 1rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}
