/* === RESET I PODSTAWY === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f0f2f5;
}

/* === LAYOUT === */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 10px;
}

/* === NAWIGACJA === */
.navbar {
    padding: 10px 0;
    background: #ff5733;
    color: whitesmoke;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.navbar h1 {
    font-size: 24px;
}

.navbar-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

.navbar span {
    font-weight: bold;
    color: white;
    margin-right: 5px;
}

.navbar-profile-link {
    white-space: nowrap;
    margin-right: 0 !important;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 4px;
}

.navbar a:hover {
    background: #166fe5;
    transform: translateY(-2px);
}

.navbar > .container > .navbar-left > a {
    background: none;
    padding: 0;
}

.navbar > .container > .navbar-left > a:hover {
    background: none;
    transform: none;
}

.navbar img {
    cursor: pointer;
}

.navbar-profile-link {
    white-space: nowrap;
}

.navbar {
    padding: 10px 0;
    background: #ff5733;
    color: whitesmoke;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* === WYSZUKIWARKA === */
.search-form {
    display: flex;
    align-items: center;
    position: relative;
    flex: 1;
    max-width: 400px;
	margin-right:10px;
}

.search-input {
    padding: 8px 16px 8px 35px;
    border: none;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.2);
    width: 100%;
    font-size: 14px;
    font-weight: bold;
    color: white;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: white;
    font-weight: bold;
}

.search-input:focus {
    outline: none;
    background: #166fe5;
}

.search-button {
    position: absolute;
    left: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    color: white;
    transition: none;
}

.search-button:hover {
    background: none;
    transform: none;
}

/* === WYNIKI WYSZUKIWANIA === */
.search-user-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-user-item .post-avatar {
    width: 32px;
    height: 32px;
    font-size: 16px;
}

/* === KARTY === */
.card {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card h2 {
    margin-bottom: 15px;
}

/* === POSTY === */
.post {
    border-bottom: 1px solid #e4e6eb;
    padding: 15px 0;
}

.post:last-child {
    border-bottom: none;
}

.post-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.post-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.post-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ff5733;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    flex-shrink: 0;
}

.post-username {
    font-weight: bold;
    color: #ff5733;
    text-decoration: none;
}

.post-username:hover {
    color: #166fe5;
}

.post-time {
    font-size: 12px;
    color: #65676b;
    margin-left: 5px;
}

.post-content {
    margin: 10px 0 10px 42px;
    line-height: 1.5;
}

.post-header {
    font-weight: bold;
    color: #ff5733;
    margin-bottom: 8px;
}

.post-header a {
    color: #ff5733;
    text-decoration: none;
}

.post-header a:hover {
    color: #166fe5;
}

/* === FORMULARZE === */
input,
textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: Arial, sans-serif;
}

textarea {
    resize: vertical;
}

button {
    background: #ff5733;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

button:hover {
    background: #166fe5;
}

/* === KOMUNIKATY === */
.error {
    color: red;
    margin: 10px 0;
}

.success {
    color: green;
    margin: 10px 0;
    padding: 10px;
    background: #d4edda;
    border-radius: 4px;
}

/* === LISTA UŻYTKOWNIKÓW === */
.user-list {
    list-style: none;
}

.user-list li {
    padding: 10px;
    border-bottom: 1px solid #e4e6eb;
}

.user-list li:last-child {
    border-bottom: none;
}

.user-list a {
    text-decoration: none;
    color: #ff5733;
    transition: color 0.3s ease;
}

.user-list a:hover {
    color: #166fe5;
}

/* === LINKI === */
a {
    transition: color 0.3s ease;
}

/* === PROFIL === */
.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #ff5733;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: bold;
}

.profile-info h2 {
    margin-bottom: 5px;
}

.profile-stats {
    color: #65676b;
    font-size: 14px;
    margin: 5px 0;
}

.btn-message {
    display: inline-block;
    background: #ff5733;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    margin-top: 10px;
    transition: background 0.3s ease;
}

.btn-message:hover {
    background: #166fe5;
}

/* === FLOATING ACTION BUTTON (FAB) === */
.fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #ff5733;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 999;
}

.fab:hover {
    background: #166fe5;
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.fab-icon {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

/* === CARD WRAPPER === */
.card-wrapper {
    position: relative;
}

.card-wrapper.placeholder-active {
    min-height: 200px;
}

/* === STICKY POST SECTION === */
.sticky-post {
    position: fixed !important;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 20px);
    max-width: 780px;
    z-index: 998;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin: 20px 0 !important;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

/* === ANIMACJA FEEDU === */
.feed-slide-up {
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-10px);
    }
}

/* === ANIMACJA POWROTU === */
.feed-slide-down {
    animation: slideDownFeed 0.4s ease-out;
}

@keyframes slideDownFeed {
    from {
        transform: translateY(-10px);
    }
    to {
        transform: translateY(0);
    }
}

/* === IKONA USTAWIEŃ W ROGU === */
.navbar-settings-corner {
    position: absolute;
    top: 15px;
    right: 20px;
    padding: 8px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.navbar-settings-corner:hover {
    background: #166fe5 !important;
    transform: scale(1.1) rotate(90deg);
}

.settings-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
    transition: none;
}

.navbar-settings:hover .settings-icon {
    transform: rotate(45deg);
}

/* === USTAWIENIA === */
.settings-section {
    padding: 20px 0;
    border-bottom: 1px solid #e4e6eb;
}

.settings-section:last-child {
    border-bottom: none;
}

.settings-section h3 {
    margin-bottom: 15px;
    color: #ff5733;
}

.settings-section p {
    margin: 10px 0;
}

