@font-face {
  font-family: 'Rajdhani-Light-Custom'; /* Możesz wybrać dowolną nazwę rodziny */
  src: url('../font/Rajdhani-Light.ttf') format('truetype');
  font-weight: normal; /* lub 300 jeśli odpowiada wadze 'Light' */
  font-style: normal;
  font-display: swap; /* Pomaga w wyświetlaniu tekstu czcionką systemową, dopóki niestandardowa się nie załaduje */
}

:root {
    --bg-color: #ffffff;
    --text-color: #333333;
    --accent-color: #0077cc;
    --command-color: #0055aa;
    --comment-color: #666666;
    --header-bg: #333;
    --border-color: #ddd;
    --highlight-bg: #e6f7ff;
    --skill-audio-bg: #1d4ed8;
    --skill-ai-bg: #7e22ce;
    --skill-video-bg: #dc2626;
    --skill-tech-bg: #16a34a;
    --skill-other-bg: #ca8a04;
    --skill-backlog-bg: #0d9488;
}

body {
    font-family: 'Fira Code', monospace;
    font-size: 12px;
    line-height: 1.4;
    background-color: #f8f9fa;
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
    margin: 0;
    padding: 0;
}

.cv-main-container {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 280px; /* Dopasowana wartość dla stałej pozycji */
    margin-bottom: 2rem;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 1rem;
    position: relative;
}

.lang-switcher {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--header-bg);
    padding: 5px 10px;
    border-radius: 4px;
    z-index: 10;
    display: flex;
    gap: 5px;
}
.lang-switcher button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 3px 6px;
    font-family: 'Fira Code', monospace;
    font-size: 11px;
    border-radius: 3px;
    transition: background-color 0.2s;
}
.lang-switcher button.active,
.lang-switcher button:hover {
    background-color: var(--accent-color);
}

.cli-frame {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    /* align-self: start; */ /* Pozostawiam zakomentowane, jeśli nie jest globalnie potrzebne */
}
.skills-grid .cli-frame {
    align-self: start; /* Specyficzne dla siatki skills */
}

.cli-frame.collapsed .cli-content {
    max-height: 0 !important; 
    opacity: 0 !important; 
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important; 
    margin-bottom: 0 !important; 
    border-width: 0 !important; 
    /* overflow: hidden;  Powinno być na .cli-frame */ 
    transition: max-height 0.35s cubic-bezier(0.645, 0.045, 0.355, 1), 
                padding-top 0.35s cubic-bezier(0.645, 0.045, 0.355, 1), 
                padding-bottom 0.35s cubic-bezier(0.645, 0.045, 0.355, 1), 
                opacity 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
}
 .cli-frame.collapsed .cli-header .toggle-icon i {
    transform: rotate(-90deg);
}

.cli-header {
    background-color: var(--header-bg);
    color: white;
    padding: 6px 12px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    cursor: pointer;
    position: relative;
}

