/* --- LAYOUT POSTA --- */
.post-header {
    height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 60px 10%;
    position: relative;
}

.post-header-content {
    position: relative;
    z-index: 5;
    max-width: 900px;
}

.breadcrumb {
    font-size: 14px;
    color: #8b5cf6;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 700;
}

.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb span { color: #fff; margin: 0 10px; }

.post-header h1 {
    font-size: 48px;
    color: #fff;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 20px;
}

.post-meta {
    display: flex;
    gap: 20px;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

.post-meta i { color: #8b5cf6; margin-right: 5px; }

/* --- KONTENER TREŚCI --- */
.post-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 50px;
    padding: 60px 10%;
    max-width: 1400px;
}

.post-content {
    color: #cbd5e1;
    line-height: 1.8;
    font-family: 'Inter', sans-serif;
}

.post-content p { margin-bottom: 25px; }
.lead { font-size: 20px; color: #fff; font-weight: 600; }

.post-content h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 32px;
    color: #fff;
    margin: 40px 0 20px;
    padding-left: 15px;
    border-left: 4px solid #8b5cf6;
}

/* BLOKI KODU */
.code-block {
    background: #0f172a;
    padding: 20px;
    border-radius: 8px;
    position: relative;
    margin: 20px 0;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.code-block code, .code-block pre {
    color: #10b981; /* Neonowa zieleń dla kodu */
    font-family: 'Consolas', monospace;
    font-size: 14px;
}

.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(139, 92, 246, 0.2);
    border: none;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

/* PRO TIP BOX */
.pro-tip {
    background: rgba(139, 92, 246, 0.1);
    border: 1px dashed #8b5cf6;
    padding: 20px;
    margin: 30px 0;
    border-radius: 10px;
    color: #fff;
}

.pro-tip i { color: #8b5cf6; margin-right: 10px; font-size: 20px; }

/* SIDEBAR */
.sidebar-box {
    background: rgba(255,255,255,0.03);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}

.sidebar-box h3 {
    font-family: 'Rajdhani', sans-serif;
    color: #fff;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.related-posts { list-style: none; }
.related-posts li { margin-bottom: 20px; }

.related-posts a {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: #cbd5e1;
    transition: 0.3s;
}

.related-posts img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.related-posts a:hover { color: #8b5cf6; }

/* RESPONSYWNOŚĆ */
@media (max-width: 1024px) {
    .post-container { grid-template-columns: 1fr; }
    .post-header { height: auto; padding-top: 120px; }
    .post-header h1 { font-size: 32px; }
}


/* --- WRAPPER DLA TYTUŁU --- */
.title-wrapper {
    display: flex;
    align-items: stretch;
    gap: 30px;
}

/* --- PIONOWY SLIDEBAR --- */
.accent-slidebar {
    width: 6px;
    background: linear-gradient(to bottom, #8b5cf6, #6d28d9, transparent);
    position: relative;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
}

/* Dodatkowy element graficzny "01" w tle za tytułem */
.title-main {
    position: relative;
}

.title-main::before {
    content: '01';
    position: absolute;
    top: -20px;
    left: -10px;
    font-size: 120px;
    font-weight: 900;
    color: rgba(139, 92, 246, 0.07); /* Bardzo subtelny numer w tle */
    z-index: -1;
    font-family: 'Rajdhani', sans-serif;
}

/* --- ANIMOWANA LINIA POD TYTUŁEM (Taka jak na stronie głównej) --- */
.post-header h1 {
    font-size: 48px;
    color: #fff;
    text-transform: uppercase;
    margin: 10px 0 20px 0;
    position: relative;
    display: inline-block;
}

.post-header h1::after {
    content: '';
    display: block;
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, #8b5cf6, transparent);
    margin-top: 10px;
    animation: slideLine 3s ease-in-out infinite;
}

@keyframes slideLine {
    0% { width: 0%; opacity: 0; }
    50% { width: 60%; opacity: 1; }
    100% { width: 0%; opacity: 0; }
}


.post-sidebar {
    display: flex;
    flex-direction: column;
    gap: 40px; /* Odstęp między Boxem z poradnikami a Boxem Discorda */
}

.related-posts {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Odstęp między poszczególnymi poradnikami na liście */
}



.action-box-generator {
    background: rgba(139, 92, 246, 0.1);
    border-left: 4px solid #8b5cf6;
    padding: 30px;
    margin: 40px 0;
    border-radius: 0 12px 12px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.action-text h4 {
    font-family: 'Rajdhani', sans-serif;
    color: #fff;
    margin: 0;
    font-size: 20px;
}

.action-text p {
    margin: 5px 0 0;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

.btn-action {
    background: #8b5cf6;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    text-wrap: nowrap;
    transition: 0.3s;
}

.btn-action:hover {
    background: #7c3aed;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}