/* === PRZYCISK DRUGORZĘDNY === */
.btn-secondary {
    background: #e4e6eb;
    color: #050505;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background 0.3s ease;
    margin-top: 10px;
}

.btn-secondary:hover {
    background: #d0d2d6;
}

body.dark-mode .btn-secondary {
    background: #3a3b3c;
    color: #e4e6eb;
}

body.dark-mode .btn-secondary:hover {
    background: #4a4b4c;
}

/* === ROZWIJANY FORMULARZ === */
.collapsible-form {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, margin-top 0.4s ease;
    margin-top: 0;
}

.collapsible-form.active {
    max-height: 400px;
    margin-top: 15px;
}

.collapsible-form form {
    padding-top: 10px;
}

.settings-section p {
    margin: 10px 0;
}

/* === TRYB CIEMNY === */
body.dark-mode {
    background: #18191a;
    color: #e4e6eb;
}

body.dark-mode .navbar {
    background: #242526;
}

body.dark-mode .card {
    background: #242526;
    color: #e4e6eb;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

body.dark-mode .post {
    border-bottom: 1px solid #3a3b3c;
}

body.dark-mode input,
body.dark-mode textarea {
    background: #3a3b3c;
    border: 1px solid #3a3b3c;
    color: #e4e6eb;
}

body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
    color: #b0b3b8;
}

body.dark-mode .success {
    background: #1f3a2e;
    color: #4caf50;
}

body.dark-mode .post-time {
    color: #b0b3b8;
}

body.dark-mode .profile-stats {
    color: #b0b3b8;
}

body.dark-mode .user-list li {
    border-bottom: 1px solid #3a3b3c;
}

/* === PRZEŁĄCZNIK TRYBU === */
.theme-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.theme-toggle label {
    font-size: 16px;
    font-weight: bold;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
    appearance: none;
    background: #ccc;
    border-radius: 13px;
    outline: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.toggle-switch:checked {
    background: #ff5733;
}

.toggle-switch::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: white;
    top: 2px;
    left: 2px;
    transition: transform 0.3s ease;
}

.toggle-switch:checked::before {
    transform: translateX(24px);
}

body.dark-mode .settings-section h3 {
    color: #ff5733;
}

body.dark-mode .settings-section p {
    color: #b0b3b8;
}

/* === KONTROLKI ROZMIARU CZCIONKI === */
.font-size-control {
    margin-top: 20px;
}

.font-size-control label {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: bold;
}

.font-size-buttons {
    display: flex;
    gap: 10px;
}

.font-btn {
    width: 50px;
    height: 50px;
    border: 2px solid #e4e6eb;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    color: #050505;
}

.font-btn[data-size="small"] {
    font-size: 14px;
}

.font-btn[data-size="normal"] {
    font-size: 18px;
}

.font-btn[data-size="large"] {
    font-size: 22px;
}

.font-btn[data-size="xlarge"] {
    font-size: 26px;
}

.font-btn:hover {
    border-color: #ff5733;
    background: #fff5f3;
}

.font-btn.active {
    border-color: #ff5733;
    background: #ff5733;
    color: white;
}

body.dark-mode .font-btn {
    background: #3a3b3c;
    border-color: #4a4b4c;
    color: #e4e6eb;
}

body.dark-mode .font-btn:hover {
    background: #4a4b4c;
    border-color: #ff5733;
}

body.dark-mode .font-btn.active {
    background: #ff5733;
    border-color: #ff5733;
}

/* === ROZMIARY CZCIONKI === */
body.font-small {
    font-size: 12px;
}

body.font-small .post-content {
    font-size: 12px;
}

body.font-small h2 {
    font-size: 18px;
}

body.font-small h3 {
    font-size: 16px;
}

body.font-normal {
    font-size: 14px;
}

body.font-large {
    font-size: 16px;
}

body.font-large .post-content {
    font-size: 16px;
}

body.font-large h2 {
    font-size: 26px;
}

body.font-large h3 {
    font-size: 22px;
}

body.font-xlarge {
    font-size: 18px;
}

body.font-xlarge .post-content {
    font-size: 18px;
}

body.font-xlarge h2 {
    font-size: 30px;
}

body.font-xlarge h3 {
    font-size: 26px;
}

/* === WYSOKI KONTRAST === */
body.high-contrast {
    background: #000000;
    color: #ffffff;
}

body.high-contrast .navbar {
    background: #000000;
    border-bottom: 3px solid #ffff00;
}

body.high-contrast .card {
    background: #000000;
    color: #ffffff;
    border: 3px solid #ffff00;
}

body.high-contrast .post {
    border-bottom: 2px solid #ffff00;
}

body.high-contrast input,
body.high-contrast textarea {
    background: #000000;
    border: 2px solid #ffff00;
    color: #ffffff;
}

body.high-contrast button {
    background: #ffff00;
    color: #000000;
    border: 2px solid #ffff00;
    font-weight: bold;
}

body.high-contrast button:hover {
    background: #000000;
    color: #ffff00;
}

body.high-contrast .navbar a {
    background: #ffff00;
    color: #000000;
}

body.high-contrast .navbar a:hover {
    background: #000000;
    color: #ffff00;
    border: 2px solid #ffff00;
}

body.high-contrast .post-avatar {
    background: #ffff00;
    color: #000000;
    border: 2px solid #ffff00;
}

body.high-contrast .post-username,
body.high-contrast .post-header a {
    color: #ffff00;
    font-weight: bold;
}

body.high-contrast .fab {
    background: #ffff00;
    border: 3px solid #ffff00;
}

body.high-contrast .fab:hover {
    background: #000000;
    border: 3px solid #ffff00;
}

