/* style.css - główny arkusz stylów CV */

:root {
    --morski: #2b6d9d;
    --morski-ciemny: #1e4f6e;
    --morski-jasny: #4a8cbc;
    --tekst-ciemny: #333333;
    --tekst-jasny: #555555;
    --szary: #f5f5f5;
    --bialy: #ffffff;
}

/* RESET I PODSTAWOWE STYLE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: #e8ecf0;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* GŁÓWNY KONTENER CV */
#cv-container {
    display: flex;
    width: 8.5in;
    max-width: 100%;
    background-color: var(--bialy);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin: 0 auto;
    border-radius: 4px;
    overflow: hidden;
}

/* LEWA KOLUMNA - SIDEBAR */
.sidebar {
    width: 35%;
    background-color: var(--morski);
    color: var(--bialy);
    padding: 40px 25px;
}

/* ZDJĘCIE PROFILOWE */
.profile-pic {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background-image: url('twoje-zdjecie.JPG');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 5px solid rgba(255, 255, 255, 0.25);
    margin: 0 auto 35px auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.profile-pic:hover {
    transform: scale(1.02);
    border-color: rgba(255, 255, 255, 0.4);
}

/* SEKCJE W SIDEBARZE */
.section-title-side {
    text-transform: uppercase;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 8px;
    margin-top: 35px;
    margin-bottom: 20px;
    font-size: 1.1em;
    font-weight: 700;
    letter-spacing: 2px;
    font-family: 'Montserrat', sans-serif;
}

.sidebar ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 25px;
}

.sidebar li {
    margin-bottom: 12px;
    font-size: 0.95em;
    line-height: 1.5;
    position: relative;
    padding-left: 20px;
}

.sidebar li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.9);
    font-weight: bold;
    font-size: 1.2em;
}

/* KONTAKT W SIDEBARZE */
.contact-info {
    margin-top: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.95em;
    word-break: break-word;
}

.contact-item i {
    width: 25px;
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.9);
}

.contact-item span {
    line-height: 1.4;
}

/* PRAWA KOLUMNA - MAIN */
.main {
    width: 65%;
    padding: 45px 45px;
    color: var(--tekst-ciemny);
    background-color: var(--bialy);
}

/* NAGŁÓWKI */
h1 {
    color: var(--morski);
    font-size: 3em;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 1px;
}

h2 {
    font-size: 2.2em;
    margin: 5px 0 25px 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--tekst-jasny);
    line-height: 1;
    letter-spacing: 1px;
}

/* NAGŁÓWKI SEKCJI */
.section-header {
    color: var(--morski);
    border-bottom: 3px solid var(--morski);
    text-transform: uppercase;
    margin-top: 30px;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    padding-bottom: 8px;
    letter-spacing: 2px;
    font-size: 1.1em;
}

/* BLOKI TREŚCI */
.content-block {
    margin-bottom: 28px;
}

.date {
    font-weight: 700;
    color: var(--tekst-jasny);
    font-size: 0.95em;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.company-name {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--morski);
    margin: 5px 0 5px 0;
    font-family: 'Montserrat', sans-serif;
}

.position {
    font-weight: 600;
    color: var(--tekst-ciemny);
    margin-bottom: 8px;
    font-size: 1em;
}

.main p {
    font-size: 0.98em;
    line-height: 1.7;
    color: var(--tekst-ciemny);
    text-align: justify;
}

.main ul {
    padding-left: 20px;
    margin: 10px 0 5px 0;
}

.main li {
    margin-bottom: 8px;
    font-size: 0.95em;
    line-height: 1.6;
    color: var(--tekst-ciemny);
}

/* SZCZEGÓŁY EDUKACJI */
.education-detail {
    margin-top: 8px;
    font-size: 0.95em;
    line-height: 1.5;
}

/* KLAUZULA RODO */
.rodo {
    margin-top: 35px;
    font-size: 0.55em;
    color: #777;
    border-top: 1px solid #ddd;
    padding-top: 12px;
    line-height: 1.6;
    text-align: justify;
    letter-spacing: 0.3px;
}

/* PRZYCISK PDF */
.download-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--morski);
    color: var(--bialy);
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    box-shadow: 0 5px 20px rgba(43, 109, 157, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    letter-spacing: 1px;
    border: 2px solid transparent;
}

.download-btn:hover {
    background-color: var(--morski-ciemny);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(43, 109, 157, 0.5);
}

.download-btn:active {
    transform: translateY(0);
}

.download-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.download-btn i {
    font-size: 1.2em;
}

/* RESPONSYWNOŚĆ */
@media screen and (max-width: 900px) {
    body {
        padding: 15px;
    }
    
    #cv-container {
        flex-direction: column;
        width: 100%;
    }
    
    .sidebar {
        width: 100%;
        text-align: center;
        padding: 35px 25px;
    }
    
    .sidebar ul {
        text-align: left;
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .profile-pic {
        width: 160px;
        height: 160px;
    }
    
    .contact-item {
        justify-content: center;
    }
    
    .main {
        width: 100%;
        padding: 35px 30px;
    }
    
    h1 {
        font-size: 2.5em;
    }
    
    h2 {
        font-size: 1.8em;
    }
    
    .download-btn {
        bottom: 20px;
        right: 20px;
        padding: 14px 28px;
        font-size: 15px;
    }
}

@media screen and (max-width: 480px) {
    .sidebar {
        padding: 25px 20px;
    }
    
    .profile-pic {
        width: 140px;
        height: 140px;
    }
    
    .main {
        padding: 25px 20px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    h2 {
        font-size: 1.5em;
    }
    
    .download-btn {
        bottom: 15px;
        right: 15px;
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* WYDDRUK - PDF */
@media print {
    body {
        background: white;
        padding: 0;
    }
    
    #cv-container {
        box-shadow: none;
        margin: 0;
        width: 100%;
        border-radius: 0;
    }
    
    .profile-pic {
        border: 5px solid rgba(43, 109, 157, 0.2);
    }
    
    .download-btn {
        display: none;
    }
    
    .sidebar {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .section-title-side {
        border-bottom-color: rgba(255, 255, 255, 0.5);
    }
}