/* 테마 선택 모달 스타일 */

.theme-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-modal-overlay.active {
    opacity: 1;
}

.theme-modal {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    width: 440px;
    max-width: 92vw;
    padding: 28px;
    box-shadow: var(--premium-shadow);
    transform: translateY(20px) scale(0.96);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-modal-overlay.active .theme-modal {
    transform: translateY(0) scale(1);
}

.theme-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.theme-modal-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: -0.2px;
}

.theme-modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.theme-modal-close:hover {
    background: var(--card-hover);
    color: var(--text-main);
}

.theme-cards {
    display: flex;
    gap: 12px;
}

.theme-card {
    flex: 1;
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 14px;
    cursor: pointer;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: var(--transition-fast);
    position: relative;
    outline: none;
}

.theme-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.theme-card.selected {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 1px var(--accent-blue);
}

/* 미리보기 박스 */
.theme-preview {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.preview-window {
    width: 100%;
    height: 100%;
    display: flex;
}

.preview-sidebar {
    width: 30%;
    height: 100%;
    flex-shrink: 0;
}

.preview-main {
    flex: 1;
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.preview-bar {
    height: 5px;
    border-radius: 3px;
    opacity: 0.8;
}

.preview-bar.short { width: 55%; }
.preview-bar.long { width: 85%; }
.preview-bar.mid { width: 70%; }

/* 테마 라벨 */
.theme-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-main);
    letter-spacing: 0.3px;
}

/* 선택 체크 배지 */
.theme-check-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 18px;
    height: 18px;
    background: var(--accent-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #fff;
    font-weight: 700;
    opacity: 0;
    transform: scale(0.6);
    transition: var(--transition-fast);
}

.theme-card.selected .theme-check-badge {
    opacity: 1;
    transform: scale(1);
}
