/**
 * GALADO Live Case Preview — Frontend Styles
 */

/* ── Preview widget ─────────────────────────────────────────────────────── */
.gcp-preview-widget {
    margin: 0 0 20px;
}

.gcp-preview-label {
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin: 0 0 8px;
}

.gcp-preview-inner {
    position: relative;
    display: block;
    line-height: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f5f5;
}

.gcp-preview-inner img {
    display: block;
    width: 100%;
    height: auto;
}

/* ── Overlay text ───────────────────────────────────────────────────────── */
.gcp-overlay-text {
    position: absolute;
    z-index: 10;
    pointer-events: none;
    /* Allow wrapping so wide/script fonts stay inside the case image */
    white-space: normal;
    word-break: break-word;
    text-align: center;
    line-height: 1.2;
    letter-spacing: 0.02em;
    transition: font-family 0.3s ease, color 0.3s ease, opacity 0.3s ease, font-size 0.2s ease;
    text-shadow: 0 1px 4px rgba(0,0,0,0.15);
    opacity: 0;
    /* transform (translate + rotate) is set by script.js */
}

.gcp-overlay-text.visible {
    opacity: 1;
}

/* ── Colour variants ────────────────────────────────────────────────────── */
.gcp-overlay-text[data-color="white"] {
    color: #ffffff;
    text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

.gcp-overlay-text[data-color="black"] {
    color: #1a1a1a;
    text-shadow: 0 1px 4px rgba(255,255,255,0.2);
}

/* ── Font selector active state ─────────────────────────────────────────── */
.galado-fp-card.gcp-active {
    outline: 3px solid #0071e3 !important;
    outline-offset: -3px;
}
