/* --- ZMIENNE KOLORYSTYCZNE (THEMING) --- */
:root {
    /* Jasny Motyw */
    --bg-body: #f2f3f4;      
    --bg-nav: #ebecf0;       
    --text-main: #171717;    
    --text-muted: #525252;   
    --link-color: #2563eb;   
    --border-color: #e5e5e5; 
    
    /* Karty i Przyciski */
    --card-bg: #ebecf0;           
    --card-border: #ffffff;       
    --card-border-hover: #171717; 
    --btn-hover-bg: #f4f4f5; 
    
    /* Inne */
    --tag-bg: #eff6ff;
    --tag-text: #1e40af;
    --image-bg: #ffffff;
}

[data-theme="dark"] {
    /* Ciemny Motyw */
    --bg-body: #282c34;      
    --bg-nav: #21252c;
    --text-main: #e5e5e5;    
    --text-muted: #a3a3a3;
    --link-color: #60a5fa;   
    --border-color: #333333;
    
    /* Karty i Przyciski */
    --card-bg: #21252c;      
    --card-border: #1b1e22;
    --card-border-hover: #ffffff; 
    --btn-hover-bg: #27272a; 
    
    /* Inne */
    --tag-bg: #312e81;       
    --tag-text: #c7d2fe;     
    --image-bg: #333333;
}

html {
    scroll-behavior: smooth;
}

/* --- RESET I BAZA --- */
body {
    margin: 0;
    padding: 0;
    font-family: "IBM Plex Sans", sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.align-wrapper {
    max-width: 720px; 
    margin: 0 auto;      
    padding-left: 20px;  
    padding-right: 20px; 
    box-sizing: border-box; 
}

/* Fix dla ikon Material Symbols */
.material-symbols-outlined {
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
}

/* --- PASEK NAWIGACJI --- */
.nav-background {
    width: 100%;
    background-color: var(--bg-nav); 
    /* ZMIANA: Usunięto border-bottom: 1px solid var(--border-color); */
    transition: background-color 0.3s ease; /* Usunięto border-color z transition */
}

.nav-content {
    display: flex;
    align-items: center;
    padding-top: 15px;
    padding-bottom: 15px;
}

.nav-brand {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
    margin-left: auto; /* To rozpycha nawigację - linki lecą na prawo */
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 400;
    transition: color 0.2s;
}

.nav-links a:hover {
    opacity: 0.7;
}

/* Wyłączenie efektu hover dla linków bez atrybutu href */
.nav-links a:not([href]) {
    cursor: default;
    color: var(--text-muted);
}

.nav-links a:not([href]):hover {
    opacity: 1;
}

/* Wyróżnienie aktywnej zakładki */
.nav-links a.active {
    font-weight: 700;
    color: var(--text-main);
}

/* Przycisk motywu */
.theme-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s;
    margin-left: 15px; /* Sztywny odstęp od linków zamiast auto */
}

.theme-toggle-btn:hover {
    background-color: rgba(125, 125, 125, 0.1);
}

[data-theme="dark"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: block; }
html:not([data-theme="dark"]) .icon-moon { display: block; }
html:not([data-theme="dark"]) .icon-sun { display: none; }

/* --- TREŚĆ I TYPOGRAFIA --- */
.main-content {
    padding-top: 60px;
    padding-bottom: 80px;
}

.text-block { width: 100%; }

h1 {
    font-size: 2.2rem;
    color: var(--text-main);
    margin-top: 0;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 1.5rem;
    margin-top: 60px;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    color: var(--text-main);
}

h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-top: 30px;
    margin-bottom: 10px;
}

p {
    margin-bottom: 1.2rem;
    color: var(--text-main);
    font-size: 1.05rem;
    text-align: left;
}

p a { color: var(--link-color); text-decoration: none; }
p a:hover { text-decoration: underline; }

.section-desc {
    font-size: 1rem;
    color: var(--text-main);
    max-width: 600px;
    margin-bottom: 40px;
    margin-top: -15px;
    line-height: 1.6;
}

ul {
    padding-left: 20px;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

li {
    margin-bottom: 10px;
    font-size: 1.05rem;
}

li strong { color: var(--text-main); }

/* --- ELEMENTY UI --- */
.profile-image-container {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--image-bg);
    margin-bottom: 35px;
}

.profile-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
}

.back-link {
    display: inline-flex;       
    align-items: center;        
    gap: 8px;                   
    margin-bottom: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--link-color);
}

/* Kafelki z notatkami */
.notes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.note-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    transition: border-color 0.2s ease;
}

.note-card:hover {
    border-color: var(--card-border-hover);
}

.note-image {
    width: 100%;
    height: 180px; 
    background-color: #ffffff; 
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; 
}

.note-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;  
    padding: 0;         
    display: block;
}

[data-theme="dark"] .note-image {
    filter: brightness(0.9);
}

.note-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.note-tag {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: var(--tag-bg);
    color: var(--tag-text);
    padding: 4px 10px;
}

.note-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.note-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    color: var(--text-main);
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.note-card:hover h3 {
    color: var(--card-border-hover);
}

.note-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.6;
}


/* Przycisk See All */
.view-all-container {
    margin-top: 32px;
    display: flex;
    justify-content: flex-start;
}

.btn-see-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: transparent;
    border: none;
    color: var(--text-muted);
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-see-all:hover {
    color: var(--text-main);
    background-color: var(--btn-hover-bg);
}

.btn-arrow {
    transition: transform 0.2s ease;
}

.btn-see-all:hover .btn-arrow {
    transform: translateX(4px);
}



/* --- KONTAKT --- */
.contact-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 1.05rem;
    color: var(--text-main);
}

.icon-svg {
    width: 20px;
    height: 20px;
    fill: var(--text-muted);
    flex-shrink: 0;
}

.contact-list a {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 500;
}

.contact-list a:hover { text-decoration: underline; }

.contact-label {
    font-weight: 700;
    color: var(--text-main);
    margin-right: 5px;
}

/* --- RWD (MOBILE) --- */
@media (max-width: 800px) {
    .nav-content {
        flex-direction: row; 
        flex-wrap: wrap; 
        justify-content: space-between;
        gap: 20px;
    }
    .nav-links { 
        gap: 15px; 
        width: 100%;
        margin-left: 0; /* Reset dla mobilki */
        justify-content: flex-start;
        order: 3; /* Linki schodzą pod spód */
    }
    .theme-toggle-btn { 
        margin-left: auto; /* Guzik wraca do prawej obok logo */
    }
    .notes-grid { grid-template-columns: 1fr; }
}