.cli-header .toggle-icon {
    /* margin-left: auto; Usunięte na rzecz pozycjonowania w kontenerze flex */
    padding-left: 10px;
    font-size: 1em;
}
 .cli-header .toggle-icon i {
     transition: transform 0.35s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.cli-title {
    display: flex;
    align-items: center;
    flex-grow: 1; /* Pozwala tytułowi zająć dostępną przestrzeń */
    position: relative; /* DODANE dla pozycjonowania absolutnego elipsy, jeśli potrzebne */
}
.cli-title h2 {
     font-size: 1em;
     font-weight: bold;
     margin: 0;
     display: flex;
     align-items: center;
}

/* Styl dla animowanego trzykropka */
.loading-ellipsis {
    display: inline-block;
    margin-left: 5px;
    width: 1.5em; /* Dostosuj szerokość do ilości kropek i fontu */
    text-align: left;
    vertical-align: bottom; /* Lepsze wyrównanie z tekstem tytułu */
}

.cli-title-icon {
    margin-right: 8px;
}

.cli-header > div:not(.cli-title) { /* Kontener dla promptu i uptime */
    display: flex;
    align-items: center;
}


.cli-content {
    padding: 12px;
    overflow: hidden;  /* OD<x_bin_472>KOMENTOWANE */
    /* max-height: 2000px; Usunięte - pozwólmy treści samej determinować wysokość */
    transition: max-height 0.35s cubic-bezier(0.645, 0.045, 0.355, 1), 
                opacity 0.25s cubic-bezier(0.645, 0.045, 0.355, 1) 0.1s, 
                padding-top 0.35s cubic-bezier(0.645, 0.045, 0.355, 1), 
                padding-bottom 0.35s cubic-bezier(0.645, 0.045, 0.355, 1);
    opacity: 1;
    /* visibility: visible !important; USUNIĘTO */
    /* Domyślnie max-height nie jest ustawione, więc przyjmuje naturalną wysokość */
}

.prompt {
    color: var(--command-color);
    font-weight: bold;
}
.prompt .cursor {
    display: inline-block;
    background-color: var(--command-color); /* lub var(--text-color) dla lepszego kontrastu na ciemnym tle */
    width: 7px;
    height: 1em;
    animation: blink 1s step-end infinite;
    vertical-align: text-bottom; /* Dostosuj dla lepszego wyrównania */
    margin-left: 1px;
}
@keyframes blink {
    from, to { background-color: transparent; }
    50% { background-color: var(--command-color); } /* lub var(--text-color) */
}

.company {
    margin-bottom: 1rem;
    padding-left: 12px;
    position: relative;
}

.company-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}
.company-info-left {
    margin-right: 1rem;
}
.company-name {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.1em;
    margin:0 0 2px 0;
}
.position {
    font-weight: bold;
    margin:0;
}
.date {
    color: var(--comment-color);
    font-size: 11px;
    text-align: right;
    flex-shrink: 0;
    white-space: nowrap;
}
.company-header .company-identity {
     margin-right: 1rem;
}
.company-header .company-info-left {
    margin-right: 1rem;
}
.company-header .company-details {
    margin-left: auto;
    align-items: flex-end;
}

.responsibilities {
    list-style-type: none;
    padding-left: 0;
    margin-top: 4px;
    margin-bottom: 8px;
}

.responsibilities li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 4px;
}

.responsibilities li::before {
    content: "├── ";
    color: var(--command-color);
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
}

.responsibilities li:last-child::before {
    content: "└── ";
}

.career-progression {
    margin-left: 15px;
    padding-left: 15px;
    position: relative;
    border-left: 1px solid var(--command-color);
    margin-top: 0.5rem;
}

.career-step {
    margin-bottom: 10px;
    position: relative;
    padding-left: 15px;
}

.career-step::before {
    content: "●";
    position: absolute;
    left: -5.5px;
    top: 6px;
    color: var(--command-color);
    font-size: 8px;
    background-color: var(--bg-color);
    padding: 0 2px;
}

 .career-step:last-child::before {
     color: var(--accent-color);
 }

.career-step-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.career-step-position {
    font-weight: bold;
    font-size: 1em;
    margin: 0;
}

.career-step-date {
    color: var(--comment-color);
    font-size: 11px;
    text-align: right;
    flex-shrink: 0;
    margin-left: auto;
    padding-left: 10px;
}

