/* style_memo.css */

/* 구글 폰트 인터 적용 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
}

/* 카테고리 칩 버튼 스타일 */
.category-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 1rem; /* py-1 px-4 */
    border-radius: 9999px; /* rounded-full */
    background-color: #e5e7eb; /* gray-200 */
    color: #374151; /* gray-800 */
    font-size: 0.875rem; /* text-sm */
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    border: none;
    outline: none;
    transition: background-color 0.2s, color 0.2s;
}

.category-chip:hover {
    background-color: #d1d5db; /* gray-300 */
}

.category-chip.selected {
    background-color: #2563eb; /* blue-600 */
    color: white;
}

/* 메모 카드 스타일 */
.memo-card {
    position: relative;
    background-color: white;
    padding: 1.5rem; /* 24px */
    border-radius: 1rem; /* rounded-xl 16px */
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb; /* gray-200 */
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.memo-card:hover {
    transform: scale(1.01);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

/* 삭제 버튼 스타일 */
.memo-delete-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: #ef4444; /* red-500 */
    color: white;
    font-weight: 700;
    font-size: 0.75rem; /* text-xs */
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem; /* rounded-lg */
    opacity: 0;
    transition: opacity 0.2s ease, background-color 0.2s ease;
    border: none;
    cursor: pointer;
}

.memo-card:hover .memo-delete-btn {
    opacity: 1;
}

.memo-delete-btn:hover {
    background-color: #dc2626; /* red-600 */
}

/* 댓글 아이템 스타일 */
.comment-item {
    padding: 1rem;
    background-color: #f3f4f6; /* gray-100 */
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb; /* gray-200 */
}

/* 댓글 숫자 뱃지 스타일 */
.comment-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    background-color: #2563eb; /* blue-600 */
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    box-shadow: 0 0 4px rgba(0,0,0,0.15);
    user-select: none;
    pointer-events: none;
    z-index: 10;
}

/* 커스텀 모달 스타일 */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(75, 85, 99, 0.6); /* bg-gray-600 bg-opacity-50 */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.modal-content {
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    max-width: 24rem; /* max-w-sm */
    width: 100%;
}

/* 페이지네이션 버튼 기본 스타일 */
#pagination button {
    user-select: none;
    background-color: #e5e7eb;
    border: none;
    padding: 0.5rem 0.75rem;
    margin: 0 0.15rem;
    border-radius: 0.375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#pagination button:hover:not(.active) {
    background-color: #d1d5db;
}

#pagination button.active {
    background-color: #2563eb;
    color: white;
    cursor: default;
}