body.high-contrast .success {
    background: #000000;
    color: #00ff00;
    border: 2px solid #00ff00;
}

body.high-contrast .search-input {
    background: #000000;
    border: 2px solid #ffff00;
}

body.high-contrast .search-input::placeholder {
    color: #ffff00;
}

body.high-contrast .user-list li {
    border-bottom: 2px solid #ffff00;
}

body.high-contrast .navbar-settings-corner {
    background: #ffff00 !important;
    border: 2px solid #ffff00;
}

body.high-contrast .settings-icon {
    filter: brightness(0);
}

/* === UPLOAD MEDIÓW === */
.media-upload {
    margin: 10px 0;
}

.media-label {
    display: inline-block;
    background: #e4e6eb;
    color: #050505;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.media-label:hover {
    background: #d0d2d6;
}

#media-input {
    display: none;
}

#file-name {
    margin-left: 10px;
    color: #65676b;
    font-size: 14px;
}

body.dark-mode .media-label {
    background: #3a3b3c;
    color: #e4e6eb;
}

body.dark-mode .media-label:hover {
    background: #4a4b4c;
}

/* === WYŚWIETLANIE MEDIÓW === */
.post-media {
    margin: 15px 0 10px 42px;
    border-radius: 8px;
    overflow: hidden;
}

.post-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.post-video {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.post-file {
    display: inline-block;
    background: #e4e6eb;
    padding: 10px 15px;
    border-radius: 4px;
    text-decoration: none;
    color: #050505;
    font-weight: bold;
    transition: background 0.3s ease;
}

.post-file:hover {
    background: #ff5733;
    color: white;
}

body.dark-mode .post-file {
    background: #3a3b3c;
    color: #e4e6eb;
}

body.dark-mode .post-file:hover {
    background: #ff5733;
}

/* === UPLOAD MEDIÓW === */
.media-upload {
    margin: 10px 0;
}

.media-label {
    display: inline-block;
    background: #e4e6eb;
    color: #050505;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.media-label:hover {
    background: #d0d2d6;
}

#media-input {
    display: none;
}

#file-name {
    margin-left: 10px;
    color: #65676b;
    font-size: 14px;
}

body.dark-mode .media-label {
    background: #3a3b3c;
    color: #e4e6eb;
}

body.dark-mode .media-label:hover {
    background: #4a4b4c;
}

/* === WYŚWIETLANIE MEDIÓW === */
.post-media {
    margin: 15px 0 10px 42px;
    border-radius: 8px;
    overflow: hidden;
}

.post-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.post-video {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.post-file {
    display: inline-block;
    background: #e4e6eb;
    padding: 10px 15px;
    border-radius: 4px;
    text-decoration: none;
    color: #050505;
    font-weight: bold;
    transition: background 0.3s ease;
}

.post-file:hover {
    background: #ff5733;
    color: white;
}

body.dark-mode .post-file {
    background: #3a3b3c;
    color: #e4e6eb;
}

body.dark-mode .post-file:hover {
    background: #ff5733;
}

/* === EDYCJA PROFILU === */
.profile-edit-section {
    margin: 20px 0;
    padding: 15px 0;
    border-bottom: 1px solid #e4e6eb;
}

.profile-edit-section:last-of-type {
    border-bottom: none;
}

.profile-edit-section h3 {
    margin-bottom: 10px;
    color: #ff5733;
}

.current-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 10px 0;
    display: block;
}

.current-banner {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin: 10px 0;
    display: block;
}

.no-avatar, .no-banner {
    padding: 20px;
    background: #f0f2f5;
    border-radius: 8px;
    text-align: center;
    color: #65676b;
    margin: 10px 0;
}

.btn-cancel {
    display: inline-block;
    background: #e4e6eb;
    color: #050505;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    margin-left: 10px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.btn-cancel:hover {
    background: #d0d2d6;
}

body.dark-mode .btn-cancel {
    background: #3a3b3c;
    color: #e4e6eb;
}

body.dark-mode .btn-cancel:hover {
    background: #4a4b4c;
}

body.dark-mode .no-avatar,
body.dark-mode .no-banner {
    background: #3a3b3c;
}

/* === BANER PROFILU === */
.profile-banner {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    border-radius: 8px 8px 0 0;
    margin-bottom: -50px;
}

.profile-avatar-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

body.dark-mode .profile-avatar-img {
    border-color: #18191a;
}

.profile-bio {
    margin: 10px 0;
    color: #050505;
}

body.dark-mode .profile-bio {
    color: #e4e6eb;
}

/* === MAŁE AVATARY W POSTACH === */
.post-avatar-img-link {
    flex-shrink: 0;
}

.post-avatar-img-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

/* === STYLE BANERÓW === */
.profile-banner {
    width: 100%;
    height: 250px;
    border-radius: 8px 8px 0 0;
    margin-bottom: -50px;
}

.banner-style-cover {
    background-size: cover;
    background-position: center;
}

.banner-style-contain {
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f0f2f5;
}

.banner-style-repeat {
    background-size: auto;
    background-position: top left;
    background-repeat: repeat;
}

body.dark-mode .banner-style-contain {
    background-color: #242526;
}

/* === SELEKTOR STYLU BANERA === */
.banner-style-selector {
    margin-top: 20px;
}

.banner-style-selector h4 {
    margin-bottom: 15px;
    color: #050505;
}

body.dark-mode .banner-style-selector h4 {
    color: #e4e6eb;
}

.banner-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.banner-option {
    cursor: pointer;
    border: 2px solid #e4e6eb;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.banner-option:hover {
    border-color: #ff5733;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.banner-option input[type="radio"] {
    display: none;
}

