/* MASTER UNIFIED Photo Zone Styles for Narose Garden (v1.5.2) */
#photo-zone-screen {
    position: fixed;
    inset: 0;
    z-index: 2000000 !important;
    background: #fff;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    user-select: none;
}

#photo-zone-screen.active {
    display: flex !important;
}

.photo-zone-container {
    width: 100%;
    max-width: 500px;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: 0;
    background: #fff;
    overflow: hidden;
}

.photo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    width: 100%;
    padding: 0 15px;
    position: relative;
    z-index: 10000;
}

.photo-title {
    font-size: 1.2rem;
    color: #ff6b81;
    font-weight: 1000;
}

.header-group {
    display: flex;
    gap: 12px;
}

.header-icon-btn-3d {
    width: 50px !important;
    height: 50px !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    cursor: pointer;
    display: flex !important;
    transition: transform 0.1s;
}

.icon-flip {
    background-image: url('../assets/flip-btn.png') !important;
}

.icon-close {
    background-image: url('../assets/x-btn.png') !important;
}

.camera-wrapper {
    flex: 1;
    width: 100%;
    background: #000;
    border-radius: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#camera-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#photo-render-canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

#sticker-layer {
    position: absolute;
    inset: 0;
    z-index: 200;
    pointer-events: none;
}

.photo-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
    height: 110px;
    flex-shrink: 0;
    background: #fff;
}

/* Premium Capture Button Match Eyecool */
.capture-btn-3d {
    width: 70px;
    height: 70px;
    background: white !important;
    border: 5px solid #ff6b81 !important;
    border-radius: 50% !important;
    cursor: pointer;
    box-shadow: 0 0 0 4px white, 0 8px 25px rgba(255, 107, 129, 0.5);
    transition: transform 0.1s;
    outline: none;
    padding: 0;
}

.capture-btn-3d:active {
    transform: scale(0.9);
}

.save-btn-3d,
.retake-btn-3d {
    background: #ff6b81 !important;
    color: white !important;
    border: none !important;
    padding: 12px 25px !important;
    border-radius: 25px !important;
    font-weight: bold !important;
    font-size: 16px;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(255, 107, 129, 0.3) !important;
}

.sticker-shelf {
    height: 65px;
    width: 100%;
    background: #fff;
    border-top: 1px solid #ffdae0;
    padding: 0 10px;
    overflow-x: auto;
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1000;
}

.sticker-list {
    display: flex;
    gap: 8px;
    height: 100%;
    align-items: center;
}

.sticker-item {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background: #fff5f7;
    border: 1px solid #ffdae0;
    border-radius: 12px;
    margin: 0 2px;
    flex-shrink: 0;
    cursor: pointer;
    overflow: hidden;
}

.sticker-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Placed Stickers */
.placed-sticker {
    position: absolute;
    width: 150px;
    height: 150px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    cursor: move;
    touch-action: none;
    z-index: 10;
    pointer-events: auto;
}

.placed-sticker.selected {
    outline: 2px dashed #ff6b81;
}

.sticker-trash-btn,
.sticker-transform-btn {
    position: absolute;
    width: 28px;
    height: 28px;
    background: #ff6b81;
    color: white;
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.placed-sticker.selected .sticker-trash-btn,
.placed-sticker.selected .sticker-transform-btn {
    display: flex;
}

.sticker-trash-btn {
    top: -14px;
    right: -14px;
}

.sticker-transform-btn {
    bottom: -14px;
    right: -14px;
}

.hidden {
    display: none !important;
}

.glass {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.8);
}

/* Sticker Lock overlay and locked style */
.sticker-item.locked {
    cursor: not-allowed;
    background: #f1f2f6;
    border-color: #ced6e0;
}

.sticker-item.locked:active {
    transform: none; /* Disable scale animation when clicked */
}

.lock-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    opacity: 0.7;
    pointer-events: none;
    z-index: 5;
}

/* Notch 대응: 상단 아이콘 가림 방지 */
.photo-header {
    padding-top: 60px !important;
    height: auto !important;
    min-height: 70px !important;
}
