/**
 * warehouse_popup.css
 * 창고 정보 팝업(모달) 스타일
 */

.wh-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: wh-fade-in 0.15s ease-out;
}

@keyframes wh-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes wh-pop-in {
    from { opacity: 0; transform: scale(0.97) translateY(4px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.wh-popup-box {
    width: 480px;
    max-width: 92vw;
    max-height: 80vh;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    animation: wh-pop-in 0.18s ease-out;
}

.wh-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #ececec;
    flex-shrink: 0;
}

.wh-popup-title-area {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.wh-popup-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wh-status-badge {
    font-size: 12px;
    background: #e7f6ec;
    color: #1a7a3d;
    padding: 2px 10px;
    border-radius: 10px;
    flex-shrink: 0;
}

.wh-type-badge {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    padding: 2px 10px;
    border-radius: 10px;
    flex-shrink: 0;
}

.wh-popup-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.wh-btn-inquiry {
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    background: #FAE100;
    color: #391B1B;
    border: none;
    padding: 7px 13px;
    border-radius: 6px;
    cursor: pointer;
}

.wh-btn-inquiry:hover {
    background: #e8d200;
}

.wh-btn-close {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #888;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    border-radius: 6px;
}

.wh-btn-close:hover {
    background: #f2f2f2;
    color: #333;
}

.wh-popup-body {
    padding: 18px;
    overflow-y: auto;
}

.wh-prop-table {
    width: 100%;
    font-size: 13px;
    border-collapse: collapse;
    margin-bottom: 4px;
}

.wh-prop-table td {
    padding: 8px 0;
    vertical-align: top;
    line-height: 1.6;
}

.wh-divider {
    border-top: 1px solid #ececec;
    margin: 10px 0 16px;
}

.wh-block-text {
    font-size: 13px;
    color: #333;
    line-height: 1.7;
    margin-bottom: 14px;
    white-space: pre-line;
}

.wh-block-heading {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
}

.wh-block-image {
    width: 100%;
    height: auto;
    min-height: 80px;
    background: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 14px;
    display: block;
}

.wh-block-video-thumb {
    width: 100%;
    height: 180px;
    background: #1a1a1a;
    border-radius: 8px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.wh-play-badge {
    color: #fff;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 20px;
}

.wh-video-player {
    width: 100%;
    max-height: 280px;
    border-radius: 8px;
    margin-bottom: 14px;
    display: block;
    background: #000;
}

.wh-popup-image-placeholder {
    width: 100%;
    height: 140px;
    background: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 13px;
}

.wh-info-label {
    color: #888;
    width: 90px;
    white-space: nowrap;
}

.wh-tag {
    display: inline-block;
    background: #f2f2f2;
    color: #444;
    font-size: 12px;
    padding: 3px 9px;
    border-radius: 6px;
    margin: 0 4px 4px 0;
}

.wh-loading-text,
.wh-error-text {
    text-align: center;
    color: #888;
    font-size: 13px;
    padding: 30px 0;
}

.wh-loading-text::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 8px;
    vertical-align: -2px;
    border: 2px solid #e0e0e0;
    border-top-color: #888;
    border-radius: 50%;
    animation: wh-spin 0.7s linear infinite;
}

@keyframes wh-spin {
    to { transform: rotate(360deg); }
}

.wh-login-required {
    text-align: center;
    padding: 30px 0;
}

.wh-login-required p {
    color: #555;
    font-size: 14px;
    margin-bottom: 14px;
}

.wh-btn-login {
    background: #1a1a1a;
    color: #fff;
    border: none;
    padding: 9px 20px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
}

@media (max-width: 480px) {
    .wh-popup-box {
        width: 100%;
        max-height: 90vh;
        border-radius: 12px 12px 0 0;
        align-self: flex-end;
        padding-bottom: env(safe-area-inset-bottom);
    }
    .wh-popup-overlay {
        align-items: flex-end;
    }
}
