/* styl_wydania-101.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;
    background-color: transparent;
    border: none;
}

/* --- 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;
    background-color: transparent;
    border: 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: transparent; 
    border: none; 
    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;
    line-height: normal; 
}

.input-field:focus {
    background-color: rgba(255, 255, 255, 0.8) !important; 
    border-color: #fca334 !important;
    outline: none;
}

.input-field.correct {
    background-color: rgba(175, 201, 54, 0.7) !important; 
    border-radius: 4px;
    border-color: #3f5c08 !important;
}

.input-field.wrong {
    background-color: rgba(255, 0, 0, 0.4) !important; 
    border-radius: 4px;
    border-color: red !important;
}

/* --- 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;
    background-color: transparent;
    border: none;
    border-radius: 50%; 
    font-family: 'BurbankMedium', 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;
}

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

.rebus-input.correct {
    background-color: #afc936 !important;
    border-color: #3f5c08 !important;
    border-style: solid;
    color: #fff;
}

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

/* --- 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;
    background-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;
    background-color: transparent; 
    border: none;
    border-radius: 0px;
    font-family: 'BurbankMedium', 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;
}

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

.crossword-input.correct {
    background-color: #afc936 !important;
    border: 1px solid #3f5c08;
    color: #fff;
}

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

/* --- WYRÓŻNIENIE PIONOWEGO HASŁA (Dynamiczne) --- */
.crossword-input.solution-field {
    border: 2px solid #8fa02b !important; 
}

.crossword-input.solution-field.filled {
    background-color: #afc735 !important; 
    color: #000;
}

.crossword-input.solution-field.wrong {
    background-color: #ffcccc !important;
    border-color: red !important;
}
.crossword-input.solution-field.correct {
    background-color: #fca334 !important; 
    border-color: #c27616 !important;
    color: #000;
}

/* --- WÖRTER GURU (STRONA 2) - WERSJA NIEWIDZIALNA --- */
.guru-input {
    position: absolute;
    background-color: transparent;
    border: none;
    font-family: 'BurbankMedium', sans-serif;
    color: #000;
    text-align: center;
    text-transform: uppercase;
    padding: 0;
    margin: 0;
    outline: none;
    z-index: 20;
    appearance: none;
    -webkit-appearance: none;
}

.guru-input:focus {
    background-color: rgba(252, 163, 52, 0.1); 
}

.guru-input.correct {
    background-color: #afc936 !important; 
    color: #fff;
}

.guru-input.wrong {
    background-color: rgba(255, 0, 0, 0.4) !important; 
}

/* --- ZADANIE 1: WYKREŚLANIE SŁÓW (STRONA 7) --- */
.cross-out-word {
    position: absolute;
    cursor: pointer;
    z-index: 20;
    background-color: transparent;
    border: none;
}

.cross-out-word.crossed::before {
    content: '';
    position: absolute;
    top: 50%; 
    left: 0; 
    right: 0;
    height: 4px;
    background-color: #e3000f; 
    transform: rotate(-10deg); 
    z-index: 21;
}

.cross-out-word.result-ok,
.cross-out-word.result-bad {
    border: none !important;
    background-color: transparent !important;
}

.cross-out-word.result-ok::after {
    content: '';
    position: absolute;
    top: 10%; 
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px; 
    height: 20px;
    background-image: url('img/okej.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 25;
}

.cross-out-word.result-bad::after {
    content: '';
    position: absolute;
    top: 10%; 
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px; 
    height: 20px;
    background-image: url('img/wrong.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 25;
}

/* --- ZADANIE 2: ŁĄCZENIE PUNKTÓW (STRONA 7) --- */
.match-node {
    position: absolute;
    cursor: pointer;
    z-index: 20;
    border-radius: 50%;
    transition: background-color 0.2s, transform 0.2s;
    background-color: transparent;
    border: none;
}

.match-node.selected {
    background-color: rgba(252, 163, 52, 0.7) !important;
    border: 2px solid #fca334 !important;
    transform: scale(1.1);
}

.drawn-line {
    stroke: #2e3092; 
    stroke-width: 3px;
    stroke-linecap: round;
    transition: stroke 0.3s;
}

/* --- ZADANIE 2 (STRONA 7): CHECKBOXY --- */
.quiz-check {
    position: absolute;
    cursor: pointer;
    z-index: 20;
    box-sizing: border-box;
    background-color: transparent;
    border: none;
}

.quiz-check.checked {
    background-color: rgba(252, 163, 52, 0.5) !important;
    border: 2px solid #fca334 !important;
}

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

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

.solution-box {
    background-color: rgba(255, 255, 255, 0.6) !important; 
    pointer-events: none; 
    border: none;
}

/* --- ZADANIE 1: SŁOWA DO SKREŚLANIA (STRONA 7) --- */
.word-strike {
    position: absolute;
    z-index: 20;
    pointer-events: none; 
    background-color: transparent;
    border: none;
}

.word-strike.crossed::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #e3000f;
    transform: rotate(-1.5deg);
    z-index: 21;
}

/* ========================================== */
/* SYSTEM FEEDBACKU (WYSKAKUJĄCE KOMUNIKATY)  */
/* ========================================== */

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

.feedback-content {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    border: 6px solid #fca334;
    box-shadow: 0 0 40px rgba(0,0,0,0.7);
    animation: zoomIn 0.3s;
    font-family: 'BurbankMedium', sans-serif;
}

.feedback-content h2 {
    font-family: 'BurbankBold', sans-serif;
    font-size: 3.5rem;
    margin-bottom: 15px;
    margin-top: 0;
    text-transform: uppercase;
}

.feedback-content p {
    font-size: 1.6rem;
    color: #222;
    margin-bottom: 30px;
    line-height: 1.2;
}

.modal-ok-btn {
    font-family: 'BurbankMedium', sans-serif;
    background-color: #fca334; 
    color: #000;
    border: 3px solid #fca334; 
    padding: 12px 40px;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: none !important; 
    margin-top: 20px;
    transition: background-color 0.2s, transform 0.2s;
}

.modal-ok-btn:hover {
    background-color: transparent; 
    transform: scale(1.05); 
}

/* ========================================== */
/* DRAG & DROP (NOWOŚĆ WYDANIE 101)           */
/* ========================================== */

.drag-item {
    position: absolute;
    cursor: grab;
    z-index: 25;
    padding: 5px 5px;
    font-family: 'BurbankMedium', sans-serif; 
    font-size: 1.2rem;
    text-transform: none; 
    color: #2e3092;
    touch-action: none; 
    user-select: none;
    transition: transform 0.1s;
}

.drag-item.dragging {
    cursor: grabbing;
    z-index: 1000;
    transform: scale(1.1);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
    border-color: #fca334;
}

.drop-zone {
    position: absolute;
    border: 2px dashed transparent; /* Ukrywamy przerywaną ramkę na pusto */
    background-color: transparent; /* Ukrywamy tło strefy zrzutu */
    z-index: 15;
    border-radius: 0px;
}

.drop-zone.hovered {
    background-color: rgba(175, 201, 54, 0.3) !important;
    border-color: #afc936 !important;
}

/* --- POLA WYNIKÓW (PUNKTE) --- */
.punkte-output {
    position: absolute;
    background-color: transparent;
    border: none;
    font-family: 'BurbankBold', sans-serif;
    color: #e3000f; 
    text-align: center;
    font-size: 24px;
    padding: 0;
    margin: 0;
    z-index: 20;
    pointer-events: none; 
}