/* style_wydania.css */

/* --- 1. IMPORT CZCIONKI --- */
@font-face {
    font-family: 'BurbankMedium';
    src: url('../../fonts/BurbankBigRegular-Medium.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'BurbankBold';
    src: url('../../fonts/BurbankBigRegular-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

/* --- 2. RESET I BAZA --- */
body {
    margin: 0;
    padding: 0;
    background-color: #222;
    font-family: 'BurbankMedium', Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* --- 3. KONTENER GAZETY --- */
.magazine-wrapper {
    position: relative;
    width: auto;
    max-width: 100%;
    line-height: 0; 
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.page-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100vw;
    max-height: 85vh;
}

/* --- 4. HOTSPOTY --- */
.hotspot-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-origin: top left;
}

.hotspot {
    position: absolute;
    cursor: pointer;
    z-index: 10;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

.hotspot:hover {
    background-color: rgba(255, 255, 255, 0) !important;
}

/* --- 5. NAWIGACJA --- */
.nav-bar {
    width: 100%;
    max-width: 1000px;
    padding: 15px 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}

.nav-btn {
    font-family: 'BurbankMedium', sans-serif;
    display: inline-block;
    padding: 12px 25px;
    background-color: #fca334;
    color: #000;
    text-decoration: none;
    font-size: 1.2rem;
    text-transform: uppercase;
    border-radius: 0px;
    transition: transform 0.1s, background-color 0.2s;
}

.nav-btn:hover {
    background-color: #ffb75e;
    transform: scale(1.05);
}

/* --- ELEMENTY INTERAKTYWNE --- */
.game-input {
    position: absolute;
    font-family: 'BurbankMedium', sans-serif;
    font-size: 20px;
    color: #000;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 12px;
    z-index: 20;
    padding: 0;
    outline: none;
}

.game-input:focus {
    border-color: #fca334 !important;
    background-color: #fff !important;
}

.game-input.correct {
    background-color: rgba(175, 201, 54, 0.8) !important;
    border-color: #3f5c08 !important;
}

.game-input.wrong {
    background-color: rgba(255, 0, 0, 0.3) !important;
    border-color: red !important;
}

.check-btn {
    background-color: #fff;
    cursor: pointer;
}

.input-field {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.6);
    font-family: 'BurbankBold', sans-serif;
    color: #000;
    text-align: center;
    text-transform: uppercase;
    padding: 0;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    box-sizing: border-box;
    z-index: 20;
}

.input-field:focus {
    background-color: #fff;
    border-color: #fca334;
    border-width: 2px;
}

.input-field.correct {
    background-color: #afc936 !important;
    border-color: #3f5c08;
}

.input-field.wrong {
    background-color: #ffcccc !important;
    border-color: red;
}

/* --- MODAL --- */
.photo-trigger {
    cursor: zoom-in;
    z-index: 15;
    border: none;
}

.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    border: 5px solid #fff;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    object-fit: contain;
    animation: zoomIn 0.3s;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-btn:hover {
    color: #fca334;
}

@keyframes fadeIn {
    from {background-color: rgba(0,0,0,0);}
    to {background-color: rgba(0,0,0,0.9);}
}

@keyframes zoomIn {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

/* --- QUIZ ABCD --- */
.quiz-option {
    position: absolute !important;
    cursor: pointer;
    z-index: 20;
    border-radius: 0;
    border: 2px solid transparent;
    background-color: transparent;
    transition: background-color 0.2s, border-color 0.2s;
}

.quiz-option.selected {
    border: 3px solid #fca334 !important;
    background-color: rgba(252, 163, 52, 0.3) !important;
    box-shadow: 0 0 10px rgba(252, 163, 52, 0.5);
}

.quiz-option.result-correct {
    border: 3px solid #afc936 !important;
    background-color: rgba(175, 201, 54, 0.6) !important;
}

.quiz-option.result-wrong {
    border: 3px solid red !important;
    background-color: rgba(255, 0, 0, 0.4) !important;
}

/* --- REBUS (STRONA 5) --- */

.rebus-input {
    position: absolute;
    
    /* Wygląd okrągły */
    background-color: rgba(255, 255, 255, 0.6);
    border: 0px solid #888;
    border-radius: 50%; /* Robi kółko */
    
    /* Tekst */
    font-family: 'BurbankMedium', sans-serif;
    color: #000;
    text-align: center;
    text-transform: uppercase;
    padding: 0;
    margin: 0;
    
    /* Techniczne */
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    box-sizing: border-box;
    z-index: 20;
    
    /* TYMCZASOWE (Włącz jeśli nie pasują do kółek) */
    /* border: 2px solid blue !important; */
}

.rebus-input:focus {
    background-color: #fff;
    border-color: #fca334;
    border-width: 3px;
}

/* Wyniki */
.rebus-input.correct {
    background-color: #afc936 !important;
    border-color: #3f5c08;
    color: #fff;
}

.rebus-input.wrong {
    background-color: #ffcccc !important;
    border-color: red;
}ś

/* --- WYKREŚLANKA --- */
.word-search-grid {
    position: absolute;
    display: grid;
    z-index: 20;
    border: none;
    background-color: transparent;
}

.grid-cell {
    pointer-events: auto !important;
    cursor: pointer !important;
    transition: background-color 0.1s, transform 0.1s;
    border-radius: 50%;
    border: none;
    color: transparent;
}

.grid-cell:hover {
    background-color: rgba(252, 163, 52, 0.3);
    transform: scale(1.1);
}

.grid-cell.found {
    background-color: rgba(175, 201, 54, 0.6);
}

.grid-cell.selected {
    background-color: rgba(252, 163, 52, 0.7);
}

.word-list-item.crossed::after {
    content: '';
    position: absolute;
    top: 50%; left: 0; width: 100%; height: 3px;
    background-color: #fca334;
    transform: rotate(-5deg);
}


/* --- ZADANIE 1: KÓŁKA (CIRCLE INPUT) --- */
.circle-input {
    border-radius: 50%;
    border: none;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    text-align: center;
    text-transform: uppercase;
}

/* --- ZADANIE 2: KWADRATY (SQUARE INPUT) --- */
.square-input {
    border: none;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    text-align: center;
    text-transform: uppercase;
}

/* --- KRZYŻÓWKA (STRONA 8) --- */

.crossword-input {
    position: absolute;
    
    /* Białe tło z lekką przezroczystością, żeby widać było zielone ramki z tła */
    background-color: rgba(255, 255, 255, 0.7); 
    border: 1px solid #999;
    border-radius: 0px;
    
    /* Tekst */
    font-family: 'BurbankMedium', sans-serif;
    color: #000;
    text-align: center;
    text-transform: uppercase;
    padding: 0;
    margin: 0;
    
    /* Techniczne */
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    box-sizing: border-box;
    z-index: 20;
    
    /* TYMCZASOWE (Włącz, żeby ustawić pozycje) */
    /* border: 2px solid blue !important; */
}

.crossword-input:focus {
    background-color: #fff; /* Pełna biel przy pisaniu */
    border-color: #fca334;
    border-width: 2px;
}

/* Wyniki */
.crossword-input.correct {
    background-color: #afc936 !important;
    border-color: #3f5c08;
    color: #fff;
}

.crossword-input.wrong {
    background-color: #ffcccc !important;
    border-color: red;
}

/* --- WYRÓŻNIENIE PIONOWEGO HASŁA (Dynamiczne) --- */

/* 1. Stan początkowy (pusty): Tylko ramka sugeruje, że to ważne pole */
.crossword-input.solution-field {
    border: 2px solid #8fa02b !important; /* Grubsza, zielona ramka */
    /* Tło pozostaje domyślne (białe/przezroczyste) */
}

/* 2. Stan po wpisaniu litery (.filled dodaje JS) */
.crossword-input.solution-field.filled {
    background-color: #afc735 !important; /* Twój zielony wskakuje tutaj */
    color: #000;
}

/* Upewniamy się, że błędy (czerwony) i sukces (jasny zielony) mają priorytet */
.crossword-input.solution-field.wrong {
    background-color: #ffcccc !important;
    border-color: red !important;
}
.crossword-input.solution-field.correct {
    background-color: #fca334 !important; /* Ten "walidacyjny" zielony */
    border-color: #c27616 !important;
    color: #000;
}
/* --- WÖRTER GURU (STRONA 2) - WERSJA NIEWIDZIALNA --- */

.guru-input {
    position: absolute;
    
    /* KLUCZOWE: Usuwamy tło i ramkę - widać grafikę spod spodu */
    background-color: transparent;
    border: none;
    
    /* Styl tekstu */
    font-family: 'BurbankMedium', sans-serif;
    color: #000;
    text-align: center;
    text-transform: uppercase;
    
    /* Techniczne */
    padding: 0;
    margin: 0;
    outline: none;
    z-index: 20;
    
    /* Twardy reset wyglądu przeglądarkowego */
    appearance: none;
    -webkit-appearance: none;
}

/* Po kliknięciu - delikatne podświetlenie, żeby gracz wiedział gdzie jest kursor */
.guru-input:focus {
    background-color: rgba(252, 163, 52, 0.1); /* Bardzo jasny pomarańcz */
}

/* Wyniki - kolory muszą się pojawić po sprawdzeniu */
.guru-input.correct {
    background-color: #afc936 !important; /* Zielony */
    color: #fff;
}

.guru-input.wrong {
    background-color: rgba(255, 0, 0, 0.4) !important; /* Czerwony półprzezroczysty */
}