.skill-list {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

.skill-list li {
    margin-bottom: 4px;
    padding-left: 20px;
    position: relative;
}

.skill-list li::before {
    content: "$";
    color: var(--command-color);
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

.content-link {
    color: var(--accent-color);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.content-link:hover {
    color: var(--command-color);
    text-decoration-thickness: 2px;
}

.highlight-specialization {
    border: 1px solid var(--border-color);
    padding: 2px 4px;
    border-radius: 3px;
    display: inline; 
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.contact-link {
    display: flex;
    align-items: center;
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    padding: 5px 10px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.contact-link:hover {
    color: var(--command-color);
    background-color: var(--highlight-bg);
    border-color: var(--border-color);
    transform: translateY(-2px);
}

.contact-icon {
    margin-right: 8px;
    font-size: 14px;
}

.gdpr-clause {
    margin-top: 2rem;
    padding: 15px;
    font-size: 10px;
    text-align: justify;
    color: var(--comment-color);
    border-top: 1px solid var(--border-color);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}
.skill-header-audio { background-color: var(--skill-audio-bg); }
.skill-header-ai { background-color: var(--skill-ai-bg); }
.skill-header-video { background-color: var(--skill-video-bg); }
.skill-header-tech { background-color: var(--skill-tech-bg); }
.skill-header-other { background-color: var(--skill-other-bg); }
.skill-header-backlog { background-color: var(--skill-backlog-bg); }

/* Sekcja dla easter egg */
#easter-egg-console {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #1a1a1a;
    color: #00ff00;
    padding: 20px;
    font-family: Menlo, Monaco, 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.4;
    z-index: 2000;
    border-top: 2px solid var(--accent-color);
    max-height: 50vh;
    overflow-y: auto;
    display: none; /* Domyślnie ukryta */
}
#easter-egg-console pre {
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Pasek terminala w stylu macOS */
.terminal-bar {
    display: flex;
    align-items: center; 
    padding: 4px 10px; /* Zmniejszony padding pionowy */
    background: #232323;
    z-index: 2;
    height: auto;
    min-height: 32px; /* Zwiększona minimalna wysokość */
    box-sizing: border-box;
    flex-shrink: 0;
    justify-content: space-between;
    border-radius: 0 !important;
}

/* Animacja błysku - PRZENIESIONA NA .lang-switcher::after */
.terminal-bar .lang-switcher::after { /* ZMIENIONY SELEKTOR */
    content: '';
    position: absolute;
    top: 0;
    left: -100%; /* Startuje całkowicie po lewej, poza widokiem */
    width: 50%; /* Szerokość samego błysku */
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg); /* Lekkie pochylenie błysku */
    animation: metallicShine 5s infinite linear;
    animation-delay: 2s; /* Opóźnienie startu pierwszej animacji */
}

@keyframes metallicShine {
    0% {
        left: -100%;
    }
    50%, 100% { /* Błysk przechodzi i znika */
        left: 150%; /* Kończy daleko po prawej, poza widokiem (100% + 50% szerokości błysku) */
    }
}

.terminal-bar::before { /* Tytuł */
    content: "SroczynskiOS Terminal";
    color: #ccc;
    font-size: 11px;
    display: inline-block;
}

/* Style dla lang-switcher i jego przycisków, gdy jest w .terminal-bar */
.terminal-bar .lang-switcher {
    display: flex; 
    gap: 5px;
    position: relative; 
    overflow: hidden; 
    /* padding: 2px; USUNIĘTO */
    /* border-radius: 3px; USUNIĘTO */
    transform: translateY(-55%); /* Dalsze podniesienie menu języka */
}

.terminal-bar .lang-switcher button {
    background-color: #ddd; /* Jasne tło */
    border: 1px solid #bbb; /* Ciemniejsza ramka */
    color: #333; /* Ciemny tekst */
    padding: 2px 6px; 
    cursor: pointer;
    font-family: 'Fira Code', monospace;
    font-size: 10px; 
    border-radius: 0 !important; 
    line-height: 1.2; /* Lekkie zwiększenie dla lepszego wyglądu tekstu */
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.terminal-bar .lang-switcher button:hover {
    background-color: #ccc; /* Lekko ciemniejsze tło przy hover */
    color: #000; /* Czarny tekst przy hover */
    border-color: #aaa;
}

.terminal-bar .lang-switcher button.active {
    background-color: var(--accent-color) !important; /* Niebieskie tło dla aktywnego - ważne! */
    color: #fff !important; /* Biały tekst dla aktywnego - ważne! */
    border-color: var(--accent-color) !important; /* Niebieska ramka dla aktywnego - ważne! */
    cursor: default;
}

.terminal-btn {
    display: none !important;
}

/* Główny kontener terminala */
#boot-terminal {
    background-color: #222;
    color: #eee;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transition: height 0.5s ease-in-out, opacity 0.5s ease-in-out, top 0.3s ease-out;
    position: fixed;
    top: 0 !important;
    left: 0;
    right: 0;
    width: auto;
    z-index: 999;
    height: 250px;
    max-height: 100vh;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

#boot-terminal.minimized {
    height: 51px !important; /* Suma wysokości paska i uchwytu */
    min-height: 0 !important;
    opacity: 0.95;
    cursor: pointer;
    overflow: hidden;
}

#boot-terminal.maximized {
    position: fixed; /* Upewnij się, że jest fixed jak normalny terminal */
    top: 20px;
    left: 2vw; /* Lub inne wartości, jeśli chcesz pełnoekranowy */
    width: 96vw;
    height: calc(100vh - 40px);
    max-height: calc(100vh - 40px);
    z-index: 1001; /* Wyżej niż inne elementy */
}

/* DODANA REGUŁA DLA UKRYCIA ZAWARTOŚCI ZMINIMALIZOWANEGO TERMINALA */
#boot-terminal.minimized #boot-output {
    display: none !important;
}

/* Obszar na output terminala */
#boot-output {
    margin: 0;
    padding: 10px;
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.5;
    flex-grow: 1;
    min-height: 0; 
    overflow-y: auto; 
    box-sizing: border-box; 
    /* Ukrywanie paska przewijania */
    scrollbar-width: none; /* Dla Firefox */
    -ms-overflow-style: none;  /* Dla Internet Explorer 10+ */
}

