/* Frontend and editor shared styles */
.wp-block-simple-true-false-quiz {
    position: relative;
    margin: 1em 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    overflow: hidden;
}

.wp-block-simple-true-false-quiz > .stfq-question {
    padding: 1.5rem;
    max-width: calc(100% - 6em);
}

.stfq-question {
    margin: 0;
    font-size: 1.1em;
    line-height: 1.6;
}

.stfq-icon {
    cursor: pointer;
    transition: all 0.25s ease-in-out;
    background: none;
    border: none;
    padding: 1em;
    z-index: 2;
}

.stfq-icon:hover {
    padding-inline: 1.5em;
}

.stfq-icon.false {
    left: 0.5em;
    color: hsl(0, 100%, 71%);
    background-color: hsl(0, 100%, 95%);
}

.stfq-icon.true {
    right: 0.5em;
    color: hsl(126, 47%, 67%);
    background-color: hsl(126, 47%, 95%);
}

.stfq-feedback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: 500;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.3s ease-in-out;
    z-index: 1;
    pointer-events: none;
}

.stfq-feedback.show {
    opacity: 1;
    transform: scale(1);
    z-index: 3;
    pointer-events: auto;
}

.stfq-feedback.correct {
    color: #2f9e44;
}

.stfq-feedback.incorrect {
    color: #e03131;
}

.stfq-reset {
    background: none;
    border: none;
    padding: 0;
    margin-left: 0.5em;
    cursor: pointer;
    vertical-align: middle;
    opacity: 0.7;
    transition: opacity 0.2s ease-in-out;
    color: inherit;
}

.stfq-reset:hover {
    opacity: 1;
}

.stfq-reset svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
} 