body { font-family: 'Noto Sans KR', 'Inter', sans-serif; }

.post-card-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.5rem; /* gap-6 */
}
@media (min-width: 768px) { /* md: */
    .post-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 1024px) { /* lg: */
    .post-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.post-card {
    background-color: #ffffff; /* bg-white */
    border-radius: 0.75rem; /* rounded-xl */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-lg */
    overflow: hidden;
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}
.post-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); /* hover:shadow-2xl */
    transform: translateY(-0.25rem); /* hover:-translate-y-1 */
}

.post-card-content {
    padding: 1.5rem; /* p-6 */
}

.post-card-title {
    font-size: 1.25rem; /* text-xl */
    font-weight: 600; /* font-semibold */
    color: #1f2937; /* text-gray-800 */
    margin-bottom: 0.5rem; /* mb-2 */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap; /* truncate */
}
.post-card-title a {
    color: #2563eb; /* text-blue-600 */
}
.post-card-title a:hover {
    color: #1d4ed8; /* hover:text-blue-800 */
    text-decoration: underline;
}

.post-card-meta {
    font-size: 0.75rem; /* text-xs */
    color: #6b7280; /* text-gray-500 */
    margin-bottom: 0.75rem; /* mb-3 */
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 0.25rem; /* gap-x-3 gap-y-1 (Tailwind gap is slightly different) */
}
.post-card-meta span {
    display: flex;
    align-items: center;
}
.post-card-meta i {
    margin-right: 0.375rem; /* mr-1.5 */
}

.post-card-id {
    position: absolute;
    top: 0.75rem; /* top-3 */
    right: 0.75rem; /* right-3 */
    background-color: #dbeafe; /* bg-blue-100 */
    color: #1d4ed8; /* text-blue-700 */
    font-size: 0.75rem; /* text-xs */
    font-weight: 600; /* font-semibold */
    padding: 0.125rem 0.5rem; /* px-2 py-0.5 */
    border-radius: 9999px; /* rounded-full */
}
.line-clamp-3 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

/* Modal Styles */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 40; /* Tailwind z-40 */
    display: none; /* 기본 숨김 */
}
.modal-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 2rem; /* p-8 */
    border-radius: 0.75rem; /* rounded-xl */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); /* shadow-2xl */
    z-index: 50; /* Tailwind z-50 */
    width: 90%;
    max-width: 600px; /* 모달 최대 너비 */
    max-height: 80vh; /* 모달 최대 높이 */
    overflow-y: auto; /* 내용 길면 스크롤 */
    display: none; /* 기본 숨김 */
}
.modal-close-btn {
    position: absolute;
    top: 1rem; /* p-4 */
    right: 1rem; /* p-4 */
    background: none;
    border: none;
    font-size: 1.5rem; /* text-2xl */
    color: #9ca3af; /* text-gray-400 */
    cursor: pointer;
}
.modal-close-btn:hover {
    color: #1f2937; /* text-gray-800 */
}
.modal-title {
    font-size: 1.5rem; /* text-2xl */
    font-weight: 700; /* font-bold */
    color: #111827; /* text-gray-900 */
    margin-bottom: 1rem;
}
.modal-meta {
    font-size: 0.875rem; /* text-sm */
    color: #6b7280; /* text-gray-500 */
    margin-bottom: 1.5rem;
}
.modal-content-body {
    font-size: 1rem; /* text-base */
    color: #374151; /* text-gray-700 */
    line-height: 1.75; /* leading-relaxed */
    word-break: break-word; /* 긴 단어 줄바꿈 */
}
.modal-content-body img { /* 모달 내 이미지 반응형 처리 */
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem; /* rounded-lg */
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* 글쓰기 모달을 위한 추가 스타일 (기존 모달과 유사하게) */
#writePostModalContainer {
    max-width: 800px; /* 글쓰기 폼이므로 너비를 좀 더 넓게 */
}
.form-input-modal { /* 모달 내 input 스타일 */
    display: block;
    width: 100%;
    padding-left: 0.75rem; /* px-3 */
    padding-right: 0.75rem; /* px-3 */
    padding-top: 0.5rem; /* py-2 */
    padding-bottom: 0.5rem; /* py-2 */
    border-width: 1px;
    border-color: #D1D5DB; /* border-gray-300 */
    border-radius: 0.375rem; /* rounded-md */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); /* shadow-sm */
}
.form-input-modal:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    --tw-ring-color: #3B82F6; /* focus:ring-blue-500 */
    box-shadow: 0 0 0 2px var(--tw-ring-color);
    border-color: #3B82F6; /* focus:border-blue-500 */
}
/* Summernote 에디터가 적용될 textarea는 기본 스타일만 적용 */
#writePostContent {
     width: 100%;
     border: 1px solid #D1D5DB;
     border-radius: 0.375rem;
     padding: 0.5rem 0.75rem;
}


.scrolled { background-color: rgba(255, 255, 255, 0.95); }
