/* SpecInfo v20 Blog Styles */
:root {
    --blog-primary: #0070f3;
    --blog-bg: #ffffff;
    --blog-card: #f8fafc;
    --blog-text: #0f172a;
    --blog-sub: #64748b;
    --blog-border: #e2e8f0;
}

body {
    background: var(--blog-bg);
    color: var(--blog-text);
}

.blog-container { max-width: 1100px; margin: 0 auto; padding: 40px 20px; }

/* Kontener siatki - Twoja baza */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Wspólny styl karty */
.post-card {
    background: var(--blog-card);
    border: 1px solid var(--blog-border);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 112, 243, 0.05);
    border-color: var(--blog-primary);
}

/* Wariant 1: Post ZE ZDJĘCIEM */
.post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #eee;
}

/* Wariant 2: Post BEZ ZDJĘCIA (Specjalna klasa .no-image) */
.post-card.no-image {
    background: var(--blog-bg);
    border-top: 6px solid var(--blog-primary); /* Akcent kolorystyczny na górze */
    min-height: 280px; /* Aby karta nie była zbyt mała obok tych ze zdjęciami */
}

.post-card.no-image .post-content {
    justify-content: center; /* Wyśrodkowanie treści w pionie */
}

.post-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-tag {
    font-size: 0.75rem;
    color: var(--blog-primary);
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
}

.post-card h2 { margin: 0 0 10px 0; font-size: 1.4rem; color: var(--blog-text); line-height: 1.3; }
.post-card p { color: var(--blog-sub); font-size: 0.95rem; margin: 0; }

/* Badge Styles - SpecInfo v20 */
.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 10px;
}

.badge-hardware    { background: #dbeafe; color: #1e40af; } /* Blue */
.badge-performance { background: #fef3c7; color: #92400e; } /* Amber */
.badge-security    { background: #fee2e2; color: #991b1b; } /* Red */
.badge-energy      { background: #d1fae5; color: #065f46; } /* Green */
.badge-engineering { background: #ede9fe; color: #5b21b6; } /* Violet */

/* Hero Image Placeholder */
.post-hero {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    margin-bottom: 30px;
}
/* --- Artykuł / Article Layout --- */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.nav-top {
    margin-bottom: 40px;
}

.back-link {
    text-decoration: none;
    color: var(--blog-primary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: opacity 0.2s ease;
}

.back-link:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.post-header {
    margin-bottom: 50px;
    border-bottom: 1px solid var(--blog-border);
    padding-bottom: 30px;
}

.post-header h1 {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1.1;
    margin: 0 0 15px 0;
}

.post-meta {
    color: var(--blog-sub);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-body h2 {
    font-size: 2.2rem;
    margin-top: 50px;
    font-weight: 800;
    letter-spacing: -1px;
    color: #111827;
}

.post-body p {
    margin-bottom: 25px;
    font-size: 1.2rem;
}

/* --- Utility Components --- */
.spec-box {
    background: #f0f7ff;
    border: 1px solid #cfdeef;
    padding: 25px;
    border-radius: 12px;
    margin: 30px 0;
}

.pro-tip {
    background: #fff9db;
    border-left: 5px solid #fab005;
    padding: 20px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
    font-size: 1.1rem;
}

.highlight-link {
    color: var(--blog-primary);
    font-weight: 800;
    text-decoration: none;
    border-bottom: 2px solid var(--blog-primary);
}

.btn-view-all {
    display: inline-block;
    background-color: var(--blog-primary);
    color: white !important;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s ease;
}

.btn-view-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 112, 243, 0.2);
    opacity: 0.9;
}
