/* =========================================
   RESET I USTAWIENIA OGÓLNE
========================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Roboto Mono", monospace;
}

html {
    scroll-behavior: smooth;
}

body {
    position: relative;
    min-height: 100vh;
    padding-top: 0;
    font-family: Georgia, "Times New Roman", serif;
    color: #f3f7ff;
    text-shadow: 0 2px 4px #000;
    background:
        radial-gradient(circle at 15% 8%, rgba(180, 220, 255, 0.35), transparent 12%),
        radial-gradient(circle at 90% 12%, rgba(90, 160, 255, 0.3), transparent 18%),
        linear-gradient(rgba(3, 8, 18, 0.55), rgba(3, 8, 18, 0.85)),
        url("https://images.unsplash.com/photo-1462331940025-496dfbfc7564?auto=format&fit=crop&w=1800&q=90") center / cover fixed;
}

body.lock-scroll {
    overflow: hidden;
    touch-action: none;
}

.wrap {
    max-width: 1500px;
    margin: auto;
}

/* =========================================
   UKŁAD STRONY / SIDEBAR / CONTENT
========================================= */

.page-layout {
    position: relative;
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 28px;
    padding: 36px 24px 50px;
    align-items: start;
}

.sidebar {
    position: sticky;
    top: 110px;
    align-self: start;
    overflow: hidden;
    padding: 22px 18px;
    border: 1px solid rgba(120, 205, 255, 0.34);
    background:
        linear-gradient(180deg, rgba(12, 18, 30, 0.94), rgba(5, 10, 18, 0.94)),
        linear-gradient(135deg, rgba(214, 170, 91, 0.05), rgba(95, 200, 255, 0.04));
    backdrop-filter: blur(8px);
    clip-path: polygon(
        18px 0,
        calc(100% - 18px) 0,
        100% 18px,
        100% calc(100% - 18px),
        calc(100% - 18px) 100%,
        18px 100%,
        0 calc(100% - 18px),
        0 18px
    );
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 0 0 2px rgba(25, 40, 60, 0.65),
        0 12px 28px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(170, 220, 255, 0.08),
        inset 0 -1px 0 rgba(214, 170, 91, 0.10),
        0 0 16px rgba(74, 194, 255, 0.10);
}

.sidebar-title {
    display: block;
    margin-bottom: 18px;
    padding: 12px 14px;
    text-align: center;
    font-size: 22px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #f7efe0;
    background:
        linear-gradient(135deg, rgba(214, 170, 91, 0.14), rgba(255, 255, 255, 0.02)),
        linear-gradient(180deg, rgba(20, 28, 42, 0.96), rgba(9, 14, 24, 0.96));
    border: 1px solid rgba(214, 170, 91, 0.32);
    clip-path: polygon(
        12px 0,
        100% 0,
        100% calc(100% - 12px),
        calc(100% - 12px) 100%,
        0 100%,
        0 12px
    );
}

.sidebar-title::before {
    content: "🐺";
    margin-right: 8px;
}

.sidebar-menu {
    display: grid;
    gap: 12px;
    margin-bottom: 24px;
    list-style: none;
}

.sidebar-menu a {
    display: block;
    padding: 13px 16px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    text-decoration: none;
    color: #eaf6ff;
    border: 1px solid rgba(120, 205, 255, 0.24);
    background: linear-gradient(180deg, rgba(18, 28, 44, 0.96), rgba(7, 13, 24, 0.96));
    clip-path: polygon(
        10px 0,
        100% 0,
        100% calc(100% - 10px),
        calc(100% - 10px) 100%,
        0 100%,
        0 10px
    );
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    transform: translateY(-2px);
    background: linear-gradient(180deg, rgba(24, 40, 60, 0.98), rgba(10, 18, 30, 0.98));
    border-color: rgba(143, 211, 255, 0.52);
    box-shadow:
        inset 0 1px 0 rgba(200, 235, 255, 0.10),
        inset 0 -1px 0 rgba(214, 170, 91, 0.10),
        0 0 16px rgba(70, 170, 255, 0.18),
        0 0 22px rgba(214, 170, 91, 0.08);
}

.sidebar-box {
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid rgba(120, 205, 255, 0.24);
    background: linear-gradient(180deg, rgba(16, 26, 40, 0.82), rgba(8, 14, 24, 0.82));
    clip-path: polygon(
        10px 0,
        100% 0,
        100% calc(100% - 10px),
        calc(100% - 10px) 100%,
        0 100%,
        0 10px
    );
}

