/* 전체 기본 설정 - Burnished Lilac 톤 */
body {
    background: linear-gradient(135deg, #F5E9EA 0%, #E6CFD7 100%);
    font-family: "Noto Sans KR", "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    /* 아이폰 Safe Area 대응 */
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    /* 모바일 스크롤 성능 최적화 */
    -webkit-overflow-scrolling: touch;
    /* 터치 하이라이트 색상 커스터마이징 */
    -webkit-tap-highlight-color: rgba(186, 121, 125, 0.2);
}

/* 메인 래퍼 - 중앙 정렬 */
.main-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 32px 10px 100px; /* 하단 고정 버튼 공간 확보 */
    padding-top: 0; /* 상단 여백 제거 (controls-section에서 처리) */
}

/* 프로필 영역 - 컴팩트한 상단 헤더 */
.profile-section {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 0;
    padding: 32px 0 20px;
    padding-top: calc(32px + env(safe-area-inset-top));
}

.profile-image {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 3px solid #BA797D;
    box-shadow: 0 2px 8px rgba(186, 121, 125, 0.3);
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-image img {
    width: 130% !important;
    height: 130% !important;
    object-fit: cover;
    display: block;
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
}

.profile-info {
    flex: 1;
    text-align: left;
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.profile-name {
    font-size: 2rem;
    font-weight: 700;
    color: #330818;
    margin-bottom: 0;
    letter-spacing: -0.8px;
    line-height: 1;
}

.profile-bio {
    font-size: 1rem;
    color: #00666C;
    margin-bottom: 0;
    font-weight: 500;
    letter-spacing: -0.2px;
    line-height: 1;
}

/* 링크 컨테이너 */
.links-container {
    max-width: 100%;
}

/* 컨트롤 영역 (플로팅 검색 + 칩 필터) - 상단 고정 */
.controls-section {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.search-input {
    width: 100%;
    border: 1px solid rgba(186, 121, 125, 0.15);
    border-radius: 16px;
    padding: 16px 20px;
    min-height: 52px;
    font-size: 1rem;
    background: white;
    color: #330818;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(186, 121, 125, 0.08);
}

.search-input::placeholder {
    color: #C5AEBF;
}

.search-input:focus {
    outline: none;
    background: white;
    border-color: rgba(186, 121, 125, 0.3);
    box-shadow: 0 2px 8px rgba(186, 121, 125, 0.12);
    transform: translateY(-1px);
}

/* 필터를 가로 스크롤 칩으로 변경 */
.filter-chips {
    display: flex;
    gap: 8px;
    justify-content: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.filter-chips::-webkit-scrollbar {
    display: none;
}

.filter-chip {
    flex-shrink: 0;
    padding: 12px 24px;
    border-radius: 24px;
    border: 1px solid rgba(186, 121, 125, 0.15);
    background: white;
    color: #BA797D;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    letter-spacing: -0.3px;
    box-shadow: 0 1px 3px rgba(186, 121, 125, 0.06);
}

.filter-chip:hover {
    border-color: rgba(186, 121, 125, 0.25);
    background: rgba(186, 121, 125, 0.04);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(186, 121, 125, 0.1);
}

.filter-chip:active {
    transform: scale(0.96);
}

.filter-chip.active {
    background: #BA797D;
    color: white;
    border-color: #BA797D;
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(186, 121, 125, 0.3),
                0 2px 4px rgba(186, 121, 125, 0.2);
}

/* 기존 select는 숨김 */
.filter-select {
    display: none;
}

/* 링크 리스트 */
.link-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 카드 등장 애니메이션 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.link-button {
    animation: fadeInUp 0.5s ease-out backwards;
}

/* 순차적 지연 효과 */
.link-button:nth-child(1) { animation-delay: 0.1s; }
.link-button:nth-child(2) { animation-delay: 0.2s; }
.link-button:nth-child(3) { animation-delay: 0.3s; }
.link-button:nth-child(4) { animation-delay: 0.4s; }
.link-button:nth-child(5) { animation-delay: 0.5s; }
.link-button:nth-child(6) { animation-delay: 0.6s; }
.link-button:nth-child(7) { animation-delay: 0.7s; }
.link-button:nth-child(8) { animation-delay: 0.8s; }
.link-button:nth-child(9) { animation-delay: 0.9s; }
.link-button:nth-child(10) { animation-delay: 1s; }

/* 링크 버튼 스타일 (세련된 카드 형태) */
.link-button {
    display: block;
    width: 100%;
    padding: 20px;
    padding-right: 56px; /* 오른쪽에 아이콘 공간 확보 */
    min-height: 160px; /* 최소 높이 */
    background: white;
    border: none;
    border-radius: 18px;
    text-decoration: none;
    color: #330818;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(186, 121, 125, 0.12),
                0 1px 3px rgba(0, 102, 108, 0.05);
    /* 스와이프 기능 */
    touch-action: pan-y;
    overflow: hidden; /* 넘치는 콘텐츠 숨김 */
}

.link-button:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(186, 121, 125, 0.22),
                0 4px 8px rgba(0, 102, 108, 0.1);
}

/* 스와이프 중일 때 */
.link-button.swiping {
    transition: none;
}

/* 스와이프로 삭제 표시 */
.link-button.swipe-delete {
    background: #8C3F5C;
}

.link-button.swipe-delete .link-title,
.link-button.swipe-delete .link-description,
.link-button.swipe-delete .link-meta {
    color: white !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
}

/* 삭제 아이콘 */
.delete-indicator {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 32px;
    color: white;
    opacity: 0;
    transition: opacity 0.2s;
}

.link-button.swipe-delete .delete-indicator {
    opacity: 1;
}

.link-button-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    height: 100%;
}

.link-thumbnail-small {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f0f0f0;
}

/* 기본 썸네일 (이미지 없을 때) */
.link-thumbnail-default {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    background: linear-gradient(135deg, #BA797D 0%, #8C3F5C 100%);
    box-shadow: 0 2px 10px rgba(186, 121, 125, 0.25);
}

.link-info {
    flex: 1;
    text-align: left;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.link-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #330818;
    margin: 0;
    letter-spacing: -0.3px;
    line-height: 1.3;
    /* 1줄 말줄임 */
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-description {
    font-size: 0.95rem;
    color: #00666C;
    margin: 0;
    font-weight: 400;
    letter-spacing: -0.15px;
    line-height: 1.5;
    /* 2줄 말줄임 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-meta {
    font-size: 0.85rem;
    color: #BA797D;
    display: flex;
    gap: 8px;
    font-weight: 500;
    letter-spacing: -0.05px;
    margin: 0;
    margin-top: auto;
}

/* 즐겨찾기 아이콘 - 세로 배치 맨 위 */
.favorite-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 18px;
    cursor: pointer;
    color: #00666C;
    z-index: 10;
    padding: 4px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    min-width: 32px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 수정 버튼 - 즐겨찾기 아래 */
.edit-btn {
    position: absolute;
    top: 48px;
    right: 12px;
    background: none;
    border: none;
    color: #BA797D;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    min-width: 32px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    opacity: 0;
    transform: translateX(5px);
    border-radius: 6px;
    z-index: 10;
}

/* 카드 호버 시 수정 버튼 표시 */
.link-button:hover .edit-btn {
    opacity: 1;
    transform: translateX(0);
}

.edit-btn:hover {
    background: rgba(186, 121, 125, 0.1);
    transform: scale(1.1);
    color: #A56A6E;
}

/* 메모 버튼 - 수정 버튼 아래 */
.memo-btn {
    position: absolute;
    top: 84px;
    right: 12px;
    background: none;
    border: none;
    color: #00666C;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    min-width: 32px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    opacity: 0;
    transform: translateX(5px);
    border-radius: 6px;
    z-index: 10;
}

/* 카드 호버 시 메모 버튼 표시 */
.link-button:hover .memo-btn {
    opacity: 1;
    transform: translateX(0);
}

.memo-btn:hover {
    background: rgba(0, 102, 108, 0.1);
    transform: scale(1.1);
    color: #005559;
}

/* 삭제 버튼 - 메모 버튼 아래 */
.delete-btn {
    position: absolute;
    top: 120px;
    right: 12px;
    background: none;
    border: none;
    color: #8C3F5C;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    min-width: 32px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    opacity: 0;
    transform: translateX(5px);
    border-radius: 6px;
    z-index: 10;
}

/* 카드 호버 시 삭제 버튼 표시 */
.link-button:hover .delete-btn {
    opacity: 1;
    transform: translateX(0);
}

.delete-btn:hover {
    background: rgba(140, 63, 92, 0.1);
    transform: scale(1.1);
    color: #752F4A;
}

.favorite-icon:hover {
    color: #005559;
    transform: rotate(15deg) scale(1.1);
}

.favorite-icon:active {
    transform: rotate(-15deg) scale(1.3);
}

/* 즐겨찾기 애니메이션 */
@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.3);
    }
    50% {
        transform: scale(1.1);
    }
    75% {
        transform: scale(1.25);
    }
}

.favorite-icon.favorited {
    animation: heartBeat 0.6s ease-in-out;
}

/* 요약 없음 텍스트 */
.no-summary {
    color: #E6CFD7;
    font-style: italic;
}

/* 메모 표시 */
.link-memo {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 12px;
    padding: 12px;
    background: rgba(186, 121, 125, 0.08);
    border-left: 3px solid #BA797D;
    border-radius: 6px;
}

.memo-icon {
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 2px;
}

.memo-text {
    flex: 1;
    font-size: 0.95rem;
    color: #330818;
    line-height: 1.5;
    word-break: break-word;
}

/* 로딩 스켈레톤 */
.skeleton-card {
    display: block;
    width: 100%;
    padding: 28px 24px;
    min-height: 160px;
    background: white;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(186, 121, 125, 0.12);
    margin-bottom: 20px;
}

.skeleton-card-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.skeleton-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background: linear-gradient(90deg, #E6CFD7 0%, #F5E9EA 50%, #E6CFD7 100%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

.skeleton-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skeleton-line {
    height: 20px;
    border-radius: 10px;
    background: linear-gradient(90deg, #E6CFD7 0%, #F5E9EA 50%, #E6CFD7 100%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

.skeleton-line.title {
    width: 70%;
    height: 24px;
}

.skeleton-line.description {
    width: 90%;
    height: 18px;
}

.skeleton-line.meta {
    width: 50%;
    height: 16px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* 모바일 스켈레톤 */
@media (max-width: 768px) {
    .skeleton-card {
        padding: 24px 20px;
        min-height: 150px;
    }

    .skeleton-thumbnail {
        width: 70px;
        height: 70px;
    }

    .skeleton-card-content {
        gap: 16px;
    }
}

/* 삭제 확인 모달 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(51, 8, 24, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 32px 24px;
    max-width: 340px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(186, 121, 125, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.modal-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #330818;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.modal-message {
    font-size: 0.95rem;
    color: #BA797D;
    margin-bottom: 24px;
    line-height: 1.5;
}

.modal-buttons {
    display: flex;
    gap: 12px;
}

.modal-btn {
    flex: 1;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.modal-btn.cancel {
    background: #E6CFD7;
    color: #BA797D;
}

.modal-btn.cancel:hover {
    background: #D4BCC9;
}

.modal-btn.confirm {
    background: #8C3F5C;
    color: white;
}

.modal-btn.confirm:hover {
    background: #752F4A;
}

.modal-btn:active {
    transform: scale(0.96);
}

/* 빈 상태 */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: 24px;
    opacity: 0.6;
}

.empty-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #330818;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.empty-message {
    font-size: 1rem;
    color: #BA797D;
    line-height: 1.6;
    margin-bottom: 32px;
}

.empty-cta {
    display: inline-block;
    padding: 14px 32px;
    background: #BA797D;
    color: #330818;
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    box-shadow: 0 4px 12px rgba(186, 121, 125, 0.25);
}

.empty-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(186, 121, 125, 0.35);
}

/* 검색 결과 없음 상태 */
.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-results-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #330818;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.no-results-message {
    font-size: 0.95rem;
    color: #BA797D;
    line-height: 1.5;
    margin-bottom: 24px;
}

.no-results-query {
    color: #00666C;
    font-weight: 600;
}

.clear-search-btn {
    display: inline-block;
    padding: 12px 28px;
    background: #E6CFD7;
    color: #BA797D;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.clear-search-btn:hover {
    background: #D4BCC9;
    transform: translateY(-1px);
}

/* 새 링크 추가 버튼 - 하단 고정 */
.add-link-btn {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 600px;
    margin: 0 auto;
    padding: 18px 24px;
    background: #BA797D;
    border: none;
    border-radius: 0;
    color: #330818;
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 -4px 20px rgba(186, 121, 125, 0.3);
    z-index: 100;
    /* 아이폰 하단 Safe Area 대응 */
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
}

.add-link-btn:hover {
    box-shadow: 0 -6px 28px rgba(186, 121, 125, 0.4);
}

.add-link-btn:active {
    background: #A56A6E;
}

/* 링크 추가 모달 스타일 */
.modal-form {
    max-width: 500px;
    width: 92%;
    max-height: 90vh;
    text-align: left;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 16px;
    border-bottom: 1px solid rgba(186, 121, 125, 0.1);
    flex-shrink: 0;
}

.modal-header .modal-title {
    margin-bottom: 0;
    font-size: 1.4rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #BA797D;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(186, 121, 125, 0.1);
    transform: rotate(90deg);
}

.link-form {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #330818;
    margin-bottom: 8px;
    letter-spacing: -0.2px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(186, 121, 125, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    color: #330818;
    background: white;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-input::placeholder {
    color: #C5AEBF;
}

.form-input:focus {
    outline: none;
    border-color: #BA797D;
    box-shadow: 0 0 0 3px rgba(186, 121, 125, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: #BA797D;
    font-weight: 400;
}

.form-loading {
    color: #00666C;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 로딩 스피너 */
.loading-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(0, 102, 108, 0.2);
    border-top-color: #00666C;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.modal-form .modal-buttons {
    margin-top: 28px;
}


/* 반응형: 모바일 */
@media (max-width: 768px) {
    .main-wrapper {
        padding: 0 12px 120px; /* 하단 고정 버튼 공간 확보 */
    }

    .profile-section {
        margin-bottom: 0;
        padding: 24px 0 16px;
        padding-top: calc(24px + env(safe-area-inset-top));
    }

    .controls-section {
        gap: 12px;
        margin-bottom: 20px;
    }

    .profile-image {
        width: 48px;
        height: 48px;
        border: 2px solid #BA797D;
    }

    .profile-image img {
        width: 140% !important;
        height: 140% !important;
    }

    .profile-name {
        font-size: 1.6rem;
        letter-spacing: -0.6px;
    }

    .profile-bio {
        font-size: 0.9rem;
        letter-spacing: -0.15px;
    }

    .search-input {
        font-size: 16px; /* 아이폰 자동 확대 방지 (최소 16px) */
        padding: 14px 18px;
        min-height: 48px;
    }

    .filter-chip {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .link-button {
        padding: 16px;
        padding-right: 48px; /* 모바일에서 아이콘 공간 확보 */
        min-height: 140px; /* 모바일 최소 높이 */
    }

    .link-button:hover {
        transform: translateY(-2px);
    }

    .link-button-content {
        gap: 12px;
    }

    .link-thumbnail-small,
    .link-thumbnail-default {
        width: 64px;
        height: 64px;
        font-size: 2rem;
    }

    .link-title {
        font-size: 1.05rem;
        letter-spacing: -0.25px;
    }

    .link-description {
        font-size: 0.88rem;
        letter-spacing: -0.1px;
    }

    .link-meta {
        font-size: 0.8rem;
    }

    .add-link-btn {
        padding: 16px 24px;
        padding-bottom: calc(16px + env(safe-area-inset-bottom));
        font-size: 1.15rem;
        min-height: 60px;
    }


    /* 모바일에서도 버튼 위치 조정 */
    .favorite-icon {
        top: 10px;
        right: 10px;
        font-size: 16px;
        min-width: 28px;
        min-height: 28px;
        padding: 3px;
    }

    .edit-btn {
        top: 42px;
        right: 10px;
        font-size: 15px;
        min-width: 28px;
        min-height: 28px;
        padding: 3px;
        opacity: 1; /* 모바일에서 항상 표시 */
        transform: translateX(0);
    }

    .memo-btn {
        top: 74px;
        right: 10px;
        font-size: 15px;
        min-width: 28px;
        min-height: 28px;
        padding: 3px;
        opacity: 1; /* 모바일에서 항상 표시 */
        transform: translateX(0);
    }

    .delete-btn {
        top: 106px;
        right: 10px;
        font-size: 15px;
        min-width: 28px;
        min-height: 28px;
        padding: 3px;
        opacity: 1; /* 모바일에서 항상 표시 */
        transform: translateX(0);
    }
}
