/* Sculpture Module */

.ag-sculpture-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(
        circle at 30% 20%,
        rgba(120, 120, 140, 0.18),
        rgba(10, 12, 18, 0.96)
    );
    backdrop-filter: blur(12px);
    z-index: 9999;
}

.ag-sculpture-panel {
    width: 900px;
    max-width: 92%;
    margin: 80px auto;
    padding: 25px;
    border-radius: 18px;

    background: linear-gradient(
        145deg,
        rgba(20, 24, 32, 0.95),
        rgba(10, 12, 18, 0.95)
    );

    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);

    color: #e6e6e6;
}




.ag-sculpture-title {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;

    text-transform: uppercase;

    margin-bottom: 15px;

    color: rgba(220, 220, 230, 0.9);
}

.ag-sculpture-subtitle {
    font-size: 13px;
    opacity: 0.6;
    margin-bottom: 25px;
}





.ag-sculpture-prompt {
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.06);

    padding: 15px;
    border-radius: 12px;

    font-family: monospace;
    font-size: 12px;
    line-height: 1.6;

    color: #cfd3dc;

    margin-bottom: 20px;
}




.ag-sculpture-chip {
    display: inline-block;

    padding: 6px 10px;
    margin: 4px;

    border-radius: 999px;

    font-size: 11px;

    background: rgba(120,120,140,0.12);
    border: 1px solid rgba(255,255,255,0.08);

    color: rgba(230,230,240,0.85);

    transition: 0.2s ease;
}

.ag-sculpture-chip:hover {
    background: rgba(160,160,200,0.18);
    transform: translateY(-1px);
}





.ag-sculpture-btn {
    width: 100%;
    padding: 14px;

    margin-top: 20px;

    border-radius: 10px;
    border: none;

    cursor: pointer;

    background: linear-gradient(
        90deg,
        #2c2f3a,
        #1a1d26
    );

    color: #fff;

    font-weight: 600;
    letter-spacing: 1px;

    transition: 0.25s ease;

    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.ag-sculpture-btn:hover {
    background: linear-gradient(
        90deg,
        #3a3f52,
        #202433
    );

    transform: translateY(-2px);
}

 

.ag-sculpture-loading {
    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 13px;
    opacity: 0.7;

    margin-top: 15px;
}

.ag-sculpture-spinner {
    width: 14px;
    height: 14px;

    border: 2px solid rgba(255,255,255,0.2);
    border-top: 2px solid rgba(255,255,255,0.8);

    border-radius: 50%;

    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

 

.ag-sculpture-result {
    margin-top: 20px;

    padding: 15px;

    border-radius: 12px;

    background: rgba(15, 18, 25, 0.8);
    border: 1px solid rgba(255,255,255,0.08);

    font-size: 12px;
    line-height: 1.5;
}








/* =========================
   SCULPTURE TURNTABLE CORE
========================= */

.ag-turntable {
    width: 100%;
    max-width: 720px;
    height: 720px;

    margin: 30px auto;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;

    background: radial-gradient(
        circle at center,
        rgba(40, 45, 60, 0.9),
        rgba(10, 12, 18, 1) 70%
    );

    border-radius: 18px;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.7),
        inset 0 0 60px rgba(255, 255, 255, 0.03);

    overflow: hidden;

    user-select: none;
}


.ag-turntable img {
    width: 100%;
    height: 100%;
    object-fit: contain;

    transform: scale(1.05);

    transition: transform 0.2s ease, opacity 0.2s ease;

    filter:
        contrast(1.1)
        saturate(1.05)
        drop-shadow(0 20px 40px rgba(0,0,0,0.6));

    pointer-events: none;

    animation: ag-float 4s ease-in-out infinite;
}


@keyframes ag-float {
    0% {
        transform: scale(1.05) translateY(0px);
    }
    50% {
        transform: scale(1.05) translateY(-6px);
    }
    100% {
        transform: scale(1.05) translateY(0px);
    }
}


.ag-turntable {
    cursor: grab;
}

.ag-turntable:active {
    cursor: grabbing;
}


.ag-turntable::before {
    content: "";

    position: absolute;
    inset: 0;

    background: radial-gradient(
        circle at 50% 30%,
        rgba(255, 255, 255, 0.08),
        transparent 60%
    );

    pointer-events: none;

    mix-blend-mode: screen;
}



.ag-turntable::after {
    content: "";

    position: absolute;
    inset: 0;

    background: radial-gradient(
        circle,
        transparent 40%,
        rgba(0, 0, 0, 0.65)
    );

    pointer-events: none;
}


.ag-turntable {
    border: 1px solid rgba(255, 255, 255, 0.06);
}




.ag-turntable-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.ag-turntable-hint {
    font-size: 12px;
    opacity: 0.6;
    color: #cfd3dc;
    letter-spacing: 0.5px;
}





.ag-zip-btn {
    background: linear-gradient(135deg, #111827, #1f2937);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.08);
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    backdrop-filter: blur(8px);
}

.ag-zip-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 15px 35px rgba(37,99,235,0.25);
}

.ag-zip-btn:active {
    transform: translateY(0px);
}