/* ===== 포트폴리오 작성/수정 폼: 사진 인풋 숨김 처리 ===== */
#photo-grid input[type="file"], #photo-grid input[type="checkbox"],
#new-photo-previews input[type="file"], #new-photo-previews input[type="checkbox"] { display:none; }
#photo-grid input[type="text"]::placeholder { color:rgba(255,255,255,0.85); opacity:1; }

/* ===== 포트폴리오 상세 ===== */
.pf-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 32px;
}
.pf-icon-btn {
    border-radius: 12px;
    padding: 12px 22px;
}
.pf-icon-btn-liked {
    background: #FCE8F0;
    color: #E0447A;
    border-color: #F3B9CF;
}
.pf-icon-btn-saved {
    background: var(--color-accent-soft);
    color: var(--color-accent);
    border-color: var(--color-accent-mid);
}

.pf-gallery {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 40px;
}
.pf-gallery-item {
    position: relative;
    flex: 0 0 180px;
    width: 180px;
    height: 180px;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
}
.pf-gallery-img {
    width: 100%;
    height: 100%;
    max-width: 180px;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
}
.pf-gallery-caption {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(35,33,43,.65);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 999px;
}

.pf-lightbox-counter {
    position: absolute;
    top: 30px;
    left: 28px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    opacity: 0.85;
}
.pf-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.pf-lightbox-nav-prev { left: 20px; }
.pf-lightbox-nav-next { right: 20px; }
.pf-lightbox-img {
    max-width: 88vw;
    max-height: 86vh;
    border-radius: 14px;
    object-fit: contain;
}
.pf-lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    background: rgba(255,255,255,0.12);
    padding: 8px 16px;
    border-radius: 999px;
}

.pf-intro-box {
    background: var(--color-bg);
    border-radius: var(--radius);
    padding: 26px 28px;
    margin-bottom: 40px;
}
.pf-intro-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-ink);
    margin: 0;
}
.pf-intro-duration {
    margin-top: 14px;
    margin-bottom: 0;
}

.pf-product-chip {
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--color-accent-soft);
    color: var(--color-accent);
    padding: 9px 14px;
    border-radius: 8px;
}

.pf-related-review-chip {
    font-size: 0.78rem;
    font-weight: 500;
    background: var(--color-accent-soft);
    color: var(--color-accent);
    padding: 6px 9px;
    border-radius: 7px;
}
.pf-related-review-rating {
    margin-left: auto;
    color: var(--color-brand);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ===== 포트폴리오 목록 ===== */
.pf-status-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.88rem;
    background: var(--color-bg-elevated);
    color: var(--color-ink-soft);
    border: 1px solid var(--color-border);
}
.pf-status-toggle-seeking-active {
    background: var(--color-brand-soft);
    color: var(--color-brand);
    border: 1px solid var(--color-brand);
}
.pf-status-toggle-hiring-active {
    background: #E9F7EF;
    color: #2BB673;
    border: 1px solid #2BB673;
}
.pf-status-toggle-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #c9c9d2;
}
.pf-status-toggle-dot-seeking-active {
    background: var(--color-brand);
}
.pf-status-toggle-dot-hiring-active {
    background: #2BB673;
}

.pf-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.pf-card-thumb-fallback {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--color-accent-soft);
    display: flex;
    align-items: flex-end;
    padding: 14px;
    color: var(--color-accent-mid);
    font-family: var(--font-mono);
    font-size: 0.78rem;
}
.pf-card-body {
    padding: 18px 20px;
}
.pf-card-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.pf-card-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.15rem;
    margin: 0;
}
.pf-card-like {
    font-weight: 600;
    font-size: 0.9rem;
    color: #E0447A;
    flex-shrink: 0;
}
.pf-card-meta {
    margin-bottom: 10px;
}
.pf-card-title {
    margin: 0 0 6px 0;
    font-weight: 700;
    font-size: 0.94rem;
}

/* ===== 내 포트폴리오 목록 ===== */
.pf-my-card-title {
    margin: 0 0 10px 0;
    font-weight: 700;
    font-size: 1.02rem;
}
.pf-my-card-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}
.pf-my-edit-btn {
    flex: 1;
    text-align: center;
    padding: 9px 0;
    font-size: 0.85rem;
}

/* ===== 포트폴리오 작성/수정 폼 ===== */
.pf-photo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.pf-photo-add-tile {
    aspect-ratio: 1/1;
    border: 2px dashed var(--color-border);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    background: var(--color-bg);
    color: var(--color-ink-soft);
}
.pf-photo-add-icon {
    font-size: 1.8rem;
    line-height: 1;
}
.pf-photo-add-label {
    font-size: 0.78rem;
    font-weight: 600;
}
.pf-photo-tile {
    position: relative;
    aspect-ratio: 1/1;
    border-radius: 14px;
    overflow: hidden;
}
.pf-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pf-photo-delete-label {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: rgba(35,33,43,.65);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    cursor: pointer;
}
.pf-photo-caption-input {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    width: 100%;
    max-width: none;
    padding: 6px 8px;
    border: none;
    border-radius: 0;
    background: rgba(35,33,43,.65);
    color: #fff;
    font-size: 0.72rem;
}
.pf-new-photo-previews {
    display: contents;
}

.pf-duration-field {
    max-width: 220px;
}
