/* THEME: E-Commerce (Trustworthy, Conversion-focused, Clean)
   PALETTE: Trustworthy Blue, Action Orange, Clean White
*/

:root {
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #1e293b;
    --text-muted: #475569;
    --primary: #4f46e5;
    --primary-light: #e0e7ff;
    --accent: #4338ca;
    --border: #cbd5e1;
    --radius: 8px;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

/* --- OGÓLNE --- */
body {
    font-family: 'Roboto', 'Inter', sans-serif;
    background-color: var(--bg-main);
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='2' cy='2' r='2' fill='%232563eb' fill-opacity='0.05'/%3E%3C/svg%3E");
    color: var(--text-main);
    line-height: 1.6;
}

/* Górna listwa - niebieska */
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 #e5e7eb;
    padding: 12px 0;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.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: 30px; height: 30px;
    border-radius: var(--radius) !important; 
    font-weight: 900;
    font-size: 16px; display: flex;
    align-items: center;
    justify-content: center;
}

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

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

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

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

/* --- PRZYCISK "PRZECZYTAJ CAŁOŚĆ" (Jak przycisk KUP TERAZ) --- */
.btn-read {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 24px;
    background: var(--accent); /* Action Orange */
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    border-radius: var(--radius);
    transition: background 0.2s;
    cursor: pointer;
    text-align: center;
    width: 100%; /* Full width in cards like typical add-to-cart */
    box-sizing: border-box;
}

.btn-read:hover {
    background: #ea580c;
}

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

.tile-item:hover {
    box-shadow: var(--shadow) !important;
    border-color: var(--primary) !important;
}

.tile-overlay {
    background: linear-gradient(to top, rgba(31, 41, 55, 0.95) 0%, rgba(31, 41, 55, 0.6) 50%, transparent 100%) !important;
    padding: 20px !important;
}

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

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

.card:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary) !important;
}

.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-body h4 {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 10px;
    line-height: 1.4;
}

.card-body p {
    flex: 1;
}

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

#sidebar h3 {
    background: #f9fafb;
    color: var(--text-main);
    padding: 12px 15px;
    font-weight: 700;
    font-size: 14px;
    margin: -20px -20px 20px -20px;
    border-bottom: 1px solid #e5e7eb;
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
}

/* --- WIDOK POSTA --- */
#view-post article {
    background: var(--bg-card);
    border: 1px solid #e5e7eb;
    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: 20px;
}

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

.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;
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 8px;
}

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