.sidebar-box h3 {
    margin-bottom: 10px;
    font-size: 17px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #f7efe0;
}

.sidebar-box p {
    font-size: 14px;
    line-height: 1.6;
    color: #d6e9fa;
}

.content {
    display: grid;
    gap: 24px;
    min-width: 0;
}

.content-panel {
    padding: 26px;
    border: 1px solid rgba(120, 205, 255, 0.28);
    background:
        linear-gradient(180deg, rgba(8, 14, 24, 0.86), rgba(6, 10, 18, 0.9)),
        linear-gradient(135deg, rgba(214, 170, 91, 0.04), rgba(95, 200, 255, 0.03));
    clip-path: polygon(
        18px 0,
        calc(100% - 18px) 0,
        100% 18px,
        100% calc(100% - 18px),
        calc(100% - 18px) 100%,
        18px 100%,
        0 calc(100% - 18px),
        0 18px
    );
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 0 0 2px rgba(25, 40, 60, 0.65),
        0 16px 34px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(170, 220, 255, 0.08),
        inset 0 -1px 0 rgba(214, 170, 91, 0.08),
        0 0 18px rgba(74, 194, 255, 0.08);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(143, 211, 255, 0.18);
}

.panel-title {
    font-size: clamp(24px, 3vw, 38px);
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #f7efe0;
    text-shadow: 0 0 10px rgba(78, 203, 255, 0.16);
}

.panel-subtitle {
    text-align: right;
    font-size: 14px;
    color: #a9cbe3;
}

.user-badge {
    display: inline-block;
    padding: 10px 14px;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #f7efe0;
    border: 1px solid rgba(214, 170, 91, 0.3);
    background: linear-gradient(180deg, rgba(28, 22, 12, 0.8), rgba(14, 12, 8, 0.8));
    clip-path: polygon(
        10px 0,
        100% 0,
        100% calc(100% - 10px),
        calc(100% - 10px) 100%,
        0 100%,
        0 10px
    );
}

/* =========================================
   LISTY TREŚCI
========================================= */

.post-list,
.event-list,
.news-list {
    display: grid;
    gap: 18px;
}

.post-card,
.event-card,
.news-card {
    padding: 18px;
    border: 1px solid rgba(120, 205, 255, 0.22);
    background: linear-gradient(180deg, rgba(18, 28, 44, 0.92), rgba(8, 14, 24, 0.92));
    clip-path: polygon(
        12px 0,
        100% 0,
        100% calc(100% - 12px),
        calc(100% - 12px) 100%,
        0 100%,
        0 12px
    );
    box-shadow:
        inset 0 1px 0 rgba(180, 230, 255, 0.05),
        inset 0 -1px 0 rgba(214, 170, 91, 0.05),
        0 0 10px rgba(74, 194, 255, 0.06);
}

.post-meta,
.event-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    font-size: 12px;
    text-transform: uppercase;
    color: #9cc4df;
}

.post-card h3,
.event-card h3,
.news-card h3 {
    margin-bottom: 10px;
    font-size: 22px;
    color: #f7efe0;
}

.post-card p,
.event-card p,
.news-card p {
    font-size: 15px;
    line-height: 1.7;
    color: #d8e9f8;
}

/* =========================================
   BLOK LOGOWANIA
========================================= */

.login-required {
    text-align: center;
    padding: 34px 22px;
    border: 1px solid rgba(214, 170, 91, 0.26);
    background: linear-gradient(180deg, rgba(28, 20, 12, 0.82), rgba(10, 10, 12, 0.86));
    clip-path: polygon(
        14px 0,
        100% 0,
        100% calc(100% - 14px),
        calc(100% - 14px) 100%,
        0 100%,
        0 14px
    );
}

.login-required h3 {
    margin-bottom: 12px;
    font-size: 28px;
    color: #f7efe0;
}

.login-required p {
    margin-bottom: 18px;
    font-size: 16px;
    color: #d8e9f8;
}

