:root {
    --humdev-main-color: #31ec56;
    --journal-border: #ddd;
    --humdev-font-monotype: 'Ubuntu Mono', monospace;
    --bg-body: #f9f9f9;
}

#addToHomeBtn {
    width: 100%;
    background: var(--humdev-main-color);
    color: #000;
    display: flex;           /* flexbox dla div-a */
    justify-content: center; /* wyśrodkowanie poziome */
    align-items: center;     /* wyśrodkowanie pionowe */
    padding: 1rem;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 1000;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.monotype {
    font-family: var(--humdev-font-monotype);
}

body {
    font-family: 'Source Sans 3', sans-serif;
    background: var(--bg-body);
    margin: 0;
    background: rgb(255, 249, 237);
    background: linear-gradient(180deg, rgba(255, 249, 237, 1) 0%, rgba(255, 255, 255, 1) 100%);
}

.app-container {
    display: flex;
    max-width: 992px;
    margin: 0 auto;
    min-height: 100vh;
}

/* Sidebar */
.sidebar-nav {
    width: 260px;
    padding: 20px;
    border-right: 1px solid var(--journal-border);
    position: sticky;
    top: 0;
    height: 100vh;
}

.logo-img {}

.logo-img img {
    width: 150px;
    transition: transform 0.4s ease-in-out;
}

.logo-img-small {
    display: none;
}

.logo-img-small img  {
    width: 50px;
}

.logo-img:hover img {
    transform: rotate(-45deg);
}

.logo-box {
    width: 40px;
    height: 40px;
    background: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 24px;
    margin-bottom: 30px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #333;
    padding: 12px 0;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--humdev-main-color);
}

.nav-link svg {
    width: 24px;
    height: 24px;
}

/* Main Feed */
main {
    flex: 1;
    background: #fff;
    min-height: 100vh;
    border-right: 1px solid var(--journal-border);
}

.sticky-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 1);
    backdrop-filter: blur(5px);
    padding: 15px 20px;
    border-bottom: 1px solid var(--journal-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    flex-wrap: wrap;
}

.sticky-header a {
    text-decoration: none;
}

.sticky-header a h1 {
    margin: 0;
    font-size: 1.25rem;
    font-family: var(--humdev-font-monotype);
    padding: 0.5rem;
    background-color: #000;
    color: white;
    text-decoration: none;
}

.search-element,
.tab-bar {
    width: 100%;
    margin-top: 1rem;
}

.tab-bar {
    display: flex;
    border-bottom: 10px solid #000;
    padding: 0px 0px;
    position: relative;
    align-items: flex-start;
}

.tab-item {
    flex: 1;
    padding: 15px 0;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #ccc;
    cursor: pointer;
    transition: color .4s ease-in-out;
    position: relative;
    text-align: left;
    text-transform: uppercase;
}

.tab-item.active {
    color: #000;
    border-bottom: 4px solid var(--humdev-main-color);
}


/* Posts */
.post-card {
    display: flex;
    gap: 15px;
    padding: 20px;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
    cursor: pointer;
}

.post-card:hover {
    background: #fafafa;
}

.avatar {
    width: 48px;
    height: 48px;
    background: transparent;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #666;
    border: 4px solid #000;
    transition: border 14ms ease-in-out;
}

.avatar-rss {
    background: url('../rss.png');
    background-size: contain;
    background-repeat: no-repeat;
    border: 4px solid transparent;
}