/* Dla przeglądarek WebKit (Chrome, Safari, Edge, itp.) */
#boot-output::-webkit-scrollbar {
    display: none;
}

.boot-cursor {
    display: none; /* CAŁKOWITE UKRYCIE MIGAJĄCEGO KURSORA */
    /*
    display: inline-block;
    background-color: #ffffff;
    width: 8px; 
    height: 1.2em; 
    margin-left: 2px;
    vertical-align: middle; 
    animation: blink 1s step-start 0s infinite;
}

.editable-input {
    display: inline-block; 
    min-width: 150px; /* ZWIĘKSZONA SZEROKOŚĆ MINIMALNA */
    outline: none !important; /* USUNIĘCIE DOMYŚLNEJ OBRAMÓWKI FOCUS */
    padding: 0 2px; 
    -webkit-appearance: none; 
    -moz-appearance: none;    
    appearance: none;         
    background: transparent;  
    border: none;             
    color: inherit;           
    caret-color: white;       
    vertical-align: middle; /* ZMIANA NA middle */
    line-height: inherit; 
}

/* BARDZIEJ AGRESYWNE USUNIĘCIE OUTLINE DLA ELEMENTÓW W TERMINALU */
#boot-terminal *:focus {
    outline: none !important;
}

/* Jeśli powyższe nie zadziała, można spróbować z bardziej specyficznym selektorem */
/* #boot-output span[contenteditable="true"]:focus {
    outline: none !important;
} */

/* Ukryj nasz .boot-cursor, gdy poprzedzający go .editable-input ma focus */
/* To jest nieco trudniejsze do osiągnięcia w czystym CSS bez JS, 
   ponieważ CSS nie ma selektora "previous sibling" ani "parent of focused child".
   Na razie spróbujemy inaczej - będziemy zarządzać widocznością .boot-cursor przez JS. */

/* Alternatywnie, jeśli chcemy, aby cała linia promptu była klikalna do edycji:
.prompt-line:focus-within .editable-input {
     γίνεται contenteditable 
}
.prompt-line:focus-within .boot-cursor {
    display: none;
}
To wymagałoby owinięcia promptu i editable-input w dodatkowy div.prompt-line.
Na razie zostawiamy prostsze podejście i będziemy zarządzać kursorem przez JS. */

