/* HotStampGallery – Stylesheet v1.0.0 */

.hotstamp-gallery-widget {
    position: relative;
    font-family: 'Courier New', monospace;
    user-select: none;
}

/* ── Canvas Wrap ───────────────────────────────────── */
.hotstamp-canvas-wrap {
    position: relative;
    width: 100%;
    height: 580px;
    max-height: 55vh;
    overflow: hidden;
    background: #0a0a0a;
    border-radius: 4px;
    cursor: crosshair;
}

.hotstamp-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* ── HUD ───────────────────────────────────────────── */
.hotstamp-hud {
    position: absolute;
    top: 14px;
    left: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    pointer-events: none;
    z-index: 10;
}

.hotstamp-hud-temp,
.hotstamp-hud-pressure {
    display: flex;
    align-items: baseline;
    gap: 4px;
    background: rgba(0,0,0,.65);
    border: 1px solid rgba(218,170,48,.35);
    border-radius: 3px;
    padding: 4px 8px;
}

.hotstamp-hud-label {
    font-size: 9px;
    letter-spacing: 1.5px;
    color: #daaa30;
    opacity: .7;
}

.hotstamp-hud-value {
    font-size: 18px;
    font-weight: 700;
    color: #daaa30;
    min-width: 44px;
    text-align: right;
}

.hotstamp-hud-unit {
    font-size: 10px;
    color: #888;
}

.hotstamp-foil-badge {
    margin-top: 4px;
    padding: 3px 8px;
    background: #daaa30;
    color: #000;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    border-radius: 2px;
    text-align: center;
}

/* ── Instructions ──────────────────────────────────── */
.hotstamp-instructions {
    position: absolute;
    bottom: 54px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,.7);
    color: #aaa;
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 10;
    opacity: .8;
    transition: opacity .4s;
}

.hotstamp-gallery-widget:hover .hotstamp-instructions { opacity: 1; }

/* ── Overlay Buttons ───────────────────────────────── */
.hotstamp-overlay-btns {
    position: absolute;
    bottom: 14px;
    right: 14px;
    display: flex;
    gap: 8px;
    z-index: 20;
}

.hotstamp-btn-foil,
.hotstamp-btn-cool {
    padding: 6px 14px;
    border: 1px solid rgba(218,170,48,.6);
    background: rgba(0,0,0,.75);
    color: #daaa30;
    font-size: 11px;
    font-family: 'Courier New', monospace;
    letter-spacing: .5px;
    border-radius: 3px;
    cursor: pointer;
    transition: background .2s, border-color .2s;
}

.hotstamp-btn-foil:hover,
.hotstamp-btn-cool:hover {
    background: rgba(218,170,48,.2);
    border-color: #daaa30;
}

/* ── Heat Glow overlay (JS injects via canvas, but keep class) ── */
.hotstamp-heat-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 4px;
    mix-blend-mode: screen;
}

/* ── Lightbox ──────────────────────────────────────── */
.hotstamp-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hotstamp-lightbox[hidden] { display: none; }

.hotstamp-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.82);
    backdrop-filter: blur(6px);
}

.hotstamp-lightbox-inner {
    position: relative;
    background: #111;
    border-radius: 6px;
    padding: 24px;
    max-width: min(820px, 95vw);
    width: 100%;
    box-shadow: 0 0 60px rgba(218,170,48,.3), 0 0 120px rgba(218,170,48,.12);
    display: grid;
    grid-template-columns: 1fr 220px;
    grid-template-rows: auto auto;
    gap: 16px;
    align-items: start;
}

