/* ==========================================================================
   CKM INFO MODULE (v1.1)
   Obsługuje: Zarząd, Redakcja, Kontakt
   PRO-Comment: Unifikacja styli Card UI + Social Media Engine.
   ========================================================================== */

/* 1. RESET I GLOBALNE */
.post-main-container header, .entry-header, .post-header, .header-visual, .archive-header {
    display: none !important;
}
body { background-color: #f8faf9; margin: 0; }

.ckm-full-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* 2. TOP BAR & BREADCRUMBS */
.ckm-page-top-bar {
    padding: 40px 0;
    width: 100%;
    border-bottom: 1px solid #eaeaea;
    background: #fff;
}

.ckm-breadcrumb-light { 
    color: #888888 !important;
    font-size: 11px !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px; 
    display: block; 
}
.ckm-breadcrumb-light a, .ckm-breadcrumb-light span {
    color: #888888 !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
}
.ckm-breadcrumb-light a:hover { color: #00a859 !important; }

/* 3. TYTUŁ Z PASKAMI /// */
.ckm-title-group { display: flex; align-items: center; gap: 15px; }
.ckm-page-title {
    font-size: 36px; font-weight: 900; color: #111; 
    text-transform: uppercase; margin: 0; letter-spacing: -1.5px; line-height: 1;
}
.ckm-slash-group { display: flex; gap: 6px; }
.ckm-slash-item { width: 10px; height: 32px; transform: skewX(-20deg); }
.s-w { background: #fff; border: 1px solid #ddd; }
.s-g { background: #00a859; }
.s-b { background: #111; }

/* 4. LAYOUT I SEKCJE */
.ckm-main-grid { display: flex; gap: 40px; margin-top: 40px; align-items: start; padding-bottom: 80px; }
.ckm-content-area { flex: 1; min-width: 0; }
.ckm-sidebar-area { width: 320px; position: sticky; top: 20px; }

.ckm-section-header-v2 { display: flex; align-items: center; margin-bottom: 30px; }
.ckm-section-header-v2 h2 {
    font-size: 16px; font-weight: 800; text-transform: uppercase;
    color: #111; margin: 0 25px 0 0;
}
.ckm-section-line-v2 { height: 2px; background: #e0e0e0; flex-grow: 1; position: relative; }
.ckm-section-line-v2::after {
    content: ''; position: absolute; left: 0; top: 0;
    width: 50px; height: 2px; background: #00a859;
}

/* 5. KARTY (Mirror Card UI) */
.ckm-board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}
.ckm-member-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 35px 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.ckm-member-card::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: #00a859;
}
.ckm-member-card:hover { transform: translateY(-5px); border-color: #00a859; }

.ckm-member-name { font-size: 22px; font-weight: 900; color: #111; text-transform: uppercase; margin-bottom: 6px; letter-spacing: -0.5px; }
.ckm-member-role { font-size: 12px; font-weight: 700; color: #00a859; text-transform: uppercase; letter-spacing: 1.5px; }

/* 6. KONTAKT W KARCIE */
.ckm-member-contact { margin-top: 20px; padding-top: 15px; border-top: 1px dashed #eaeaea; }
.ckm-contact-item { display: flex; align-items: center; font-size: 13px; color: #666; margin-bottom: 8px; }
.ckm-contact-item:last-child { margin-bottom: 0; }
.ckm-contact-icon { color: #00a859; font-weight: 900; margin-right: 10px; width: 16px; text-align: center; }
.ckm-contact-item a { color: #666 !important; text-decoration: none; transition: 0.3s; }
.ckm-contact-item a:hover { color: #00a859 !important; }

/* 7. SOCIAL MEDIA ENGINE (Nowość dla Redakcji) */
/* --- AKTUALIZACJA SOCIAL MEDIA ENGINE V3 --- */

.ckm-social-grid {
    display: flex;
    gap: 12px; /* Zwiększony odstęp dla ikon */
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #eaeaea;
}

.ckm-social-link {
    width: 36px; /* Nieco większe dla ikon SVG */
    height: 36px;
    background: #f4f7f5;
    border-radius: 8px; /* Zgodnie z v2.0 */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444 !important; /* Domyślny kolor ikony */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #eee;
}

/* Stylizacja samej ikony SVG wewnątrz linku */
.ckm-social-link svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

/* Hover State - "The Concordia Green" */
.ckm-social-link:hover {
    background: #00a859;
    color: #ffffff !important; /* Ikona staje się biała na zielonym tle */
    border-color: #00a859;
    box-shadow: 0 4px 12px rgba(0, 168, 89, 0.2);
}

.ckm-social-link:hover svg {
    transform: scale(1.15); /* Delikatne powiększenie samej ikony */
}


















/* ==========================================================================
   CKM MESSENGER COMPONENT (MODAL + TRIGGER)
   PRO-Comment: Tylko klasy funkcyjne dla okienka popup. Nie wpływa na layout.
   ========================================================================== */

/* 1. PRZYCISK W KARCIE (Mały, dyskretny dodatek) */
.ckm-btn-popup-trigger {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 6px 12px; margin-top: 15px;
    background: transparent; color: #55625c;
    border: 1px solid #dbe2de; border-radius: 8px;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
    cursor: pointer; transition: all 0.3s ease; text-decoration: none;
    width: fit-content;
}
.ckm-btn-popup-trigger svg { width: 14px; height: 14px; stroke: currentColor; }
.ckm-btn-popup-trigger:hover {
    background: #00a859; color: #ffffff; border-color: #00a859;
}

/* 2. TŁO MODALA (Overlay) */
.ckm-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(10, 17, 13, 0.7);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.ckm-modal-overlay.active { opacity: 1; visibility: visible; }

/* 3. KARTA MODALA */
.ckm-modal-box {
    background: #ffffff; width: 95%; max-width: 450px;
    border-radius: 16px; padding: 35px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    position: relative;
    transform: translateY(20px);
    transition: all 0.3s ease;
}
.ckm-modal-overlay.active .ckm-modal-box { transform: translateY(0); }

/* Przycisk X (Zamknij) */
.ckm-modal-close {
    position: absolute; top: 20px; right: 20px;
    width: 30px; height: 30px; border-radius: 50%;
    background: #f4f7f5; color: #111; border: none;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; cursor: pointer; transition: 0.3s;
}
.ckm-modal-close:hover { background: #ee3124; color: #fff; }

/* Header wewnątrz okienka */
.ckm-modal-box .ckm-inset-header {
    text-align: left; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 1px solid #eee;
}
.ckm-modal-box .ckm-inset-header h3 {
    margin: 0; font-size: 22px; font-weight: 900; text-transform: uppercase; color: #111;
}
.ckm-modal-box .ckm-inset-header p {
    margin: 5px 0 0; color: #666; font-size: 14px;
}
.ckm-modal-box .ckm-inset-header p span { color: #00a859; font-weight: 800; }

/* 4. POLA FORMULARZA W MODALU */
.ckm-messenger-ui input, 
.ckm-messenger-ui textarea {
    width: 100%; padding: 12px 16px; margin-bottom: 15px;
    background: #f9f9f9; border: 1px solid #ddd;
    border-radius: 8px; font-size: 14px; transition: 0.3s;
    font-family: inherit;
}
.ckm-messenger-ui input:focus, 
.ckm-messenger-ui textarea:focus {
    border-color: #00a859; background: #fff; outline: none; box-shadow: 0 0 0 4px rgba(0,168,89,0.1);
}

/* Przycisk Wyślij wewnątrz Modala */
.ckm-submit-btn {
    width: 100%; padding: 15px; background: #111; color: #fff;
    border: none; border-radius: 8px; font-weight: 800; text-transform: uppercase;
    cursor: pointer; transition: 0.3s;
}
.ckm-submit-btn:hover { background: #00a859; transform: translateY(-2px); }

/* Status wysyłki */
.ckm-status-box {
    margin-top: 15px; padding: 10px; border-radius: 6px; font-size: 13px; text-align: center; display: none;
}
.ckm-status-box.success { background: #e9f7ef; color: #1e7e34; display: block; }
.ckm-status-box.error { background: #fdf2f2; color: #c82333; display: block; }
.ckm-status-box.info { background: #f0f7ff; color: #004085; display: block; }









/* 8. RWD */
@media (max-width: 992px) {
    .ckm-main-grid { flex-direction: column; }
    .ckm-sidebar-area { width: 100%; position: static; }
    .ckm-page-title { font-size: 32px; }
}