/* =========================================
   GALERIA
========================================= */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.gallery-tile {
    display: flex;
    align-items: end;
    min-height: 180px;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    border: 1px solid rgba(120, 205, 255, 0.22);
    background:
        linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.45)),
        url("https://images.unsplash.com/photo-1446776877081-d282a0f896e2?auto=format&fit=crop&w=900&q=80") center / cover;
    clip-path: polygon(
        12px 0,
        100% 0,
        100% calc(100% - 12px),
        calc(100% - 12px) 100%,
        0 100%,
        0 12px
    );
}

/* =========================================
   JOIN / PRZYCISKI / STOPKA
========================================= */

.join-box {
    display: grid;
    gap: 18px;
}

.join-box p {
    font-size: 16px;
    line-height: 1.8;
    color: #d8e9f8;
}

.btn {
    display: inline-block;
    margin-top: 6px;
    padding: 12px 26px;
    font-weight: bold;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(#375b78, #14263b);
    border: 1px solid #8fd3ff;
    border-radius: 0;
    clip-path: polygon(
        10px 0,
        100% 0,
        100% calc(100% - 10px),
        calc(100% - 10px) 100%,
        0 100%,
        0 10px
    );
    box-shadow:
        inset 0 0 18px rgba(130, 210, 255, 0.35),
        0 0 16px rgba(70, 170, 255, 0.45);
}

footer {
    margin-top: 20px;
    padding: 18px;
    text-align: center;
    letter-spacing: 2px;
    background: rgba(0, 0, 0, 0.45);
}

/* =========================================
   PRZYCISKI / OVERLAYE MOBILE
========================================= */

.menu-toggle {
    display: none;
    position: fixed;
    left: 16px;
    top: 16px;
    z-index: 1500;
    padding: 12px 14px;
    font-size: 20px;
    color: #fff;
    cursor: pointer;
    border: 1px solid rgba(143, 211, 255, 0.45);
    background: linear-gradient(180deg, rgba(18, 28, 44, 0.98), rgba(7, 13, 24, 0.98));
    clip-path: polygon(
        10px 0,
        100% 0,
        100% calc(100% - 10px),
        calc(100% - 10px) 100%,
        0 100%,
        0 10px
    );
}

.sidebar-overlay {
    display: none;
}

/* =========================================
   STANY AJAX / ANIMACJE
========================================= */

.content.is-loading {
    opacity: 0.55;
    transition: opacity 0.2s ease;
}

.content-panel.is-entering {
    animation: fadePanelIn 0.22s ease;
}

@keyframes fadePanelIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   RESPONSYWNOŚĆ <= 900PX
========================================= */

@media (max-width: 900px) {
    body {
        background-attachment: scroll;
        padding-top: 0;
    }

    .page-layout {
        grid-template-columns: 1fr;
        padding: 24px 16px 40px;
    }

    .menu-toggle {
        display: inline-grid;
        place-items: center;
        top: 72px;
        left: 14px;
        width: 50px;
        height: 50px;
        padding: 0;
        font-size: 22px;
        z-index: 1602;
    }

    .menu-toggle.hidden-while-topnav {
        opacity: 0;
        pointer-events: none;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: min(82vw, 320px);
        height: 100vh;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1605;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-top: 110px;
        clip-path: none;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-overlay.show {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        z-index: 1601;
    }

    .panel-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .panel-subtitle {
        text-align: left;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    footer {
        font-size: 13px;
        letter-spacing: 1px;
        word-break: break-word;
    }
}

/* =========================================
   RESPONSYWNOŚĆ <= 520PX
========================================= */

@media (max-width: 520px) {
    .fb-post-header {
        gap: 10px;
    }

    .fb-post-avatar {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .fb-post-title {
        font-size: 20px;
    }

    .fb-post-actions {
        grid-template-columns: 1fr;
    }

    .fb-composer-top {
        align-items: stretch;
    }

    .fb-composer-trigger {
        min-height: 48px;
        font-size: 14px;
    }

    .composer-actions {
        flex-direction: column;
    }

    .composer-actions .btn {
        width: 100%;
        text-align: center;
    }

    .fb-composer-collapsed {
        align-items: stretch;
    }

    .fb-composer-trigger {
        min-height: 48px;
        font-size: 14px;
    }

    .composer-actions {
        flex-direction: column;
    }

    .composer-actions .btn {
        width: 100%;
        text-align: center;
    }
}

/* =========================================
   RESPONSYWNOŚĆ <= 420PX
========================================= */

@media (max-width: 420px) {
    .menu-toggle {
        top: 74px;
        left: 12px;
        width: 46px;
        height: 46px;
        font-size: 20px;
    }
}

/* =========================================
   DISCORD
========================================= */

.discord-box {
    display: grid;
    gap: 14px;
}

.discord-btn {
    width: 100%;
    margin-top: 0;
    text-align: center;
    background: linear-gradient(180deg, #5865f2, #2f3dbd);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        inset 0 0 18px rgba(255, 255, 255, 0.10),
        0 0 16px rgba(88, 101, 242, 0.35);
}

.discord-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        inset 0 0 18px rgba(255, 255, 255, 0.14),
        0 0 18px rgba(88, 101, 242, 0.45);
}

.discord-widget-wrap {
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(120, 205, 255, 0.22);
    background: linear-gradient(180deg, rgba(18, 28, 44, 0.92), rgba(8, 14, 24, 0.92));
    clip-path: polygon(
        12px 0,
        100% 0,
        100% calc(100% - 12px),
        calc(100% - 12px) 100%,
        0 100%,
        0 12px
    );
    box-shadow:
        inset 0 1px 0 rgba(180, 230, 255, 0.05),
        inset 0 -1px 0 rgba(214, 170, 91, 0.05),
        0 0 10px rgba(74, 194, 255, 0.06);
}

.discord-widget-wrap iframe {
    display: block;
    width: 100%;
    min-height: 320px;
    border: 0;
}

@media (max-width: 900px) {
    .discord-widget-wrap iframe {
        min-height: 280px;
    }
}

/* =========================================
   FORMULARZE POSTÓW / KOMENTARZE
========================================= */

.post-create-box,
.comments-box,
.edit-post-box {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid rgba(120, 205, 255, 0.18);
    background: linear-gradient(180deg, rgba(12, 20, 32, 0.88), rgba(8, 12, 22, 0.88));
    clip-path: polygon(
        10px 0,
        100% 0,
        100% calc(100% - 10px),
        calc(100% - 10px) 100%,
        0 100%,
        0 10px
    );
}

.post-create-box h3,
.comments-box h4 {
    margin-bottom: 14px;
    color: #f7efe0;
    text-transform: uppercase;
}

.post-form,
.comment-form {
    display: grid;
    gap: 12px;
}

.post-form input,
.post-form textarea,
.comment-form textarea {
    width: 100%;
    padding: 12px 14px;
    color: #f3f7ff;
    background: rgba(8, 14, 24, 0.92);
    border: 1px solid rgba(143, 211, 255, 0.28);
    outline: none;
    font-size: 14px;
}

.post-form textarea,
.comment-form textarea {
    resize: vertical;
    min-height: 110px;
}

.comment-form textarea {
    min-height: 90px;
}

.post-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.small-btn {
    padding: 10px 16px;
    font-size: 13px;
}

.danger-btn {
    background: linear-gradient(180deg, #7a2d2d, #3b1414);
    border-color: rgba(255, 120, 120, 0.5);
    box-shadow:
        inset 0 0 18px rgba(255, 120, 120, 0.15),
        0 0 16px rgba(255, 80, 80, 0.18);
}

.comment-list {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
}

.comment-item {
    padding: 12px;
    border: 1px solid rgba(120, 205, 255, 0.16);
    background: rgba(255, 255, 255, 0.03);
}

.comment-item strong {
    display: inline-block;
    margin-right: 10px;
    color: #f7efe0;
}

.comment-item span {
    font-size: 12px;
    color: #9cc4df;
}

.comment-item p {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.6;
}

.post-edited-note {
    margin-top: 10px;
    font-size: 12px;
    color: #9cc4df;
}

.edit-post-box[hidden] {
    display: none;
}

/* =========================================
   POSTY W STYLU SOCIAL / FACEBOOK-LIKE
========================================= */

.fb-create-post-box {
    margin-bottom: 10px;
}

.fb-create-post-box h3 {
    margin-bottom: 14px;
    font-size: 18px;
    letter-spacing: 1px;
    text-transform: none;
}

.fb-create-post-form textarea {
    min-height: 120px;
}

.fb-post-card {
    display: grid;
    gap: 16px;
    padding: 20px;
}

.fb-post-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.fb-post-avatar,
.fb-comment-avatar {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-weight: 800;
    font-size: 18px;
    color: #f7efe0;
    background:
        linear-gradient(135deg, rgba(95, 200, 255, 0.32), rgba(214, 170, 91, 0.22)),
        linear-gradient(180deg, rgba(20, 28, 42, 0.96), rgba(9, 14, 24, 0.96));
    border: 1px solid rgba(143, 211, 255, 0.25);
    box-shadow: 0 0 12px rgba(74, 194, 255, 0.12);
}

.fb-comment-avatar {
    width: 36px;
    height: 36px;
    font-size: 14px;
}

.fb-post-author-block {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.fb-post-author-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.fb-post-author {
    font-size: 16px;
    font-weight: 800;
    color: #f7efe0;
}

.fb-post-owner-badge {
    padding: 4px 8px;
    font-size: 11px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #dff4ff;
    background: rgba(95, 200, 255, 0.12);
    border: 1px solid rgba(95, 200, 255, 0.22);
    border-radius: 999px;
}

.fb-post-date,
.fb-post-updated {
    font-size: 12px;
    color: #9cc4df;
}

.fb-post-title {
    margin-bottom: 10px;
    font-size: 24px;
    line-height: 1.25;
    color: #f7efe0;
}

.fb-post-content {
    font-size: 15px;
    line-height: 1.8;
    color: #d8e9f8;
    white-space: normal;
    word-break: break-word;
}

.fb-post-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 4px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(143, 211, 255, 0.14);
}

.fb-post-likes-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #b9d7ec;
}

.fb-like-icon {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(95, 200, 255, 0.18);
    font-size: 12px;
}

.fb-comments-counter {
    padding: 0;
    font-size: 13px;
    color: #b9d7ec;
    background: transparent;
    border: none;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    box-shadow: none;
    clip-path: none;
}

.fb-comments-counter:hover {
    color: #f3f7ff;
}

.fb-post-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding-top: 2px;
}

.fb-action-form {
    display: block;
}

.fb-action-form .fb-action-btn {
    width: 100%;
}

.fb-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 700;
    color: #dfefff;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(143, 211, 255, 0.16);
    cursor: pointer;
    transition: 0.18s ease;
    clip-path: polygon(
        10px 0,
        100% 0,
        100% calc(100% - 10px),
        calc(100% - 10px) 100%,
        0 100%,
        0 10px
    );
}

.fb-action-btn:hover {
    transform: translateY(-1px);
    background: rgba(95, 200, 255, 0.08);
    border-color: rgba(143, 211, 255, 0.28);
}

.fb-action-btn.liked {
    color: #9fdcff;
    border-color: rgba(95, 200, 255, 0.36);
    background: rgba(95, 200, 255, 0.10);
}

.fb-action-btn.danger {
    color: #ffd3d3;
    border-color: rgba(255, 120, 120, 0.28);
    background: rgba(122, 45, 45, 0.18);
}

.fb-comments-panel {
    display: grid;
    gap: 14px;
    padding-top: 6px;
    border-top: 1px solid rgba(143, 211, 255, 0.10);
}

.fb-comment-list {
    display: grid;
    gap: 12px;
    margin-bottom: 0;
}

.fb-comment-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 0;
    border: none;
    background: transparent;
}

.fb-comment-bubble {
    flex: 1;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(143, 211, 255, 0.10);
}

.fb-comment-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.fb-comment-head strong {
    margin: 0;
    color: #f7efe0;
    font-size: 14px;
}

.fb-comment-head span {
    font-size: 11px;
    color: #9cc4df;
}

.fb-comment-bubble p {
    margin-top: 0;
    font-size: 14px;
    line-height: 1.65;
    color: #d8e9f8;
}

.fb-comment-form {
    display: grid;
    gap: 10px;
}

.fb-comment-form textarea {
    min-height: 80px;
    border-radius: 14px;
}

.fb-no-comments {
    font-size: 14px;
    color: #b9d7ec;
}

@media (min-width: 700px) {
    .fb-post-actions {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 699px) {
    .fb-post-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.fb-comments-panel[hidden] {
    display: none !important;
}

/* =========================================
   EDYTOR HTML / MEDIA
========================================= */

.html-editor-box {
    display: grid;
    gap: 8px;
}

.html-editor-box label,
.media-field label {
    font-size: 13px;
    font-weight: 700;
    color: #f7efe0;
}

.html-help {
    font-size: 12px;
    color: #9cc4df;
    line-height: 1.5;
}

.post-media-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.media-field {
    display: grid;
    gap: 8px;
}

.media-field input[type="file"] {
    width: 100%;
    padding: 10px 12px;
    color: #d8e9f8;
    background: rgba(8, 14, 24, 0.92);
    border: 1px solid rgba(143, 211, 255, 0.28);
}

.post-media-wrap {
    margin-top: 16px;
}

.post-inline-image,
.preview-image {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid rgba(143, 211, 255, 0.18);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}

.post-inline-video,
.preview-video {
    display: block;
    width: 100%;
    max-height: 520px;
    border-radius: 18px;
    background: #000;
    border: 1px solid rgba(143, 211, 255, 0.18);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}

.existing-media-box {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(143, 211, 255, 0.16);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 14px;
}

.media-remove-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #ffd9d9;
}

.formatted-post-content p,
.formatted-post-content ul,
.formatted-post-content ol,
.formatted-post-content blockquote,
.formatted-post-content h3,
.formatted-post-content h4 {
    margin-bottom: 12px;
}

.formatted-post-content ul,
.formatted-post-content ol {
    padding-left: 22px;
}

.formatted-post-content a {
    color: #8fd3ff;
    text-decoration: underline;
}

.formatted-post-content blockquote {
    padding: 12px 14px;
    border-left: 4px solid rgba(95, 200, 255, 0.45);
    background: rgba(255, 255, 255, 0.04);
}

.formatted-post-content strong,
.formatted-post-content b {
    color: #ffffff;
}

.formatted-post-content h3,
.formatted-post-content h4 {
    color: #f7efe0;
}

@media (max-width: 700px) {
    .post-media-fields {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   COMPOSER / TWORZENIE POSTÓW
========================================= */

.fb-create-collapsed-box {
    display: grid;
    gap: 14px;
}

.fb-composer-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fb-composer-trigger {
    flex: 1;
    min-height: 52px;
    padding: 0 18px;
    text-align: left;
    font-size: 15px;
    color: #b9d7ec;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(143, 211, 255, 0.18);
    border-radius: 999px;
    cursor: pointer;
    transition: 0.18s ease;
}

.fb-composer-trigger:hover {
    background: rgba(95, 200, 255, 0.08);
    border-color: rgba(143, 211, 255, 0.30);
}

.composer-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-secondary {
    background: linear-gradient(180deg, #34475c, #1a2736);
    border-color: rgba(160, 190, 220, 0.35);
    box-shadow:
        inset 0 0 18px rgba(180, 220, 255, 0.10),
        0 0 16px rgba(70, 120, 160, 0.12);
}

.fb-create-post-form textarea[name="post_body"] {
    min-height: 220px;
    font-family: "Roboto Mono", monospace;
    line-height: 1.65;
}

.formatted-post-content pre {
    overflow-x: auto;
    padding: 14px;
    margin-bottom: 12px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.32);
    border: 1px solid rgba(143, 211, 255, 0.12);
    white-space: pre-wrap;
    word-break: break-word;
}

.formatted-post-content code {
    font-family: "Roboto Mono", monospace;
    font-size: 13px;
    color: #dff4ff;
}

.edit-post-box textarea[name="post_body"] {
    min-height: 220px;
    font-family: "Roboto Mono", monospace;
    line-height: 1.65;
}

/* =========================================
   COMPOSER JAK FACEBOOK
========================================= */

.fb-composer-collapsed {
    display: flex;
    align-items: center;
    gap: 12px;
}

.composer-expanded[hidden] {
    display: none !important;
}

/* =========================================
   WOLF BATTLE BUTTON
========================================= */

.wolf-battle-box {
    display: grid;
    gap: 14px;
}

.wolf-battle-btn {
    width: 100%;
    margin-top: 0;
    text-align: center;
    background: linear-gradient(180deg, #7b5a2a, #2b1d0f);
    border: 1px solid rgba(214, 170, 91, 0.55);
    box-shadow:
        inset 0 0 18px rgba(255, 220, 140, 0.10),
        0 0 16px rgba(214, 170, 91, 0.22);
}

.wolf-battle-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        inset 0 0 18px rgba(255, 220, 140, 0.14),
        0 0 18px rgba(214, 170, 91, 0.30);
}