/* THEME: B2B Handel (Corporate, Structured, Precise)
   PALETTE: Professional Indigo, Success Green, Light Gray
*/

:root {
    --bg-main: #fafafa;
    --bg-card: #ffffff;
    --text-main: #171717;
    --text-muted: #737373;
    --primary: #000000;
    --primary-light: #e5e5e5;
    --accent: #404040;
    --border: #e5e5e5;
    --radius: 4px;
    --shadow: 0 15px 30px rgba(0,0,0,0.05);
}

/* --- OGÓLNE --- */
body {
    font-family: 'Helvetica Neue', 'Inter', sans-serif;
    background-color: var(--bg-main);
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h40v40H0V0zm20 20h20v20H20V20z' fill='%234338ca' fill-opacity='0.02' fill-rule='evenodd'/%3E%3C/svg%3E");
    color: var(--text-main);
    line-height: 1.6;
}

/* Górna listwa - B2B Indigo */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 4px;
    background: var(--primary);
    z-index: 9999;
}

/* --- NAWIGACJA --- */
.site-nav {
    background: #ffffff;
    color: var(--text-main);
    border-bottom: 1px solid var(--border);
    padding: 0; /* Menu items will determine height */
}

.nav-inner {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding: 15px 0;
}

.logo-icon {
    background: var(--primary) !important;
    color: #fff !important;
    width: 35px;
    height: 35px;
    border-radius: 2px !important; 
    font-weight: 800;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    color: var(--primary) !important;
    font-weight: 600;
    
    letter-spacing: 1px;
    font-size: 20px;
}

/* Kategorie w menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 0px;
}

.nav-menu li {
    display: flex;
}

.nav-menu li a {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 13px;
    padding: 20px 20px;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-menu li a:hover {
    color: var(--primary);
    background: var(--primary-light);
    border-bottom: 3px solid var(--primary);
}

/* --- PRZYCISK "PRZECZYTAJ CAŁOŚĆ" --- */
.btn-read {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: transparent;
    color: var(--primary) !important;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid var(--primary);
    border-radius: var(--radius);
    transition: all 0.2s ease;
    cursor: pointer;
    text-align: center;
}

.btn-read:hover {
    background: var(--primary);
    color: #fff !important;
}

/* --- KAFELKI --- */
.tile-item {
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    overflow: hidden;
    box-shadow: none !important;
    transition: all 0.2s ease;
}

.tile-item:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1) !important;
    border-color: var(--primary) !important;
}

.tile-overlay {
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.7) 40%, transparent 100%) !important;
    padding: 25px !important;
    border-bottom: 4px solid var(--primary);
}

.tile-overlay h3 {
    font-weight: 600;
    font-size: 1.3rem;
    margin-bottom: 0px;
    color: #ffffff !important;
}

/* --- KARTY (Wiadomości w gridzie) --- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border) !important;
    box-shadow: none;
    transition: all 0.2s ease;
    border-radius: var(--radius);
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-color: var(--primary) !important;
}

.card-body h4 {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-main);
    margin-bottom: 12px;
}

/* --- SIDEBAR --- */
#sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0;
}

#sidebar h3 {
    background: var(--bg-main);
    color: var(--text-main);
    padding: 15px 20px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    border-bottom: 1px solid var(--border);
}

#sidebar-links {
    padding: 20px;
}

/* --- WIDOK POSTA --- */
#view-post article {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
}

#p-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-main);
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
}

#view-post img {
    border-radius: var(--radius) !important;
    margin-bottom: 30px;
}

.post-content {
    font-size: 1.05rem;
    color: var(--text-main);
    line-height: 1.7;
}

.post-content h2, .post-content h3 {
    color: var(--text-main);
    font-weight: 700;
    margin-top: 2em;
    margin-bottom: 1em;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .nav-inner { flex-direction: column; }
    .nav-menu { flex-wrap: wrap; justify-content: center; }
    .nav-menu li a { padding: 15px 10px; }
    #view-post article { padding: 20px; }
    #p-title { font-size: 1.8rem; }
}
