/* THEME: Gastronomia (Warm, Appetizing, Friendly)
   PALETTE: Appetizing Orange, Warm Cream, Charcoal
*/

:root {
    --bg-main: #fafaf9;
    --bg-card: #ffffff;
    --text-main: #44403c;
    --text-muted: #78716c;
    --primary: #a8a29e;
    --primary-light: #f5f5f4;
    --accent: #78716c;
    --border: #e7e5e4;
    --radius: 16px;
    --shadow: 0 20px 40px rgba(0,0,0,0.05);
}

/* --- OGÓLNE --- */
body {
    font-family: 'Poppins', '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='M20 20.5V18H0v-2h20v-2.5a.5.5 0 0 1 1 0V16h20v2H21v2.5a.5.5 0 0 1-1 0z' fill='%23f26b38' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
    color: var(--text-main);
    line-height: 1.6;
}

/* Górna listwa - ciepły pomarańcz */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 5px;
    background: linear-gradient(90deg, #f26b38, #f5a623);
    z-index: 9999;
}

/* --- NAWIGACJA --- */
.site-nav {
    background: #ffffff;
    color: var(--text-main);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    padding: 15px 0;
    position: relative;
}

.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) !important;
    color: #fff !important;
    width: 45px;
    height: 45px;
    border-radius: 50% !important; 
    font-weight: 800;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(242, 107, 56, 0.3);
}

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

/* 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 18px;
    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: 12px 25px;
    background: var(--primary);
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    border-radius: 30px; /* Fully rounded pill */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-align: center;
    box-shadow: 0 6px 15px rgba(242, 107, 56, 0.25);
}

.btn-read:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(242, 107, 56, 0.4);
    background: var(--accent);
}

/* --- KAFELKI --- */
.tile-item {
    border: none !important;
    border-radius: var(--radius) !important;
    overflow: hidden;
    box-shadow: var(--shadow) !important;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.tile-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(242, 107, 56, 0.15) !important;
}

.tile-overlay {
    background: linear-gradient(to top, rgba(45, 42, 38, 0.9) 0%, rgba(45, 42, 38, 0.4) 60%, transparent 100%) !important;
    padding: 30px 20px 20px 20px !important;
}

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

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

.card:hover {
    transform: translateY(-5px);
    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;
    transition: color 0.2s;
}

.card:hover .card-body h4 {
    color: var(--primary);
}

/* --- SIDEBAR --- */
#sidebar {
    background: var(--bg-card);
    border: none;
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

#sidebar h3 {
    background: transparent;
    color: var(--text-main);
    padding: 0 0 15px 0;
    font-weight: 800;
    margin: 0 0 20px 0;
    position: relative;
    border-bottom: 2px solid #f0e9e4;
}

#sidebar h3::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0; width: 30px; height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

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

#p-title {
    font-size: 2.6rem;
    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;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

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

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

.post-content h2 {
    border-left: 4px solid var(--primary);
    padding-left: 15px;
}

/* --- 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; }
}
