/**
 * Card Styles
 * 카드 컴포넌트 전용 스타일
 */

/* ===========================================
   기본 카드 스타일
   =========================================== */

/* 기본 카드 */
.card {
    background: #fff;
    border-radius: var(--theme-card-radius);
    border: 1px solid var(--theme-item-border);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--theme-card-shadow);
}

/* 카드 헤더 */
.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--theme-card-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* 카드 제목 */
.card-title {
    font-size: var(--theme-font-size-card-title);
    font-weight: 600;
    color: var(--theme-text-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--theme-font-bold);
}

/* 카드 콘텐츠 */
.card-content {
    padding: 1.5rem;
    display: block;
    visibility: visible;
}

/* 카드 콘텐츠 내 제목 */
.card-content h3 {
    font-size: var(--theme-font-size-title);
    font-family: var(--theme-font-bold);
    color: var(--theme-text-color);
    margin-bottom: 15px;
}

/* 카드 콘텐츠 내 본문 */
.kaice-page-container .card-content p {
    font-size: var(--theme-font-size-medium);
    color: var(--theme-text-color);
    line-height: 1.7;
    margin: 0;
}

/* ===========================================
   카드 반응형 디자인
   =========================================== */

@media (max-width: 768px) {
    .card-header {
        gap: 1rem;
        padding: 1rem;
    }

    .card-content {
        padding: 1rem;
    }

    .card-title {
        font-size: var(--theme-font-size-subtitle);
    }
}

@media (max-width: 480px) {
    .card-header,
    .card-content {
        padding: 0.75rem;
    }

    .card-title {
        font-size: var(--theme-font-size-input);
    }
}

/* ===========================================
   싱글 페이지 썸네일 스타일
   =========================================== */

/* 썸네일 컨테이너 공통 */
.single.card-thumbnail {
    position: relative;
    width: 100%;
    border-radius: var(--theme-card-radius);
    border: 1px solid var(--theme-card-border);
    overflow: hidden;
}

/* 썸네일 이미지 공통 */
.single.card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--theme-card-radius);
}

/* ===========================================
   기본 썸네일 (빈 이미지) 스타일
   =========================================== */

/* 기본 이미지 컨테이너 */
.card-image.default {
    background: var(--theme-item-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 싱글 기본 썸네일 - 아이콘 중앙 정렬 */
.single.card-image.default .default-icon-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* 기본 아이콘 래퍼 */
.default-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgb(240, 240, 240);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 기본 아이콘 */
.card-image.default i {
    font-size: var(--theme-font-size-heading);
    color: var(--theme-hint-text-color);
}

