/* ==========================================================================
   Blog Common Components — Reusable across all blog posts
   ========================================================================== */

/* Section container */
.bbh-section {
    width: 100%;
    padding: 2rem 1rem;
    box-sizing: border-box;
}

/* Section divider line */
.section-divider-line {
    flex: 1;
    height: 2px;
    background-color: #A74949;
}

/* Speech bubble — positioned over character's blue rectangle */
.speech-bubble {
    position: absolute;
    padding: 20px 22px;
    color: #e0e8f0;
    font-family: 'Courier New', monospace;
    font-size: 0.55rem;
    line-height: 1.4;
    cursor: pointer;
    user-select: none;
    transition: opacity 0.15s ease;
}

.speech-bubble .cursor {
    display: inline-block;
    animation: blink-cursor 0.6s step-end infinite;
}

@keyframes blink-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Control pad — 2D drag area */
.control-pad-2d {
    position: relative;
    width: 200px;
    height: 200px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    cursor: crosshair;
    background: rgba(0, 0, 0, 0.3);
    touch-action: none;
    overflow: hidden;
}

.control-pad-2d canvas.pad-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Draggable marker */
.pad-marker {
    position: absolute;
    width: 14px;
    height: 14px;
    background: #ef8376;
    border: 2px solid #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    box-shadow: 0 0 8px rgba(239, 131, 118, 0.6);
    z-index: 2;
    transition: box-shadow 0.15s ease;
}

.pad-marker.active {
    box-shadow: 0 0 16px rgba(239, 131, 118, 0.9);
}

/* Control box card */
.bbh-control-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
}

.bbh-control-box h3 {
    color: #ffffff;
    font-size: 0.95rem;
    margin: 8px 0;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.bbh-animation-canvas {
    border-radius: 6px;
}

.pad-labels {
    display: flex;
    justify-content: space-between;
    width: 200px;
    margin-top: 6px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.45);
}

.value-readout {
    margin-top: 6px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
    font-family: 'Courier New', monospace;
}