@keyframes blink { 
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

/* Style dla Sub-Terminala */
.sub-terminal {
    background-color: #1e1e1e;
    color: #cccccc;
    font-family: Menlo, Monaco, 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.4;
    padding: 8px;
    border-radius: 3px;
    margin-bottom: 10px;
    border: 1px solid #444;
    max-height: 250px;
    overflow-y: auto;
    transition: opacity 0.3s ease-out, max-height 0.3s ease-out;
}

.sub-terminal-header {
    color: var(--accent-color);
    margin-bottom: 5px;
    font-weight: bold;
}
.sub-terminal-header .sub-terminal-command-display {
    color: #cccccc;
    font-weight: normal;
}

.sub-terminal-output {
    white-space: pre-wrap;
    word-break: break-all;
}
 .sub-terminal-output .cursor {
    display: inline-block;
    background-color: #cccccc;
    width: 6px;
    height: 0.9em;
    animation: blink-sub 1s step-end infinite;
    vertical-align: text-bottom;
    margin-left: 1px;
}
@keyframes blink-sub {
    from, to { background-color: transparent; }
    50% { background-color: #cccccc; }
}

/* Ukrywanie .main-content-area gdy .sub-terminal jest aktywny (do zarządzania przez JS) */
.cli-content .main-content-area.content-loading {
    display: none; 
}

@media (max-width: 768px) {
    body {
        font-size: 11px;
    }
    .cv-container {
        margin: 1rem 0.5rem;
        border-radius: 0;
        box-shadow: none;
    }
    .lang-switcher {
        padding: 3px 6px;
        gap: 3px;
    }
    .lang-switcher button {
        font-size: 10px;
        padding: 2px 4px;
    }
    .cli-header {
        padding: 4px 8px;
    }
    .cli-content {
        padding: 10px;
    }
    .company-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .company-info-left {
        margin-right: 0;
        margin-bottom: 4px;
    }
    .company-header .company-info-left {
        flex-direction: row; 
    }
    .company-details {
        align-items: flex-start;
        margin-left: 0;
        width: 100%;
    }
    .position, .date, .career-step-date {
        text-align: left;
        width: 100%;
    }
     .career-step-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .contact-links {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    .skills-grid {
         grid-template-columns: 1fr;
    }
}

/* Możemy dodać specjalny styl dla kursora systemowego, gdy pole jest edytowalne,
   ale na razie systemowy kursor powinien być wystarczający. Nasz .boot-cursor jest obok. */

#cv-dynamic-content-area {
    /* padding-top: 282px; USUNIĘTE - teraz padding będzie na .cv-main-container */
}

/* Ukrywanie paska przewijania dla głównego body, jeśli boot-terminal jest widoczny */
body.booting {
    overflow: hidden;
}

/* Styl dla uchwytu zmiany rozmiaru terminala */
#terminal-resize-handle {
    width: 100%;
    height: 15px; /* Zwiększona trochę wysokość dla łatwiejszego chwytania */
    flex-shrink: 0; /* DODANE - aby się nie kurczył */
    cursor: ns-resize; /* ZMIENIONO na ns-resize dla góra-dół */
    display: flex; 
    align-items: center;
    justify-content: center;
    background-color: #282828; /* Lekko jaśniejsze tło niż terminal dla odróżnienia */
    /* PRZYWRÓCONE POZYCJONOWANIE ABSOLUTNE */
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 1; /* Upewnij się, że jest nad zawartością outputu, jeśli się nakładają */
}

#terminal-resize-handle::before {
    content: "\2630"; 
    font-size: 10px; /* Zmniejszony font-size, aby był mniejszy niż wysokość kontenera (15px) */
    color: rgba(200, 200, 200, 0.6); 
    line-height: 1; /* lub można spróbować line-height: 15px; jeśli flex nie centruje idealnie */
    font-weight: normal; 
    letter-spacing: 0; 
}

/* === Responsywność === */
@media (max-width: 768px) {
    /* Istniejące style responsywne, jeśli są */
}

/* Ukrywanie powitania ASCII na urządzeniach mobilnych */
@media (max-width: 768px) {
    .ascii-art-welcome {
        display: none !important;
    }
}

/* Koniec pliku */ 