.avatar a {
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-card:hover .avatar {
    border: 4px solid var(--humdev-main-color);
}


.post-content-wrapper {
    flex: 1;
}

.post-meta {
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.author-name {
    font-weight: 700;
    margin-right: 5px;
}

.author-handle {
    color: #666;
    font-size: 0.85rem;
}

.mono {
    font-family: var(--humdev-font-monotype);
}

.post-text {
    line-height: 1.5;
    color: #222;
    margin-bottom: 12px;
    word-break: break-word;
}

.post-text p {
    margin: 0 0 10px 0;
}

.post-image {
    width: 100%;
    border-radius: 8px;
    margin-top: 10px;
    border: 1px solid #eee;
}

.external-link {
    color: var(--humdev-main-color);
    text-decoration: none;
}

.external-link:hover {
    text-decoration: underline;
}

.post-actions {
    display: flex;
    gap: 40px;
    margin-top: 12px;
}

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 5px;
    transition: color 0.2s;
}

.action-btn:hover {
    color: var(--humdev-main-color);
}

/* Loader */
.loading-spinner {
    padding: 40px;
    text-align: center;
}

.spinner-svg {
    width: 30px;
    height: 30px;
    animation: rotate 1s linear infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

#copy-toast,
#copy-content-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    z-index: 100;
}

/* Single Post View */
.back-nav {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: var(--humdev-main-color);
    font-weight: bold;
}

/* Sidebar Trends Container */
.sidebar-trends {
    width: 250px;
    padding: 20px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

/* Karta z zawartością */
.trend-card {
    background: transparent;
    border-radius: 0;
    padding: 15px;
    margin-bottom: 20px;
}

/* Nagłówki sekcji (Mono) */
.sidebar-trends h3.mono {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666;
    margin: 15px 0 10px 0;
    padding-bottom: 5px;
    border-bottom: 1px solid #e0e0e0;
}

.sidebar-trends h3.mono:first-child {
    margin-top: 0;
}

/* Stylizacja pola wyszukiwania */
.search-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.search-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid transparent;
    background: #e6ecf0;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.search-input:focus {
    background: #fff;
    border-color: var(--humdev-main-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(230, 57, 70, 0.1);
}

/* Sekcja Info */
.info-box p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #555;
    margin: 0;
}


@media (max-width: 768px) {
    .sidebar-nav {
        display: none;
    }

    .app-container {
        flex-direction: column;
    }
}


.breadcrumbs {
    --bc-text: #475569;
    --bc-hover: #0f172a;
    --bc-separator: #cbd5e1;

    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.8rem;
    padding: 1rem;
}

.breadcrumbs li, .breadcrumbs li a {
    display: flex;
    align-items: center;
    gap: 4;
}

.breadcrumbs li+li::before {
    content: "/";
    margin: 0 .5rem;
    color: var(--bc-separator);
}

.breadcrumbs a {
    color: var(--bc-text);
    text-decoration: none;
    position: relative;
}

.breadcrumbs a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s ease;
}

.breadcrumbs a:hover {
    color: var(--bc-hover);
}

.breadcrumbs a:hover::after {
    transform: scaleX(1);
}

.breadcrumbs [aria-current="page"] {
    color: #0f172a;
    font-weight: 500;
}

.post-actions img {
    width: 1rem;
    height: 1rem;
}

.post-actions button {
    background-color: inherit;
    transition: background-color 0.4s ease-in-out;
}

.post-actions button:hover {
    background-color: #ccc;
}

.rss-box {
    padding: 1rem;
    /* max-height: 80vh; */
    /* wysokość, po której zaczyna się scroll */
    /* overflow-y: auto;
    padding-right: 10px; */
    /* żeby scrollbar nie zachodził na treść */
}


.rss-box h3 {
    font-size: 1rem;
}

.rss-box time {
    font-size: 0.85rem;
    font-family: var(--humdev-font-monotype);

}

.rss-box::-webkit-scrollbar {
    width: 10px;
    /* szerokość scrollbara */
}

.rss-box::-webkit-scrollbar-track {
    background: #f1f1f1;
    /* tło toru */
    border-radius: 8px;
}

.rss-box::-webkit-scrollbar-thumb {
    background-color: var(--humdev-main-color);
    /* kolor „uchwytu” */
    border-radius: 8px;
    border: 2px solid #f1f1f1;
    /* odstęp między uchwytem a torem */
    transition: background 0.3s;
}

.rss-box::-webkit-scrollbar-thumb:hover {
    background-color: #28c24b;
    /* ciemniejszy przy hover */
}

/* Dla Firefox */
.rss-box {
    scrollbar-width: thin;
    /* cienki scrollbar */
    scrollbar-color: var(--humdev-main-color) #f1f1f1;
    /* kolor thumb i track */
}

#about-container div {
    padding: 1rem;
}

@media (max-width: 768px) {
    .sidebar-trends {
        width: 90%;
        margin: 0 auto;
    }

    .logo-img-big {
        display: none;
    }

    .logo-img-small {
        display: block;
    }

    .rss-box {
        max-height: none;
        /* usuń ograniczenie wysokości */
        overflow-y: visible;
        /* użyj naturalnego scrolla strony */
        padding-right: 0;
        /* niepotrzebne przy naturalnym scrollu */
    }
}

.loading-spinner .stop-icon img {
    width: 2rem;
    height: 2rem;
    padding: 2rem;
}

.load-more-wrapper {
cursor: pointer;
}
.search-element {
display: none;
}