.banner-option input[type="radio"]:checked + .option-preview {
    color: #ff5733;
}

.banner-option input[type="radio"]:checked ~ .option-preview .preview-box {
    border-color: #ff5733;
}

.option-preview {
    text-align: center;
}

.preview-box {
    width: 100%;
    height: 80px;
    border-radius: 4px;
    margin-bottom: 10px;
    border: 2px solid #e4e6eb;
    transition: border-color 0.3s ease;
}

.option-preview span {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.option-preview small {
    display: block;
    color: #65676b;
    font-size: 12px;
}

body.dark-mode .banner-option {
    border-color: #3a3b3c;
    background: #242526;
}

body.dark-mode .banner-option:hover {
    border-color: #ff5733;
}

body.dark-mode .preview-box {
    border-color: #3a3b3c;
}

/* === PODGLĄD BANERA W EDYCJI === */
.banner-preview-container {
    margin: 10px 0;
    border-radius: 8px;
    overflow: hidden;
    height: 200px;
}

.current-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-style-contain.current-banner {
    object-fit: contain;
    background: #f0f2f5;
}

.banner-style-repeat.current-banner {
    object-fit: none;
    object-position: top left;
}

body.dark-mode .banner-style-contain.current-banner {
    background: #242526;
}

/* === RESPONSYWNOŚĆ === */
@media (max-width: 768px) {
    .banner-options {
        grid-template-columns: 1fr;
    }
}

/* === SYSTEM REAKCJI (FASOLKA) === */
.reaction-pill {
    display: inline-flex;
    margin: 10px 0 0 42px;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e4e6eb;
}

.reaction-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    background: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    border-right: 1px solid #e4e6eb;
}

.reaction-btn:last-child {
    border-right: none;
}

.reaction-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.reaction-icon {
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
}

.reaction-count {
    font-size: 14px;
    min-width: 20px;
    text-align: center;
}

/* Plus (pomarańczowy) */
.reaction-plus {
    color: #ff5733;
}

.reaction-plus:hover:not(:disabled) {
    background: #fff5f3;
    transform: scale(1.05);
}

.reaction-plus.active {
    background: #ff5733;
    color: white;
}

.reaction-plus.active .reaction-icon,
.reaction-plus.active .reaction-count {
    color: white;
}

/* Minus (jasnoniebieski) */
.reaction-minus {
    color: #166fe5;
}

.reaction-minus:hover:not(:disabled) {
    background: #e7f3ff;
    transform: scale(1.05);
}

.reaction-minus.active {
    background: #166fe5;
    color: white;
}

.reaction-minus.active .reaction-icon,
.reaction-minus.active .reaction-count {
    color: white;
}

/* Tryb ciemny */
body.dark-mode .reaction-pill {
    border-color: #3a3b3c;
}

body.dark-mode .reaction-btn {
    background: #242526;
    border-right-color: #3a3b3c;
}

body.dark-mode .reaction-plus {
    color: #ff5733;
}

body.dark-mode .reaction-plus:hover:not(:disabled) {
    background: #3a2620;
}

body.dark-mode .reaction-plus.active {
    background: #ff5733;
    color: white;
}

body.dark-mode .reaction-minus {
    color: #166fe5;
}

body.dark-mode .reaction-minus:hover:not(:disabled) {
    background: #1a2942;
}

body.dark-mode .reaction-minus.active {
    background: #166fe5;
    color: white;
}

/* Wysoki kontrast */
body.high-contrast .reaction-pill {
    border: 3px solid #ffff00;
}

body.high-contrast .reaction-btn {
    background: #000000;
    border-right: 3px solid #ffff00;
}

body.high-contrast .reaction-plus,
body.high-contrast .reaction-minus {
    color: #ffff00;
}

body.high-contrast .reaction-plus:hover:not(:disabled),
body.high-contrast .reaction-minus:hover:not(:disabled) {
    background: #ffff00;
    color: #000000;
}

body.high-contrast .reaction-plus.active {
    background: #ff5733;
    color: #000000;
    border: 2px solid #ffff00;
}

body.high-contrast .reaction-minus.active {
    background: #166fe5;
    color: #000000;
    border: 2px solid #ffff00;
}

/* Animacja kliknięcia */
.reaction-btn:active:not(:disabled) {
    transform: scale(0.95);
}

/* Responsywność */
@media (max-width: 768px) {
    .reaction-pill {
        margin-left: 0;
    }

    .reaction-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .reaction-icon {
        font-size: 16px;
    }
}

/* === MENU USTAWIEŃ POSTA (Z IKONĄ settings1.png) === */

/* Kontener menu (pozycjonowanie względem posta) */
.post-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-menu {
    position: relative;
    margin-left: auto;
}

/* === PRZYCISK ⚙️ === */
.post-menu-btn {
    position: relative;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    z-index: 5;
}

.post-menu-btn:hover {
    background: #166fe5;
    transform: scale(1.1) rotate(90deg);
}

/* Ikona wewnątrz przycisku */
.post-menu-icon {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(0); /* ciemna ikona na jasnym tle */
    transition: transform 0.3s ease, filter 0.3s ease;
}

.post-menu-btn:hover .post-menu-icon {
    filter: brightness(0) invert(1); /* biała ikona przy hoverze */
    transform: rotate(90deg);
}

/* === ROZWIJANE MENU === */
.post-menu-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s ease;
}

.post-menu-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* === ELEMENTY MENU === */
.menu-item {
    display: block;
    padding: 10px 16px;
    text-decoration: none;
    color: #050505;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    border-radius: 0;
    transition: background 0.2s ease;
}

.menu-item:hover {
    background: #f0f2f5;
}

