﻿/* ===============================
   Path of Emotions (styling only)
   - Layout, fonts, colors live in layout.css via .eqn-page
   - This file handles visuals unique to POE
   =============================== */

/* Optional page theme hook */
.poe { /* reserved for future theming; keep empty for now */
}

/* ---------- Scenario Image ---------- */
.poe-image {
    text-align: center;
    margin-bottom: 1rem;
}

    .poe-image img {
        width: 100%;
        max-height: 160px;
        object-fit: contain;
        border-radius: 12px;
    }

/* ---------- Scenario Sentence ---------- */
.poe-sentence {
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
}

/* ---------- Blanks / Drop Targets ---------- */
.poe-blanks {
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0 0.5rem;
}

.poe-blank {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 20%;
    min-width: 64px;
    max-width: 80px;
    text-align: center;
    gap: 0.25rem;
}
    /* Uses global .icon-wrapper and img styling from layout.css; override if needed */
/*    .poe-blank img {
        width: 48px;
        height: 48px;
    }*/

        .poe-blank img.drag-over { /* matches .dz-over semantics */
            border-color: #4dabf7;
            background-color: #e7f3ff;
        }

/* ---------- Options ---------- */
.poe-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
    padding-top: 1rem;
    margin: 0 auto 2rem;
    justify-content: center;
}

.poe-option {
    background-color: #f5f5f5;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-weight: 600;
    cursor: grab;
    user-select: none;
    font-size: 0.95rem;
    width: 80%;
    text-align: center;
    justify-self: center;
    /* Optional: tie into global draggable helpers if you add the class in JS */
    /* e.g., add .draggable/.dragging via JS */
}

    .poe-option:hover {
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }

    .poe-option.used {
        opacity: 0.5;
        pointer-events: none;
    }

    .poe-option.glow {
        box-shadow: 0 0 12px #4dabf7;
        transition: box-shadow 0.3s ease-in-out;
    }

/* ---------- Actions (Footer) ---------- */
.poe-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

@media (max-width: 360px) {
    .poe-actions .btn {
        width: 50%;
        min-width: 140px;
    }
}

/* ---------- Icons + Checkmarks ---------- */
/* .icon-wrapper and .checkmark are defined globally in layout.css.
   The sizes below keep POE consistent with its imagery. */
.icon-wrapper {
    width: 64px;
    height: 64px;
}

/* ---------- Summary ---------- */
.poe-summary {
    padding: 1rem;
    border-top: 2px solid #ddd;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.poe-summary-header {
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 600;
}

.poe-summary-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.poe-summary-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.poe-summary-text {
    font-size: 1rem;
    font-weight: 500;
}

.poe-summary-row.highlighted {
    background-color: #e7f3ff;
    border-radius: 8px;
    padding: 0.5rem;
    transition: background-color 0.3s;
}

/* ---------- Instruction Text ---------- */
.poe-instruction {
    font-weight: bold;
    font-size: 0.75rem;
}

    .poe-instruction span,
    .poe-summary-header span {
        font-weight: bold;
    }

/* ---------- Highlighted Words ---------- */
.poe span.highlighted {
    background-color: #fff9c4;
    border-radius: 4px;
    transition: background-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

/* ---------- Small Screen Tweaks ---------- */
@media (max-width: 380px), (max-height: 700px) {
    .poe-image img {
        max-height: 120px;
    }

    .poe-sentence {
        font-size: 1rem;
        margin-bottom: 1rem;
        padding: 0 0.25rem;
    }

    .poe-blanks {
        gap: 0.5rem;
        margin-bottom: 0.5rem;
        width: 100%;
    }

    .poe-blank img {
        width: 60px;
        height: 60px;
        padding: 3px;
    }

    .poe-options {
        gap: 0.5rem;
        padding-top: 0.5rem;
        margin-bottom: 1rem;
    }

    .poe-option {
        width: 90%;
        font-size: 0.9rem;
        padding: 0.4rem 0.6rem;
    }

    .poe-actions .btn {
        font-size: 0.9rem;
        padding: 0.35rem 0.9rem;
        width: 70%;
        min-width: 130px;
    }

    .poe-summary {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .poe-summary-text {
        font-size: 0.9rem;
    }

    .poe-instruction {
        font-size: 0.7rem;
    }
}


/* ---------- Transparent Button State ---------- */
.btn-transparent {
    opacity: 0;
    pointer-events: none; /* prevents ghost clicks */
    transition: opacity 0.3s ease;
}
