/* =========================================================
   store_dev.css
   스토어 관리
   ========================================================= */

/* =========================
   1. 프로필 관리 화면
   ========================= */
.page-desc {
    margin-top: .8rem;
    font-size: 1.4rem;
    color: var(--color-gray-700);
}

.profile-manage-body {
    padding: 2.4rem;
}

.profile-tab-panel {
    display: none;
}

.profile-tab-panel.active {
    display: block;
}

.profile-tab-group {
    display: flex;
    width: 24rem;
    min-width: 24rem;
}

.profile-tab-group .radio {
    flex: 1 1 0;
}

.profile-tab-group .radio label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    padding: 0 1.2rem;
    box-sizing: border-box;
}

.profile-basic-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(30rem, 0.8fr);
    gap: 2.4rem;
    align-items: start;
}

.profile-mini-preview {
    border: 1px solid #e8e8e8;
    border-radius: 2rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 0.8rem 2rem rgba(0,0,0,0.04);
}

.profile-mini-preview-bg {
    height: 13rem;
    overflow: hidden;
    background: #f4f6fb;
}

.profile-mini-preview-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-mini-preview-content {
    position: relative;
    padding: 0 1.8rem 1.8rem 1.8rem;
}

.profile-mini-preview-avatar {
    width: 7.6rem;
    height: 7.6rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    background: #f6f6f6;
    margin-top: -3.8rem;
    box-shadow: 0 0.4rem 1.2rem rgba(0,0,0,0.08);
}

.profile-mini-preview-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.profile-mini-preview-subscribe {
    position: absolute;
    right: 1.8rem;
    top: 1.4rem;
}

.profile-mini-preview-subscribe button {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    height: 3.6rem;
    padding: 0 1.2rem;
    border: 0;
    border-radius: 1.8rem;
    background: #2f80ed;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 600;
}

.profile-mini-preview-subscribe img {
    width: 1.4rem;
    height: 1.4rem;
}

.profile-mini-preview-content h5 {
    margin-top: 1.2rem;
    font-size: 1.8rem;
    font-weight: 700;
    color: #111;
}

.profile-mini-preview-content p {
    margin-top: .8rem;
    font-size: 1.35rem;
    line-height: 1.6;
    color: #555;
    white-space: pre-line;
    word-break: keep-all;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.profile-card-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.6rem;
}

.profile-table-thumb {
    width: 6.4rem;
    height: 6.4rem;
    border-radius: 1.2rem;
    object-fit: cover;
    border: 1px solid #ececec;
}

.profile-item-preview-wrap {
    width: 16rem;
    height: 16rem;
    border: 1px solid #e8e8e8;
    border-radius: 1.6rem;
    overflow: hidden;
    background: #fafafa;
}

.profile-item-preview-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.input-file.selected {
    border-color: var(--color-primary);
}

/* 카드관리 테이블 */
.profile-card-table {
    table-layout: fixed;
}

.profile-card-table thead th,
.profile-card-table tbody td {
    vertical-align: middle;
}

.profile-card-table thead th:nth-child(1),
.profile-card-table tbody td:nth-child(1),
.profile-card-table thead th:nth-child(2),
.profile-card-table tbody td:nth-child(2),
.profile-card-table thead th:nth-child(5),
.profile-card-table tbody td:nth-child(5),
.profile-card-table thead th:nth-child(6),
.profile-card-table tbody td:nth-child(6),
.profile-card-table thead th:nth-child(7),
.profile-card-table tbody td:nth-child(7) {
    text-align: center;
}

.profile-card-table tbody td:nth-child(2) img {
    display: block;
    margin: 0 auto;
}

.profile-card-table thead th:nth-child(3),
.profile-card-table tbody td:nth-child(3),
.profile-card-table thead th:nth-child(4),
.profile-card-table tbody td:nth-child(4) {
    text-align: left;
}

.profile-card-table tbody td:nth-child(7) .button-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .8rem;
    width: 100%;
}

/* 카드 드래그 정렬 */
.profile-card-sortable-row {
    cursor: grab;
}

.profile-card-sortable-row:active,
.profile-card-sortable-row.dragging {
    cursor: grabbing;
}

.profile-card-sortable-row.dragging {
    opacity: .45;
    background: #f8fbff;
}

.profile-card-sortable-row.drag-over-top {
    box-shadow: inset 0 2px 0 #2f80ed;
}

.profile-card-sortable-row.drag-over-bottom {
    box-shadow: inset 0 -2px 0 #2f80ed;
}

.profile-card-sortable-row .button,
.profile-card-sortable-row a,
.profile-card-sortable-row input,
.profile-card-sortable-row select,
.profile-card-sortable-row textarea {
    cursor: pointer;
}

.profile-card-guide {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: 1.2rem;
    padding: 1rem 1.2rem;
    border: 1px solid #e8eefc;
    border-radius: 1rem;
    background: #f8fbff;
    font-size: 1.3rem;
    line-height: 1.5;
    color: #4b5563;
}

.profile-card-guide::before {
    content: "↕";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    background: #e8f1ff;
    color: #2f80ed;
    font-size: 1.2rem;
    font-weight: 700;
    flex: 0 0 auto;
}

.profile-card-sortable-row:hover {
    background: #fafcff;
}

/* 프로필 링크 공유 영역 */
.profile-share-box {
    margin-top: 1.6rem;
    padding: 1.6rem;
    border: 1px solid #e8e8e8;
    border-radius: 1.6rem;
    background: #fff;
    box-shadow: 0 0.4rem 1.2rem rgba(0,0,0,0.03);
}

.profile-share-title {
    margin-bottom: .8rem;
    font-size: 1.4rem;
    font-weight: 600;
    color: #111;
}

.profile-share-row {
    display: flex;
    gap: .8rem;
    align-items: center;
}

.profile-share-row .input {
    flex: 1 1 auto;
}

.profile-share-desc {
    margin-top: .8rem;
    font-size: 1.25rem;
    line-height: 1.5;
    color: var(--color-gray-700);
}

/* =========================
   2. 공개 프로필 팝업 화면
   ========================= */
.profile-text {
    white-space: pre-line;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.profile-text-more {
    display: none;
}

.profile-head .profile-info .profile-img {
    width: 9.2rem;
    height: 9.2rem;
    border-radius: 50%;
    overflow: hidden;
    background: #f6f6f6;
    border: 4px solid #fff;
    box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.08);
}

.profile-head .profile-info .profile-img img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 50%;
    object-fit: cover;
    object-position: center center;
}

.modal-subscribe .title-container.center .img {
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    overflow: hidden;
    background: #f6f6f6;
}

.modal-subscribe .title-container.center .img img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 50%;
    object-fit: cover;
    object-position: center center;
}

.line-clamp {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-4 {
    -webkit-line-clamp: 4;
}

/* =========================
   3. 반응형
   ========================= */
@media (max-width: 1180px) {
    .profile-basic-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .profile-share-row {
        flex-direction: column;
        align-items: stretch;
    }
}