* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.resume-page {
    min-height: 100vh;
    background: #eee;
    padding: 120px 20px 40px;
}

/* 액션 버튼 */
.resume-actions {
    max-width: 800px;
    margin: 0 auto 20px;
    display: flex;
    gap: 10px;
}

.action-btn {
    padding: 10px 20px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
}

.action-btn.pdf-btn {
    background: #000;
    color: #fff;
    border: none;
}

.resume-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border-radius: 8px;
}

/* 헤더 (프로필) */
.resume-header {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.profile-image-box {
    position: relative;
    flex-shrink: 0;
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #e0e0e0;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #999;
}

.profile-upload-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 12px;
    border-radius: 4px;
    border: 1px solid #000;
    background: #fff;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
    margin-left: 10px;
}

.profile-upload-btn:hover {
    background: #000;
    color: #fff;
}

.profile-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.name-input {
    font-size: 2.5rem;
    font-weight: bold;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px;
    width: 100%;
    margin-bottom: 10px;
}

.name-display {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    width: 100%;
    max-width: 300px;
}

.contact-display {
    color: #666;
    font-size: 0.9rem;
}

/* 편집 모드 제어 */
.edit-only {
    display: none;
}

.view-only {
    display: block;
}

.editing .edit-only {
    display: block;
}

.editing .view-only {
    display: none;
}

.editing .profile-upload-btn {
    display: inline-block;
}

/* 콘텐츠 */
.resume-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.left-col, .right-col {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.section h2 {
    font-size: 1.2rem;
    border-bottom: 2px solid #000;
    padding-bottom: 8px;
    margin: 0 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section p {
    color: #666;
    line-height: 1.7;
    margin: 0;
}

.add-btn {
    padding: 4px 12px;
    border-radius: 4px;
    border: 1px solid #000;
    background: #fff;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.add-btn:hover {
    background: #000;
    color: #fff;
}

.items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.item {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    position: relative;
}

.editing .item {
    padding-top: 45px;
}

.remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff4d4d;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 4px 10px;
    cursor: pointer;
    font-size: 0.75rem;
    display: none;
}

.editing .remove-btn {
    display: block;
}

.remove-btn:hover {
    background: #e60000;
}

.item input, .item textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.9rem;
    margin-bottom: 8px;
    box-sizing: border-box;
    display: none;
}

.editing .item input,
.editing .item textarea {
    display: block;
}

.item textarea {
    min-height: 60px;
    resize: vertical;
}

.item input:last-of-type, .item textarea:last-of-type {
    margin-bottom: 0;
}

/* 보기 모드 텍스트 */
.item .view-text {
    display: block;
}

.editing .item .view-text {
    display: none;
}

.item .item-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.item .item-desc {
    color: #666;
    line-height: 1.6;
    margin-bottom: 5px;
}

.item .item-sub {
    color: #999;
    font-size: 0.85rem;
}

.skill-item {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    position: relative;
}

.editing .skill-item {
    padding-top: 45px;
}

.skill-item input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.9rem;
    box-sizing: border-box;
    display: none;
}

.editing .skill-item input {
    display: block;
}

.skill-item .view-text {
    display: block;
}

.editing .skill-item .view-text {
    display: none;
}
