* {
    box-sizing: border-box;
}

body {
    font-family: system-ui, sans-serif;
    padding: 2rem;
    max-width: 700px;
    margin: 0 auto;
}

h1 {
    margin-bottom: 1.5rem;
}

.image-frame {
    width: 100%;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    background: #f0f0f0;
}

.image-frame img {
    width: 100%;
    height: 400px;
    object-fit: contain;
    display: block;
}

.swap-btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    transition: background 0.2s;
}

.swap-btn:hover {
    background: #1d4ed8;
}

.swap-btn:active {
    transform: scale(0.98);
}

/* 댓글창 */
.comment-section {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.comment-section h2 {
    font-size: 1.15rem;
    margin-bottom: 1rem;
    color: #374151;
}

.comment-form {
    margin-bottom: 1rem;
}

.comment-form textarea {
    width: 100%;
    padding: 0.75rem;
    font-size: 0.95rem;
    font-family: inherit;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    resize: vertical;
    margin-bottom: 0.5rem;
}

.comment-form textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

#commentList {
    list-style: none;
    padding: 0;
    margin: 0;
}

#commentList li {
    padding: 0.75rem 1rem;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border-left: 3px solid #2563eb;
}

#commentList li:empty {
    display: none;
}

.comment-section .comment-empty {
    color: #9ca3af;
    font-size: 0.9rem;
    padding: 0.5rem 0;
}
