/* ========================================
   VOTE-LIST.CSS - 작품 목록 전용 스타일
   ======================================== */

/* ========================================
   1. CARD STYLES
   카드 스타일
   ======================================== */

.card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.card-body {
    width: 100%;
    overflow: hidden;
    cursor: pointer;
}

.card-body img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    transition: transform 0.2s;
}

.card-body img:hover {
    transform: scale(1.05);
}

/* ========================================
   2. CARD TITLES
   카드 제목 스타일
   ======================================== */

.card-title {
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
    padding: 0 8px;
    color: #333;
    font-weight: 500;
}

@media (min-width: 768px) {
    .card-title {
        font-size: 16px;
    }
}

/* ========================================
   3. CHECKBOXES
   체크박스 스타일
   ======================================== */

.form-check {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.form-check-input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.form-check label {
    cursor: pointer;
    user-select: none;
    margin: 0;
}

/* ========================================
   4. SPACING & LAYOUT
   간격 및 레이아웃
   ======================================== */

.text-center {
    text-align: center;
}

.justify-center {
    justify-content: center;
}

.mb-md {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ========================================
   5. IMAGES
   이미지 스타일
   ======================================== */

.work-thumbnail {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    border-radius: 4px;
}

.work-detail-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

/* ========================================
   6. SELECTED WORK ITEM
   선택된 작품 항목 스타일
   ======================================== */

/* 선택된 작품 가로 배열 컨테이너 */
.selected-works-horizontal {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 2rem 1rem;
}

.selected-work-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.selected-work-item .selected-work-thumbnail {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 기존 상세 페이지용 스타일 유지 */
.selected-work-item.detail {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.selected-work-item.detail img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.selected-work-item h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.5;
}

/* ========================================
   7. HIDDEN ELEMENTS
   숨겨진 요소
   ======================================== */

.hidden-form {
    display: none;
}

/* ========================================
   7. RESPONSIVE
   반응형 디자인
   ======================================== */

@media (max-width: 768px) {
    .card-title {
        font-size: 14px;
        line-height: 1.4;
    }

    .work-detail-image {
        width: 100px;
        height: 100px;
    }

    /* 모바일에서 선택된 작품 이미지 크기 조정 */
    .selected-works-horizontal {
        gap: 1rem;
        padding: 1.5rem 0.5rem;
    }

    .selected-work-item .selected-work-thumbnail {
        width: 100px;
        height: 100px;
    }
}
