/* ============================================================
   MorphCloud73 v1.0.2 – Front-End Styles
   ============================================================ */

.mc73-canvas-wrap {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    border-radius: 12px;
}

.mc73-canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    touch-action: none;
}

/* ── Diashow Controls ── */
.mc73-diashow-controls {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 40px;
    padding: 6px 16px;
    pointer-events: auto;
}

.mc73-ds-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.8);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    padding: 2px 6px;
    transition: color 0.2s, transform 0.15s;
}
.mc73-ds-btn:hover {
    color: #fff;
    transform: scale(1.2);
}

.mc73-ds-label {
    color: rgba(255,255,255,0.7);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    min-width: 60px;
    text-align: center;
    white-space: nowrap;
}

/* ── Morph Hint ── */
.mc73-morph-hint {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.45);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    pointer-events: none;
    transition: opacity 0.8s;
    white-space: nowrap;
    background: rgba(0,0,0,0.3);
    padding: 4px 12px;
    border-radius: 20px;
}

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

.mc73-lb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.88);
    cursor: pointer;
    animation: mc73FadeIn 0.25s ease;
}
.mc73-lb-content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    animation: mc73ScaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.mc73-lb-img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 80px rgba(0,0,0,0.8);
}
.mc73-lb-title {
    color: #fff;
    font-size: 1rem;
    margin: 0;
    letter-spacing: 0.04em;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.mc73-lb-close {
    position: absolute;
    top: -44px;
    right: -4px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    font-size: 1.2rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
}
.mc73-lb-close:hover {
    background: rgba(255,255,255,0.25);
    transform: rotate(90deg) scale(1.1);
}

/* ── Animations ── */
@keyframes mc73FadeIn {
    from { opacity: 0; } to { opacity: 1; }
}
@keyframes mc73ScaleIn {
    from { transform: scale(0.85); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .mc73-canvas-wrap { height: 450px; }
}
@media (max-width: 768px) {
    .mc73-canvas-wrap { height: 300px; border-radius: 0; }
    .mc73-morph-hint  { font-size: 0.62rem; }
    .mc73-diashow-controls { bottom: 10px; padding: 4px 10px; gap: 8px; }
}
