/* THEME: Zdrowie & Medycyna (Clinical, Reassuring, Clean)
   PALETTE: Medical Blue, Clean Teal, Pure White
*/

:root {
    --bg-main: #ffffff;
    --bg-card: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #475569;
    --primary: #06b6d4;
    --primary-light: #cffafe;
    --accent: #0891b2;
    --border: #e2e8f0;
    --radius: 8px;
    --shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* --- OGÓLNE --- */
body {
    font-family: 'Nunito', '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='M18 10h4v8h8v4h-8v8h-4v-8h-8v-4h8v-8z' fill='%230284c7' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
    color: var(--text-main);
    line-height: 1.6;
}

/* Górna listwa - uspokajający gradient */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    z-index: 9999;
}

/* --- NAWIGACJA --- */
.site-nav {
    background: #ffffff;
    color: var(--text-main);
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

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

.logo-box {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    background: var(--primary-light) !important;
    color: var(--primary) !important;
    width: 44px;
    height: 44px;
    border-radius: 12px !important; 
    font-weight: 800;
    font-size: 16px; display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary);
}

.logo-text {
    color: var(--text-main) !important;
    font-weight: 600;
    
    letter-spacing: 0px;
    font-size: 22px;
}

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

.nav-menu li a {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 14px;
    padding: 8px 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 20px;
}

.nav-menu li a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* --- PRZYCISK "PRZECZYTAJ CAŁOŚĆ" --- */
.btn-read {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 24px;
    background: #fff;
    color: var(--primary) !important;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid var(--primary);
    border-radius: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.1);
}

.btn-read:hover {
    background: var(--primary);
    color: #fff !important;
    box-shadow: 0 6px 15px rgba(2, 132, 199, 0.2);
}

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

.tile-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(2, 132, 199, 0.15) !important;
    border-color: var(--primary-light) !important;
}

.tile-overlay {
    background: linear-gradient(to top, rgba(43, 58, 74, 0.95) 0%, rgba(43, 58, 74, 0.5) 60%, transparent 100%) !important;
    padding: 30px 20px 20px 20px !important;
    border-bottom: 4px solid var(--accent);
}

.tile-overlay h3 {
    font-weight: 700;
    font-size: 1.35rem;
    line-height: 1.3;
    margin-bottom: 5px;
    color: #ffffff !important;
}

/* --- KARTY (Wiadomości w gridzie) --- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    border-radius: var(--radius);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--primary-light) !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: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

#sidebar h3 {
    background: transparent;
    color: var(--primary);
    padding: 0 0 15px 0;
    font-weight: 700;
    font-size: 14px;
    margin: 0 0 20px 0;
    border-bottom: 2px solid var(--primary-light);
}

/* --- WIDOK POSTA --- */
#view-post article {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

#p-title {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--text-main);
    margin-bottom: 25px;
}

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

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

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

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