:root {
    /* Paleta "Ciepłej technologii" */
    --bg-base: #f5f4f1;       /* Ciepły, miękki beż/szarość tła (przystępność) */
    --bg-surface: #ffffff;    /* Czysta biel dla bloków (brył) */
    
    --text-main: #2b2d42;     /* Głęboki granat wpadający w czerń */
    --text-muted: #8d99ae;    /* Chłodna szarość do detali */
    
    --accent-primary: #facc15; /* Cyber żółty - wyrazisty kontrast z granatem */
    --accent-blue: #3a0ca3;   /* Głęboki, techniczny fiolet/niebieski */
    
    --border-radius-xl: 32px;
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
    --border-radius-sm: 8px;
    
    --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 20px 40px rgba(250, 204, 21, 0.15); /* Cień pod akcentem */
    
    --font-main: 'Inter', sans-serif;
    --font-mono: 'Fira Code', monospace;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-main);
    background-color: var(--bg-base);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 1.5rem;
    gap: 1.5rem;
}

/* Typografia bazowa */
h1, h2, h3 { color: var(--text-main); font-weight: 800; }
a { text-decoration: none; color: inherit; }
.mono { font-family: var(--font-mono); }

/* Topbar */
.topbar {
    background-color: var(--text-main); /* Nasz głęboki granat z palety */
    padding: 1.5rem 3rem; /* Wyższy i masywniejszy padding */
    border-radius: var(--border-radius-lg);
    box-shadow: 0 15px 35px rgba(43, 45, 66, 0.25);
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.topbar-logo img {
    display: block;
    height: 70px;
    width: 140px; /* Proporcja około 2:1 (czyli potocznie 4:2) */
    object-fit: cover;
    border-radius: var(--border-radius-sm);
    background-color: rgba(255,255,255,0.05); /* tło zastępcze */
}

/* Poziome menu w nagłówku */
.topbar-nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.topbar-nav a {
    color: #e2e8f0; /* Jasny szary/biały tekst na ciemnym tle */
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
    font-family: var(--font-main);
}

.topbar-nav a:hover {
    color: #ffffff;
}

/* Żółte podkreślenie na hover */
.topbar-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-primary);
    transition: var(--transition);
}

.topbar-nav a:hover::after {
    width: 100%;
}

/* Call to Action (CTA) w topbarze */
.topbar-actions .topbar-cta {
    background-color: var(--accent-primary);
    color: #1f2937; /* Ciemniejszy tekst na żółtym dla czytelności */
    padding: 0.9rem 2rem;
    border-radius: var(--border-radius-xl); /* Obły, nowoczesny przycisk */
    font-size: 0.95rem;
    box-shadow: 0 8px 20px rgba(250, 204, 21, 0.25);
}

.topbar-actions .topbar-cta:hover {
    background-color: #eab308;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(250, 204, 21, 0.35);
}

/* Układ główny (Sidebar + Content) */
.layout-wrapper {
    display: flex;
    flex: 1;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    gap: 1.5rem;
}

/* Lewe Menu (Sidebar) */
.sidebar {
    width: 280px;
    background-color: var(--bg-surface);
    border-radius: var(--border-radius-xl);
    padding: 2.5rem 1.5rem;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-profile { text-align: center; }
.sidebar-profile .avatar {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-blue));
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 8px 15px rgba(250, 204, 21, 0.2);
}
.sidebar-profile h3 { font-size: 1.2rem; font-family: var(--font-mono); }
.sidebar-profile .role { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.2rem; }

/* Moduły w pasku bocznym (Sidebar) */
.sidebar-module {
    background: rgba(43, 45, 66, 0.02);
    border: 1px solid rgba(43, 45, 66, 0.05);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
}

.module-title {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px dashed rgba(43, 45, 66, 0.1);
    padding-bottom: 0.5rem;
}
.module-title i { color: var(--accent-primary); }

.module-list { list-style: none; display: flex; flex-direction: column; gap: 0.8rem; }
.module-list li { display: flex; flex-direction: column; gap: 0.2rem; }
.module-list .date { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); }
.module-list a { font-size: 0.9rem; font-weight: 600; color: var(--text-main); transition: var(--transition); line-height: 1.4; }
.module-list a:hover { color: var(--accent-primary); }

.module-content .small-text { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.8rem; line-height: 1.5; }

/* Progress bar dla modułu "Na warsztacie" */
.progress-bar { 
    width: 100%; 
    height: 6px; 
    background-color: rgba(43, 45, 66, 0.1); 
    border-radius: 3px; 
    overflow: hidden; 
    margin-bottom: 0.4rem; 
}
.progress-fill { 
    height: 100%; 
    background-color: var(--accent-primary); 
    border-radius: 3px; 
    box-shadow: 0 0 8px rgba(250, 204, 21, 0.5);
}
.progress-text { 
    font-family: var(--font-mono); 
    font-size: 0.75rem; 
    color: var(--text-muted); 
    display: block; 
    text-align: right; 
}

/* Moduł linków zewnętrznych */
.module-links { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.module-links a { 
    display: flex; 
    align-items: center; 
    gap: 0.5rem; 
    font-size: 0.9rem; 
    color: var(--text-muted); 
    transition: var(--transition); 
    font-weight: 600; 
}
.module-links a:hover { 
    color: var(--text-main); 
    transform: translateX(3px); 
}
.module-links a i { 
    font-size: 1rem; 
    width: 16px; 
    text-align: center; 
    color: var(--accent-blue); 
}

/* Kontent Główny */
.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.content-card {
    background-color: var(--bg-surface);
    border-radius: var(--border-radius-xl);
    padding: 3.5rem;
    box-shadow: var(--shadow-soft);
    flex: 1;
}

/* Sekcja Powitalna (Awatar + Bio) */
.author-welcome {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
}
.author-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 25px rgba(58, 12, 163, 0.15);
    border: 4px solid var(--bg-surface);
}
.author-info h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}
.author-info h1 span {
    color: var(--accent-primary);
}
.author-info .bio {
    line-height: 1.7;
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Minimalistyczna lista wpisów */
.recent-posts {
    margin-top: 3.5rem;
}
.recent-posts h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.recent-posts h2 i {
    color: var(--accent-primary);
    font-size: 1.2rem;
}
.simple-post-list {
    list-style: none;
    display: flex;
    flex-direction: column;
}
.simple-post-list li {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    padding: 1rem 0;
    border-bottom: 1px dashed rgba(43, 45, 66, 0.1);
}
.simple-post-list li:last-child {
    border-bottom: none;
}
.simple-post-list .post-date {
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 0.85rem;
    min-width: 90px;
}
.simple-post-list .post-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
    transition: var(--transition);
}
.simple-post-list .post-title:hover {
    color: var(--accent-blue);
    text-decoration: underline;
    text-decoration-color: var(--accent-primary);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

/* Boxy Akcji */
.action-box {
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.05), rgba(58, 12, 163, 0.03));
    border: 1px dashed rgba(43, 45, 66, 0.15);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    margin-top: 1rem;
}
.action-box h3 { font-size: 1.3rem; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); }
.action-box p { font-size: 1rem; color: var(--text-muted); margin-bottom: 1.5rem; }

/* Przyciski */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    font-family: var(--font-main);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}
.btn-primary {
    background-color: var(--accent-primary);
    color: #1f2937;
    box-shadow: 0 4px 15px rgba(250, 204, 21, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    background-color: #eab308;
}

footer {
    text-align: center;
    padding: 1rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.85rem;
}
