
:root {
    --primary: #ff4757;
    --bg: #0f0f0f;
    --card-bg: #1a1a1a;
    --text: #eee;
    --text-dim: #a0a0a0;
    --border: #2d2d2d;
}

* { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0;
}

nav {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.back-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
}

/* Nagłówek */
header {
    padding: 40px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.brand {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--primary);
    text-transform: uppercase;
}

/* Główna sekcja */
main {
    max-width: 700px; /* Optymalna szerokość do czytania */
    margin: 0 auto;
    padding: 20px;
}

/* Pojedynczy artykuł */
.post {
    margin-bottom: 60px;
    animation: fadeIn 0.8s ease-out;
}

.post-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    background: #252525;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.post-meta {
    font-size: 13px;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
}

.post-title {
    font-size: 24px;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.post-title a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
}

.post-title a:hover {
    color: var(--primary);
}

.post-excerpt {
    color: var(--text-dim);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    color: var(--text);
    font-weight: bold;
    text-decoration: none;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 4px;
    transition: background 0.2s;
}

.read-more:hover {
    background: rgba(255, 71, 87, 0.1);
}

/* Stopka */
footer {
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 14px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsywność dla mniejszych ekranów */
@media (max-width: 480px) {
    .post-title { font-size: 20px; }
    .post-excerpt { font-size: 15px; }
    header { padding: 30px 15px; }
}