.hotstamp-lightbox-inner[data-rahmen="edelmetall"] {
    border: 2px solid;
    border-image: linear-gradient(135deg,#daaa30,#fff8d0,#b8860b,#daaa30) 1;
}

.hotstamp-lightbox-inner[data-rahmen="sonderlack"] {
    border: 2px solid;
    border-image: linear-gradient(135deg,#c0c0c0,#f0f0f0,#808080,#c0c0c0) 1;
}

.hotstamp-lightbox-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: transparent;
    border: none;
    color: #daaa30;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    z-index: 2;
    transition: color .2s;
}
.hotstamp-lightbox-close:hover { color: #fff; }

.hotstamp-lightbox-canvas {
    display: block;
    width: 100%;
    height: 320px;
    border-radius: 3px;
    background: #000;
    grid-column: 1;
    grid-row: 1 / 3;
}

.hotstamp-lightbox-meta {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 8px;
    background: rgba(218,170,48,.06);
    border-radius: 4px;
    border: 1px solid rgba(218,170,48,.2);
}

.hotstamp-meta-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hotstamp-meta-row span {
    font-size: 9px;
    letter-spacing: 1.5px;
    color: #888;
    text-transform: uppercase;
}

.hotstamp-meta-row strong {
    font-size: 15px;
    color: #daaa30;
}

.hotstamp-btn-change-gold {
    grid-column: 2;
    grid-row: 2;
    padding: 8px 14px;
    border: 1px solid #daaa30;
    background: transparent;
    color: #daaa30;
    font-size: 12px;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    border-radius: 3px;
    cursor: pointer;
    transition: background .2s;
    align-self: end;
}
.hotstamp-btn-change-gold:hover { background: rgba(218,170,48,.15); }

/* ── Steam Particle (CSS fallback) ─────────────────── */
@keyframes hotstamp-steam {
    0%   { transform: translateY(0) scaleX(1); opacity: .6; }
    100% { transform: translateY(-60px) scaleX(1.4); opacity: 0; }
}

.hotstamp-steam-puff {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
    filter: blur(3px);
    pointer-events: none;
    animation: hotstamp-steam .8s ease-out forwards;
}

/* ── Foil Selector Modal ────────────────────────────── */
.hotstamp-foil-modal {
    position: absolute;
    bottom: 56px;
    right: 14px;
    background: rgba(10,10,10,.95);
    border: 1px solid rgba(218,170,48,.4);
    border-radius: 4px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 30;
}

.hotstamp-foil-modal[hidden] { display: none; }

.hotstamp-foil-opt {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    color: #ccc;
    font-size: 12px;
    transition: background .15s;
}

.hotstamp-foil-opt:hover { background: rgba(218,170,48,.15); }

.hotstamp-foil-swatch {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.2);
}

.hotstamp-foil-swatch.gold        { background: linear-gradient(135deg,#daaa30,#ffe57a,#b8860b); }
.hotstamp-foil-swatch.silver      { background: linear-gradient(135deg,#c0c0c0,#f0f0f0,#808080); }
.hotstamp-foil-swatch.pigment     { background: linear-gradient(135deg,#c22,#f44,#800); }
.hotstamp-foil-swatch.transparent { background: rgba(255,255,255,.12); }

/* ── Thermal Bar ────────────────────────────────────── */
.hotstamp-thermal-bar {
    position: absolute;
    top: 0;
    right: 0;
    width: 10px;
    height: 100%;
    background: linear-gradient(to bottom, #ff2200, #ff6600, #ffaa00, #002288);
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s;
    border-radius: 0 4px 4px 0;
    z-index: 5;
}

.hotstamp-canvas-wrap.show-thermal .hotstamp-thermal-bar { opacity: .55; }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 767px) {
    .hotstamp-canvas-wrap { height: 380px; max-height: 60vh; }

    .hotstamp-instructions { font-size: 9px; bottom: 48px; }

    .hotstamp-lightbox-inner {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        padding: 16px;
        max-width: 95vw;
    }

    .hotstamp-lightbox-canvas { grid-column: 1; grid-row: 1; height: 200px; }
    .hotstamp-lightbox-meta   { grid-column: 1; grid-row: 2; }
    .hotstamp-btn-change-gold { grid-column: 1; grid-row: 3; }

    .hotstamp-hud-value { font-size: 22px; }
}