.delete-btn {
    color: #dc3545;
}

.delete-btn:hover {
    background: #fff0f0;
}

/* === TRYB CIEMNY === */
body.dark-mode .post-menu-btn {
    background: rgba(255, 255, 255, 0.1);
}

body.dark-mode .post-menu-icon {
    filter: brightness(0) invert(1); /* jasna ikona */
}

body.dark-mode .post-menu-btn:hover {
    background: #166fe5;
    transform: scale(1.1) rotate(90deg);
}

body.dark-mode .post-menu-dropdown {
    background: #242526;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

body.dark-mode .menu-item {
    color: #e4e6eb;
}

body.dark-mode .menu-item:hover {
    background: #3a3b3c;
}

body.dark-mode .delete-btn:hover {
    background: #3a2020;
}

/* === WYSOKI KONTRAST === */
body.high-contrast .post-menu-btn {
    background: #ffff00;
    border: 2px solid #ffff00;
}

body.high-contrast .post-menu-icon {
    filter: brightness(0);
}

body.high-contrast .post-menu-btn:hover {
    background: #000;
    border-color: #ffff00;
    transform: scale(1.1) rotate(90deg);
}

body.high-contrast .post-menu-dropdown {
    background: #000;
    border: 3px solid #ffff00;
}

body.high-contrast .menu-item {
    color: #ffff00;
}

body.high-contrast .menu-item:hover {
    background: #ffff00;
    color: #000;
}

body.high-contrast .delete-btn {
    color: #ff0000;
}

/* === NOWY PRZYCISK KOMENTARZY === */
.comment-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #ff5733; /* kolor główny */
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.comment-btn:hover {
    background-color: #ff704d; /* jaśniejszy pomarańczowy */
    transform: scale(1.08);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.25);
}

.comment-icon {
    width: 21px;
    height: 21px;
    object-fit: contain;
    filter: brightness(0) invert(1); /* biała ikona */
}

/* === Tryb ciemny === */
body.dark-mode .comment-btn {
    background-color: #ff5733;
    box-shadow: none;
}

body.dark-mode .comment-btn:hover {
    background-color: #ff704d;
    transform: scale(1.08);
}

body.dark-mode .comment-icon {
    filter: brightness(0) invert(1);
}

/* === Wysoki kontrast === */
body.high-contrast .comment-btn {
    background: #000;
    border: 2px solid #ffff00;
}

body.high-contrast .comment-btn:hover {
    background: #ffff00;
    transform: scale(1.08);
}

body.high-contrast .comment-icon {
    filter: brightness(1);
}

/* === STRONA POSTA + KOMENTARZE === */
.post-detail-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 10px;
}

