/* Transformation Showcase */
.showcase-section {
    padding: 100px 0;
    background: #080808;
    position: relative;
    overflow: hidden;
}

.showcase-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.showcase-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    max-height: 600px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    background: #ffffff;
    cursor: default;
}

.showcase-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.result-img {
    opacity: 1;
    z-index: 1;
}

.source-img-full {
    opacity: 0;
    z-index: 2;
    pointer-events: none;
    /* Let clicks pass through if needed, but we handle interaction on the card */
}

/* Floating Input Card */
.floating-input-card {
    position: absolute;
    top: 30px;
    left: 30px;
    z-index: 20;
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 16px;
    width: 330px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.floating-input-card:hover {
    transform: translateY(-2px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(30, 30, 30, 0.95);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

/* Active State (Holding/Clicking) */
.floating-input-card.active-reveal {
    transform: scale(0.98);
    border-color: var(--accent-color);
}

.input-card-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.input-visual.visual-photo {
    width: 90px;
    height: 105px;
    /* Taller for polaroid bottom */
    background: #fff;
    padding: 3px 3px 10px 3px;
    /* Polaroid margins */
    border-radius: 2px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transform: rotate(-3deg);
    /* Slight tilt */
    flex-shrink: 0;
    overflow: hidden;
    border: none;
}

.input-visual.visual-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #eee;
}

.input-visual.visual-address {
    width: 90px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.input-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.input-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    font-weight: 600;
}

.input-value {
    font-size: 1.15rem;
    color: white;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.input-value i {
    color: var(--accent-color);
    font-size: 0.9rem;
}

.input-action-hint {
    position: absolute;
    bottom: 12px;
    right: 12px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Address View Toggle Logic */
.floating-input-card.show-address .visual-photo {
    display: none !important;
}

.floating-input-card.show-address .visual-address {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: #222;
}

.floating-input-card.show-address .visual-address i {
    color: var(--accent-color);
    font-size: 1.5rem;
}

.floating-input-card.show-address .value-photo {
    display: none !important;
}

.floating-input-card.show-address .value-address {
    display: flex !important;
    background: #222;
    border: 1px solid #444;
    padding: 6px 12px;
    border-radius: 6px;
    font-family: inherit;
    /* Or monospace if preferred */
    font-size: 0.85rem;
    color: #eee;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* Simulate typed text */
}

/* Hide action hint in address mode */
.floating-input-card.show-address .input-action-hint {
    display: none;
}


/* Result Label */
.result-label-badge {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    /* White text for better contrast on simple badge */
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 10;
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-label-badge i {
    color: var(--accent-color);
}


/* Controls */
.showcase-controls {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    background: #111;
    padding: 20px 40px;
    border-radius: 50px;
    border: 1px solid #333;
    align-self: center;
    margin-top: -20px;
    /* Slight overlap or pull up */
    z-index: 30;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.control-group h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    margin-bottom: 12px;
    text-align: center;
    font-weight: 600;
}

.source-toggle {
    display: flex;
    gap: 8px;
    background: #000;
    padding: 4px;
    border-radius: 30px;
    border: 1px solid #222;
}

.source-btn {
    background: transparent;
    border: none;
    color: #888;
    padding: 8px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.source-btn.active {
    background: #222;
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.style-selector {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.style-pill {
    background: transparent;
    border: 1px solid #333;
    color: #aaa;
    padding: 8px 18px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.style-pill:hover {
    border-color: #666;
    color: white;
}

.style-pill.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: black;
    font-weight: 600;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .showcase-stage {
        height: 400px;
        /* Fixed height for mobile to avoid tiny aspect ratio */
        aspect-ratio: auto;
    }

    .floating-input-card {
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        min-width: 250px;
        max-width: calc(100% - 40px);
        padding: 12px;
    }

    .input-visual.visual-photo {
        width: 70px;
        height: 82px;
    }

    .input-visual.visual-address {
        width: 70px;
        height: 70px;
    }

    .input-value {
        font-size: 1rem;
    }

    .input-action-hint {
        display: none;
    }

    .result-label-badge {
        top: auto;
        bottom: 20px;
        right: 20px;
    }

    .showcase-controls {
        flex-direction: column;
        gap: 20px;
        border-radius: 20px;
        width: 100%;
    }
}