/* Post główny na stronie szczegółów */
.post-detail-container .card {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.post-detail-container .post {
    border-bottom: none;
    padding: 0;
}

.post-detail-container .post-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.post-detail-container .post-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.post-detail-container .post-content {
    margin: 10px 0 10px 42px;
    line-height: 1.5;
}

.post-detail-container .post-media {
    margin: 15px 0 10px 42px;
    border-radius: 8px;
    overflow: hidden;
}

.post-detail-container .reaction-pill {
    margin: 10px 0 0 42px;
}

/* Tryb ciemny dla post detail */
body.dark-mode .post-detail-container .card {
    background: #242526;
    color: #e4e6eb;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Wysoki kontrast dla post detail */
body.high-contrast .post-detail-container .card {
    background: #000000;
    color: #ffffff;
    border: 3px solid #ffff00;
}

/* Sekcja komentarzy */
.comments-section {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.comments-section h2 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
}

/* Formularz komentarzy */
.comment-form {
    padding: 15px 0;
    border-bottom: 1px solid #e4e6eb;
    margin-bottom: 15px;
}

.comment-form textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: Arial, sans-serif;
    resize: vertical;
}

.comment-form button {
    background: #ff5733;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.comment-form button:hover {
    background: #166fe5;
}

/* Komentarze - stylizowane jak posty */
.comment-list {
    display: flex;
    flex-direction: column;
}

.comment {
    border-bottom: 1px solid #e4e6eb;
    padding: 15px 0;
}

.comment:last-child {
    border-bottom: none;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.comment-avatar,
.comment-avatar-text {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-avatar-text {
    background: #ff5733;
    color: white;
    font-weight: bold;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.comment-username {
    font-weight: bold;
    color: #ff5733;
    text-decoration: none;
}

.comment-username:hover {
    color: #166fe5;
}

.comment-time {
    font-size: 12px;
    color: #65676b;
    margin-left: 5px;
}

.comment-content {
    margin: 10px 0 10px 42px;
    line-height: 1.5;
}

/* Brak komentarzy */
.no-comments {
    text-align: center;
    color: #65676b;
    font-style: italic;
    padding: 20px 0;
}

/* === TRYB CIEMNY - KOMENTARZE === */
body.dark-mode .comments-section {
    background: #242526;
    color: #e4e6eb;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

body.dark-mode .comment {
    border-bottom: 1px solid #3a3b3c;
}

body.dark-mode .comment-form {
    border-bottom: 1px solid #3a3b3c;
}

body.dark-mode .comment-form textarea {
    background: #3a3b3c;
    border: 1px solid #3a3b3c;
    color: #e4e6eb;
}

body.dark-mode .comment-form textarea::placeholder {
    color: #b0b3b8;
}

body.dark-mode .comment-time {
    color: #b0b3b8;
}

body.dark-mode .no-comments {
    color: #b0b3b8;
}

/* === WYSOKI KONTRAST - KOMENTARZE === */
body.high-contrast .comments-section {
    background: #000000;
    color: #ffffff;
    border: 3px solid #ffff00;
}

body.high-contrast .comment {
    border-bottom: 2px solid #ffff00;
}

body.high-contrast .comment-form {
    border-bottom: 2px solid #ffff00;
}

body.high-contrast .comment-form textarea {
    background: #000000;
    border: 2px solid #ffff00;
    color: #ffffff;
}

body.high-contrast .comment-avatar-text {
    background: #ffff00;
    color: #000000;
    border: 2px solid #ffff00;
}

body.high-contrast .comment-username {
    color: #ffff00;
    font-weight: bold;
}

body.high-contrast .no-comments {
    color: #ffff00;
}
/* Sekcja tła profilu */
.profile-edit-section h3 {
    margin-bottom: 10px;
}

/* Gdy użytkownik nie ma tła */
.no-background {
    width: 100%;
    padding: 20px;
    background: #f0f2f5;
    border: 2px dashed #ccc;
    color: #777;
    text-align: center;
    border-radius: 10px;
}

/* Podgląd aktualnego tła profilu */
.background-preview-container {
    width: 100%;
    max-width: 500px;
    margin-bottom: 10px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Sam obraz tła — proporcje 16:9 */
.current-background {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Input pliku dla tła */
input[name="background"] {
    margin-top: 10px;
}

/* === BIBLIOTEKA GIER === */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.game-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.game-link {
    display: block;
    text-decoration: none;
    color: inherit;
    flex-grow: 1;
}

.game-thumbnail {
    width: 100%;
    height: 180px;
    background: #f0f2f5;
    overflow: hidden;
}

.game-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.game-link:hover .game-thumb-img {
    transform: scale(1.08);
}

.game-info {
    padding: 18px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.game-info h3 {
    margin: 0 0 10px;
    color: #ff5733;
    font-size: 22px;
}

.game-desc {
    color: #333;
    margin: 8px 0;
    font-size: 14.5px;
    line-height: 1.5;
    flex-grow: 1;
}

.game-author {
    font-size: 13px;
    color: #65676b;
    margin-top: auto;
    font-style: italic;
}

.game-play-btn {
    display: block;
    text-align: center;
    background: #ff5733;
    color: white;
    padding: 14px;
    font-weight: bold;
    font-size: 16px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.game-play-btn:hover {
    background: #166fe5;
}

/* Placeholder na nowe gry */
.game-card.placeholder {
    opacity: 0.8;
    border: 3px dashed #ccc;
    justify-content: center;
    text-align: center;
}

.game-card.placeholder .game-thumbnail {
    background: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-card.placeholder .placeholder-icon {
    width: 80px;
    height: 80px;
    opacity: 0.6;
}

/* === TRYB CIEMNY === */
body.dark-mode .game-card {
    background: #242526;
}

body.dark-mode .game-desc {
    color: #e4e6eb;
}

body.dark-mode .game-author {
    color: #b0b3b8;
}

body.dark-mode .game-card.placeholder {
    border-color: #3a3b3c;
}

body.dark-mode .game-card.placeholder .game-thumbnail {
    background: #18191a;
}

/* === WYSOKI KONTRAST === */
body.high-contrast .game-card {
    background: #000000;
    border: 3px solid #ffff00;
}

body.high-contrast .game-info h3 {
    color: #ffff00;
}

body.high-contrast .game-desc,
body.high-contrast .game-author {
    color: #ffffff;
}

body.high-contrast .game-play-btn {
    background: #ffff00;
    color: #000000;
    font-weight: bold;
}

body.high-contrast .game-play-btn:hover {
    background: #000000;
    color: #ffff00;
    border: 2px solid #ffff00;
}

body.high-contrast .game-card.placeholder {
    border-style: dashed;
    border-color: #ffff00;
}

/* === PODGLĄD TŁA W EDYCJI PROFILU === */
.bg-preview {
    width: 100%;
    height: 200px;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    overflow: hidden;
}

.bg-preview p {
    font-size: 18px;
    font-weight: bold;
    padding: 10px 20px;
    background: rgba(0,0,0,0.5);
    border-radius: 4px;
}

/* === OPCJE RADIA DLA TRYBÓW TŁA === */
.bg-mode-label {
    display: block;
    margin: 15px 0 8px 0;
    font-weight: bold;
    color: #ff5733;
}

.bg-mode-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    accent-color: #ff5733;
    width: 18px;
    height: 18px;
}

.radio-option span {
    font-size: 15px;
}

/* === TŁO PROFILU PEŁNOEKRANOWE (jeśli chcesz fixed) === */
body.has-profile-bg {
    background-image: var(--profile-bg-image);
    background-size: var(--profile-bg-mode);
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* === TŁO POSTÓW UŻYTKOWNIKA === */
.user-posts-custom-bg .post {
    background-image: var(--post-bg-image);
    background-size: var(--post-bg-mode);
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Tryb ciemny – lepsze kontrasty */
body.dark-mode .bg-preview p {
    background: rgba(0,0,0,0.7);
}

body.dark-mode .user-posts-custom-bg .post {
    border-color: #3a3b3c;
}

/* === PODGLĄD I OPCJE DLA TŁA PROFILU (identyczne jak baner) === */
.background-preview-container {
    margin: 10px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.current-background {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.background-style-selector {
    margin-top: 15px;
}

.background-style-selector h4 {
    color: #ff5733;
    margin-bottom: 10px;
}

.background-options {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.background-option {
    text-align: center;
    cursor: pointer;
}

.background-option input[type="radio"] {
    display: none;
}

.background-option .option-preview {
    width: 120px;
    height: 80px;
    border: 3px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 8px;
    transition: border 0.3s;
}

.background-option input[type="radio"]:checked + .option-preview {
    border-color: #ff5733;
}

.background-option span {
    display: block;
    font-weight: bold;
}

.background-option small {
    display: block;
    font-size: 12px;
    color: #aaa;
}

/* Podgląd dla tła – te same style co dla banera */
.background-option .preview-box {
    width: 100%;
    height: 100%;
}

/* Dark mode */
body.dark-mode .background-option small {
    color: #888;
}

/* Pełnoekranowe tło profilu – fixed */
body.profile-bg-fixed {
    background-image: var(--profile-bg-image);
    background-size: var(--profile-bg-mode, cover);
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* Layout */
.messages-container {
    display: flex;
    height: calc(100vh - 60px);
    background: #18191a;
    color: #e4e6eb;
}

.messages-sidebar {
    width: 300px;
    background: #202225;
    border-right: 1px solid #36393f;
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #36393f;
}

.sidebar-header h3 {
    color: #ff5733;
    margin-bottom: 10px;
}

#search-users {
width: 100%;
padding: 10px;
background: #36393f;
border: none;
border-radius: 4px;
color: white;
}

.user-list {
    overflow-y: auto;
    height: calc(100% - 100px);
}

.user-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.2s;
}

.user-item:hover {
    background: #36393f;
}

.user-avatar, .user-avatar-fallback {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ff5733;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.user-info {
    flex: 1;
}

.username {
    font-weight: bold;
}

.last-msg-time {
    font-size: 12px;
    color: #72767d;
}

/* Czat */
.messages-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #36393f;
}

.chat-header {
    padding: 20px;
    border-bottom: 1px solid #36393f;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: bold;
    color: #ff5733;
}

.chat-header-avatar, .chat-header-avatar-fallback {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.messages-list {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    max-width: 70%;
    align-self: flex-start;
}

.message.mine {
    align-self: flex-end;
}

.message-content {
    background: #40444b;
    padding: 10px 15px;
    border-radius: 18px;
    word-wrap: break-word;
}

.message.mine .message-content {
    background: #ff5733;
}

.message-time {
    font-size: 11px;
    color: #72767d;
    margin-top: 4px;
}

.chat-input {
    padding: 20px;
    border-top: 1px solid #36393f;
}

#message-input {
width: 100%;
padding: 12px;
background: #40444b;
border: none;
border-radius: 8px;
color: white;
resize: none;
}

#send-form button {
margin-top: 10px;
background: #ff5733;
color: white;
}

/* === CUSTOM LINKI === */
.custom-link {
    color: #ff5733;
    text-decoration: underline;
    word-break: break-all;
    font-weight: 500;
    transition: color 0.2s;
}

.custom-link:hover {
    color: #e04a2b;
}

.link-x {
    color: #1da1f2;
}

.link-x:hover {
    color: #0d8bd9;
}

.link-instagram {
    color: #e1306c;
}

.link-instagram:hover {
    color: #c11a56;
}

/* === EMBEDY === */
.post-content iframe {
    border-radius: 12px;
    margin: 16px 0;
    width: 100%;
    max-width: 560px;
    height: 315px;
    display: block;
}

/* === OBRAZKI W TREŚCI === */
.post-content img {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.post-content img:hover {
    transform: scale(1.02);
}

/* === TOASTY === */
.copy-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 15px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 9999;
    pointer-events: none;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.copy-toast.show {
    opacity: 1;
}

body.dark-mode .copy-toast {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* === MENU POSTA === */
.post-menu-dropdown {
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    overflow: hidden;
}

body.dark-mode .post-menu-dropdown {
    background: #242526;
    border-color: #404142;
}

.menu-item {
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    text-align: left;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s;
}

.menu-item:hover {
    background: #f0f2f5;
}

body.dark-mode .menu-item:hover {
    background: #3a3b3c;
}

.delete-btn {
    color: #e04a2b;
}

.delete-btn:hover {
    background: #ffe0db !important;
}

body.dark-mode .delete-btn:hover {
    background: #4a1e1a !important;
}

/* === KOMUNIKAT DLA NIEZALOGOWANYCH – ULTRA MINIMALISTYCZNA WERSJA === */
.no-comments-login {
    text-align: center;
    padding: 0px;
    background: transparent;
    border: none;
    margin: 20px 0;
    color: #333;
    font-size: 15px;
    line-height: 1.6;
}

.no-comments-login strong {
    display: block;
    font-size: 20px;
    font-weight: bold;
    color: #ff5733;
    margin-bottom: 5px;
}

/* Przycisk – spójny z resztą interfejsu */
.no-comments-login .btn-login {
    display: inline-block;
    background: #ff5733;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    margin: 10px 0 10px;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
}

.no-comments-login .btn-login:hover {
    background: #166fe5;
}

/* Dodatkowy tekst */
.no-comments-login p {
    margin: 8px 0;
    color: #555;
}

.no-comments-login p:last-child {
    margin-top: 12px;
    font-size: 13px;
    color: #65676b;
}

.no-comments-login p:last-child a {
    color: #ff5733;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.no-comments-login p:last-child a:hover {
    color: #166fe5;
}

/* === TRYB CIEMNY === */
body.dark-mode .no-comments-login {
    color: #e4e6eb;
}

body.dark-mode .no-comments-login strong {
    color: #ff8a65;
}

body.dark-mode .no-comments-login p {
    color: #b0b3b8;
}

body.dark-mode .no-comments-login p:last-child {
    color: #b0b3b8;
}

body.dark-mode .no-comments-login p:last-child a {
    color: #ff8a65;
}

body.dark-mode .no-comments-login p:last-child a:hover {
    color: #ff5733;
}

/* === WYSOKI KONTRAST === */
body.high-contrast .no-comments-login {
    color: #ffffff;
}

body.high-contrast .no-comments-login strong {
    color: #ffff00;
}

body.high-contrast .no-comments-login .btn-login {
    background: #ffff00;
    color: #000000;
    border: 2px solid #ffff00;
}

body.high-contrast .no-comments-login .btn-login:hover {
    background: #000000;
    color: #ffff00;
}

body.high-contrast .no-comments-login p:last-child a {
    color: #ffff00;
}

/* Ikony w trybie mobilnym */
.nav-icon {
    width:  24px;
    height: 24px;
    display: block;
}

.nav-icon-link {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    text-decoration: none;
    color: white;
    transition: background 0.2s;
}

.nav-icon-link:hover {
    background: rgba(255,255,255,0.15);
    border-radius: 6px;
}

/* Gdy włączony tryb ikon */
.navbar-links.icons-only a {
    padding: 8px 10px;           /* mniejsze odstępy */
}

/* Tooltip (opcjonalnie – bardzo przydatne przy samych ikonach) */
.nav-icon-link {
    position: relative;
}

.nav-icon-link[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
}

/* Chat-specific – FULL WIDTH, czysty i nowoczesny */
.chat-container {
    max-width: 900px;          /* możesz zwiększyć jeśli chcesz szerszy czat */
    margin: 0 auto;
}





/* === CHAT === */
#chat-messages {
width: 100%;
max-height: 60vh;
overflow-y: auto;
margin: 0;
padding: 8px 0;
border-radius: 10px;
border: 1px solid #ddd;
box-sizing: border-box;
}

/* Light */
body:not(.dark-mode) #chat-messages {
    background: #ffffff;
    border-color: #ddd;
}

/* Dark */
body.dark-mode #chat-messages {
    background: #18191a;
    border-color: #2d2d2d;
}

/* Wrapper wiadomości */
.message {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 4px 16px;
    box-sizing: border-box;
}

/* Bąbelki */
.message-own {
    align-self: flex-end;
    max-width: 75%;
    border-radius: 16px 16px 4px 16px;
    padding: 10px 14px;
    margin: 4px 0 4px auto;
}

.message-other {
    align-self: flex-start;
    max-width: 75%;
    border-radius: 16px 16px 16px 4px;
    padding: 10px 14px;
    margin: 4px auto 4px 0;
}

/* Kolory bąbelków – light */
body:not(.dark-mode) .message-own {
    background: #ffe8e0;
}
body:not(.dark-mode) .message-other {
    background: #f0f2f5;
}
body:not(.dark-mode) .message-own .message-content,
body:not(.dark-mode) .message-other .message-content,
body:not(.dark-mode) .timestamp {
    color: #333;
    background: transparent;
}

/* Kolory bąbelków – dark */
body.dark-mode .message-own {
    background: rgba(255, 87, 51, 0.22);
}
body.dark-mode .message-other {
    background: #242526;
}
body.dark-mode .message-own .message-content,
body.dark-mode .message-other .message-content,
body.dark-mode .message-header,
body.dark-mode .timestamp {
    color: #e4e6eb;
    background: transparent;
}

/* Nagłówek wiadomości */
.message-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.avatar-small {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ff5733;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1em;
}

.username {
    color: #ff5733;
    font-weight: 600;
    text-decoration: none;
}
.username:hover {
    text-decoration: underline;
}

.timestamp {
    font-size: 0.82em;
    color: #888;
    margin-left: auto;
}

.message-content {
    margin-left: 46px;
    word-break: break-word;
    background: transparent;
}

/* Formularz */
#message-form {
display: flex;
align-items: flex-end;
gap: 12px;
margin-top: 16px;
padding: 0 16px 16px 16px;
}

#message-form textarea {
flex: 1;
resize: none;
border-radius: 12px;
padding: 10px 14px;
font-size: 0.95em;
outline: none;
box-sizing: border-box;
min-height: 44px;
max-height: 120px;      /* opcjonalnie – żeby nie rósł w nieskończoność */
line-height: 1.4;
overflow-y: auto;
}

body:not(.dark-mode) #message-form textarea {
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
}

body.dark-mode #message-form textarea {
    background: #242526;
    border: 1px solid #3a3b3c;
    color: #e4e6eb;
}

#message-form button {
width: 44px;
height: 44px;
min-width: 44px;
border-radius: 50%;
background: #ff5733;
border: none;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
padding: 0;
transition: background 0.2s;
flex-shrink: 0;
}

#message-form button:hover {
background: #166fe5;
}

#message-form button img {
width: 20px;
height: 20px;
filter: brightness(0) invert(1);
}










.user-list {
    list-style: none;
    padding: 0;
}

.user-item {
    padding: 12px 0;
    border-bottom: 1px solid #3a3b3c;
}

.user-item a {
    color: #ff5733;
    text-decoration: none;
    font-weight: 500;
}

.user-item a:hover {
    text-decoration: underline;
)

.btn-admin-action {
    background: #4a6ee0;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.btn-admin-action:hover {
    background: #3a5cc5;
}

.post-avatar-link {
    text-decoration: none;
    display: inline-block;
    margin-right: 8px;
}

.post-avatar-img-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle;
    border: 1px solid #444;
}

.post-avatar {
    width: 32px;
    height: 32px;
    line-height: 32px;
    border-radius: 50%;
    background: #ff5733;
    color: white;
    text-align: center;
    font-weight: bold;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

.post-username {
    color: #ff5733;
    font-weight: 600;
    text-decoration: none;
}

.post-username:hover {
    text-decoration: underline;
}

# koniec
